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

base: remove top-level import_map.json. #477

Merged
merged 3 commits into from
Nov 12, 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
18 changes: 17 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@
"./packages/hpke-js/samples/deno",
"./packages/ml-kem/samples/deno"
],
"imports": {
"@dajiaji/mlkem": "npm:mlkem@^2.3.0",
"@deno/dnt": "jsr:@deno/dnt@^0.41.3",
"@noble/ciphers/chacha": "npm:@noble/ciphers@^1.0.0/chacha",
"@noble/curves/ed25519": "npm:@noble/curves@^1.6.0/ed25519",
"@noble/curves/ed448": "npm:@noble/curves@^1.6.0/ed448",
"@noble/curves/secp256k1": "npm:@noble/curves@^1.6.0/secp256k1",
"@noble/hashes/hmac": "npm:@noble/hashes@^1.5.0/hmac",
"@noble/hashes/sha256": "npm:@noble/hashes@^1.5.0/sha256",
"@noble/hashes/sha512": "npm:@noble/hashes@^1.5.0/sha512",
"@noble/hashes/sha3": "npm:@noble/hashes@^1.5.0/sha3",
"@std/assert": "jsr:@std/[email protected]",
"@std/fs": "jsr:@std/fs@^1.0.4",
"@std/path": "jsr:@std/path@^1.0.3",
"@std/testing/bdd": "jsr:@std/testing@^1.0.0/bdd"
},
"fmt": {
"exclude": [
"npm/",
Expand Down Expand Up @@ -50,7 +66,7 @@
},
"tasks": {
"test:all": "deno task test && deno task npm && deno task test:cloudflare && deno task bun-link && deno task test:bun",
"test": "deno fmt && deno lint && deno test --import-map=./import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test:common": "cd packages/common && deno task test",
"test:core": "cd packages/core && deno task test",
"test:chacha20poly1305": "cd packages/chacha20poly1305 && deno task test",
Expand Down
17 changes: 17 additions & 0 deletions deno.lock

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

16 changes: 0 additions & 16 deletions import_map.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/chacha20poly1305/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
]
},
"tasks": {
"test": "deno fmt && deno lint && deno test --import-map=../../import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/common @hpke/chacha20poly1305 && npm run test",
"test:bun": "cd test/runtimes/bun && bun install && bun test",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
]
},
"tasks": {
"test": "deno fmt && deno lint && deno test --import-map=../../import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --parallel --allow-read",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
"dnt": "deno run --import-map=../../npm/import_map.json -A dnt.ts",
"minify": "esbuild ../../npm/packages/common/esm/mod.js --bundle --format=esm --minify"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
]
},
"tasks": {
"test": "deno fmt && deno lint && deno test --import-map=../../import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/core && npm run test",
"test:bun": "cd test/runtimes/bun && bun install && bun test",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
Expand Down
2 changes: 1 addition & 1 deletion packages/dhkem-secp256k1/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
]
},
"tasks": {
"test": "deno fmt && deno lint && deno test --import-map=../../import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/common @hpke/dhkem-secp256k1 && npm run test",
"test:bun": "cd test/runtimes/bun && bun install && bun test",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
Expand Down
2 changes: 1 addition & 1 deletion packages/dhkem-x25519/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
]
},
"tasks": {
"test": "deno fmt && deno lint && deno test --import-map=../../import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/common @hpke/dhkem-x25519 && npm run test",
"test:bun": "cd test/runtimes/bun && bun install && bun test",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
Expand Down
2 changes: 1 addition & 1 deletion packages/dhkem-x448/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
]
},
"tasks": {
"test": "deno fmt && deno lint && deno test --import-map=../../import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/common @hpke/dhkem-x448 && npm run test",
"test:bun": "cd test/runtimes/bun && bun install && bun test",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
Expand Down
2 changes: 1 addition & 1 deletion packages/hpke-js/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
]
},
"tasks": {
"test": "deno fmt && deno lint && deno test --import-map=../../import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link hpke-js && npm run test",
"test:bun": "cd test/runtimes/bun && bun install && bun test",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
Expand Down
2 changes: 1 addition & 1 deletion packages/hybridkem-x-wing/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
]
},
"tasks": {
"test": "deno fmt && deno lint && deno test --import-map=../../import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/common @hpke/hybridkem-x-wing && npm run test",
"test:bun": "cd test/runtimes/bun && bun install && bun test",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
Expand Down
Binary file modified packages/hybridkem-x-wing/test/runtimes/bun/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/hybridkem-x25519-kyber768/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
]
},
"tasks": {
"test": "deno fmt && deno lint && deno test --import-map=../../import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --parallel --allow-read",
"test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/common @hpke/hybridkem-x25519-kyber768 && npm run test",
"test:bun": "cd test/runtimes/bun && bun install && bun test",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
Expand Down
2 changes: 1 addition & 1 deletion packages/ml-kem/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
]
},
"tasks": {
"test": "deno fmt && deno lint && deno test --import-map=../../import_map.json --fail-fast --doc --coverage=coverage --cached-only --parallel --allow-read",
"test": "deno fmt && deno lint && deno test --fail-fast --doc --coverage=coverage --cached-only --parallel --allow-read",
"test:cloudflare": "cd test/runtimes/cloudflare && npm install && npm link @hpke/common @hpke/ml-kem && npm run test",
"test:bun": "cd test/runtimes/bun && bun install && bun test",
"cov": "deno coverage ./coverage --lcov --exclude='test'",
Expand Down
Binary file modified packages/ml-kem/test/runtimes/bun/bun.lockb
Binary file not shown.
Loading