diff --git a/import_map.json b/import_map.json index f1a135510..8d20f0a79 100644 --- a/import_map.json +++ b/import_map.json @@ -1,10 +1,6 @@ { "imports": { "@deno/dnt": "jsr:@deno/dnt@^0.41.3", - "@hpke/core": "npm:@hpke/core@^1.3.0", - "@hpke/chacha20poly1305": "npm:@hpke/chacha20poly1305@^1.3.0", - "@hpke/dhkem-x25519": "npm:@hpke/dhkem-x25519@^1.3.0", - "@hpke/dhkem-x448": "npm:@hpke/dhkem-x448@^1.3.0", "@noble/ciphers/chacha": "npm:@noble/ciphers@^0.5.3/chacha", "@noble/curves/ed25519": "npm:@noble/curves@^1.4.2/ed25519", "@noble/curves/ed448": "npm:@noble/curves@^1.4.2/ed448", diff --git a/npm/import_map.json b/npm/import_map.json new file mode 100644 index 000000000..f1a135510 --- /dev/null +++ b/npm/import_map.json @@ -0,0 +1,20 @@ +{ + "imports": { + "@deno/dnt": "jsr:@deno/dnt@^0.41.3", + "@hpke/core": "npm:@hpke/core@^1.3.0", + "@hpke/chacha20poly1305": "npm:@hpke/chacha20poly1305@^1.3.0", + "@hpke/dhkem-x25519": "npm:@hpke/dhkem-x25519@^1.3.0", + "@hpke/dhkem-x448": "npm:@hpke/dhkem-x448@^1.3.0", + "@noble/ciphers/chacha": "npm:@noble/ciphers@^0.5.3/chacha", + "@noble/curves/ed25519": "npm:@noble/curves@^1.4.2/ed25519", + "@noble/curves/ed448": "npm:@noble/curves@^1.4.2/ed448", + "@noble/curves/secp256k1": "npm:@noble/curves@^1.4.2/secp256k1", + "@noble/hashes/hmac": "npm:@noble/hashes@^1.4.0/hmac", + "@noble/hashes/sha256": "npm:@noble/hashes@^1.4.0/sha256", + "@noble/hashes/sha512": "npm:@noble/hashes@^1.4.0/sha512", + "@noble/hashes/sha3": "npm:@noble/hashes@^1.4.0/sha3", + "@std/assert": "jsr:@std/assert@1.0.0", + "@std/path": "jsr:@std/path@^1.0.3", + "@std/testing/bdd": "jsr:@std/testing@^1.0.0/bdd" + } +} diff --git a/npm/package-lock.json b/npm/package-lock.json index 17e589e40..003e2198a 100644 --- a/npm/package-lock.json +++ b/npm/package-lock.json @@ -149,7 +149,6 @@ "version": "1.3.1", "license": "MIT", "dependencies": { - "@hpke/core": "^1.3.0", "@noble/ciphers": "^0.5.3" }, "devDependencies": { @@ -179,8 +178,6 @@ "version": "1.3.1", "license": "MIT", "dependencies": { - "@hpke/core": "^1.3.0", - "@hpke/dhkem-x25519": "^1.3.0", "@noble/curves": "^1.4.2" }, "devDependencies": { @@ -197,7 +194,6 @@ "version": "1.3.1", "license": "MIT", "dependencies": { - "@hpke/core": "^1.3.0", "@noble/curves": "^1.4.2", "@noble/hashes": "^1.4.0" }, @@ -215,7 +211,6 @@ "version": "1.3.1", "license": "MIT", "dependencies": { - "@hpke/core": "^1.3.0", "@noble/curves": "^1.4.2", "@noble/hashes": "^1.4.0" }, @@ -232,10 +227,6 @@ "version": "1.3.1", "license": "MIT", "dependencies": { - "@hpke/chacha20poly1305": "^1.3.0", - "@hpke/core": "^1.3.0", - "@hpke/dhkem-x25519": "^1.3.0", - "@hpke/dhkem-x448": "^1.3.0", "@noble/hashes": "^1.4.0" }, "devDependencies": { @@ -252,8 +243,6 @@ "version": "1.3.1", "license": "MIT", "dependencies": { - "@hpke/core": "^1.3.0", - "@hpke/dhkem-x25519": "^1.3.0", "@noble/hashes": "^1.4.0" }, "devDependencies": { diff --git a/packages/core/deno.json b/packages/core/deno.json index e62febbaf..24d373444 100644 --- a/packages/core/deno.json +++ b/packages/core/deno.json @@ -43,10 +43,10 @@ ] }, "tasks": { - "test": "deno fmt && deno lint && deno test --import-map=../../import_map.json test -A --fail-fast --doc --coverage=coverage --parallel --allow-read", + "test": "deno fmt && deno lint && deno test --import-map=../../import_map.json -A --fail-fast --doc --coverage=coverage --parallel --allow-read", "test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/core && npm run test", "cov": "deno coverage ./coverage --lcov --exclude='test'", - "dnt": "deno run --import-map=../../import_map.json -A dnt.ts", + "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", "minify": "esbuild ../../npm/packages/core/esm/mod.js --bundle --format=esm --minify" } } diff --git a/packages/dhkem-secp256k1/deno.json b/packages/dhkem-secp256k1/deno.json index abcad5d3c..7e209c607 100644 --- a/packages/dhkem-secp256k1/deno.json +++ b/packages/dhkem-secp256k1/deno.json @@ -49,7 +49,7 @@ "test": "deno fmt && deno lint && deno test --import-map=../../import_map.json -A --fail-fast --doc --coverage=coverage --parallel --allow-read", "test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/core @hpke/dhkem-secp256k1 && npm run test", "cov": "deno coverage ./coverage --lcov --exclude='test'", - "dnt": "deno run --import-map=../../import_map.json -A dnt.ts", + "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", "minify": "esbuild ../../npm/packages/dhkem-secp256k1/esm/dhkem-secp256k1/mod.js --bundle --format=esm --minify" } } diff --git a/packages/dhkem-x25519/deno.json b/packages/dhkem-x25519/deno.json index 8e91b3706..ac838d91b 100644 --- a/packages/dhkem-x25519/deno.json +++ b/packages/dhkem-x25519/deno.json @@ -50,7 +50,7 @@ "test": "deno fmt && deno lint && deno test --import-map=../../import_map.json -A --fail-fast --doc --coverage=coverage --parallel --allow-read", "test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/core @hpke/dhkem-x25519 && npm run test", "cov": "deno coverage ./coverage --lcov --exclude='test'", - "dnt": "deno run -A dnt.ts", + "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", "minify": "esbuild ../../npm/packages/dhkem-x25519/esm/dhkem-x25519/mod.js --bundle --format=esm --minify" } } diff --git a/packages/dhkem-x448/deno.json b/packages/dhkem-x448/deno.json index aa11cc8c0..1fa5332cc 100644 --- a/packages/dhkem-x448/deno.json +++ b/packages/dhkem-x448/deno.json @@ -50,7 +50,7 @@ "test": "deno fmt && deno lint && deno test --import-map=../../import_map.json -A --fail-fast --doc --coverage=coverage --parallel --allow-read", "test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/core @hpke/dhkem-x448 && npm run test", "cov": "deno coverage ./coverage --lcov --exclude='test'", - "dnt": "deno run --import-map=../../import_map.json -A dnt.ts", + "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", "minify": "esbuild ../../npm/packages/dhkem-x448/esm/dhkem-x448/mod.js --bundle --format=esm --minify" } } diff --git a/packages/hpke-js/deno.json b/packages/hpke-js/deno.json index 72f8b8f6f..ddfde81b1 100644 --- a/packages/hpke-js/deno.json +++ b/packages/hpke-js/deno.json @@ -49,7 +49,7 @@ "test": "deno fmt && deno lint && deno test --import-map=../../import_map.json -A --fail-fast --doc --coverage=coverage --parallel --allow-read", "test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link hpke-js && npm run test", "cov": "deno coverage ./coverage --lcov --exclude='test'", - "dnt": "deno run --import-map=../../import_map.json -A dnt.ts", + "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", "minify": "esbuild ../../npm/packages/hpke-js/esm/hpke-js/mod.js --bundle --format=esm --minify" } } diff --git a/packages/hybridkem-x25519-kyber768/deno.json b/packages/hybridkem-x25519-kyber768/deno.json index 181d19f35..7effe04dd 100644 --- a/packages/hybridkem-x25519-kyber768/deno.json +++ b/packages/hybridkem-x25519-kyber768/deno.json @@ -49,7 +49,7 @@ "test": "deno fmt && deno lint && deno test --import-map=../../import_map.json -A --fail-fast --doc --coverage=coverage --parallel --allow-read", "test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/core @hpke/hybridkem-x25519-kyber768 && npm run test", "cov": "deno coverage ./coverage --lcov --exclude='test'", - "dnt": "deno run --import-map=../../import_map.json -A dnt.ts", + "dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts", "minify": "esbuild ../../npm/packages/hybridkem-x25519-kyber768/esm/hybridkem-x25519-kyber768/mod.js --bundle --format=esm --minify" } }