Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate the import-map for DNT from the top-level import-map. #388

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions import_map.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
20 changes: 20 additions & 0 deletions npm/import_map.json
Original file line number Diff line number Diff line change
@@ -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/[email protected]",
"@std/path": "jsr:@std/path@^1.0.3",
"@std/testing/bdd": "jsr:@std/testing@^1.0.0/bdd"
}
}
11 changes: 0 additions & 11 deletions npm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/core/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/dhkem-secp256k1/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/dhkem-x25519/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/dhkem-x448/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/hpke-js/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion packages/hybridkem-x25519-kyber768/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Loading