Skip to content

Commit

Permalink
base: remove top-level import_map.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajiaji committed Nov 12, 2024
1 parent 6d8cbb2 commit 024992f
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 27 deletions.
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/assert@1.0.0",
"@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
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

0 comments on commit 024992f

Please sign in to comment.