Skip to content

Commit e6287f1

Browse files
committed
Sync package version and name.
1 parent 706caf8 commit e6287f1

File tree

21 files changed

+47
-33
lines changed

21 files changed

+47
-33
lines changed

.github/workflows/ci_bun.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Prepare test for ./x/core
3434
working-directory: ./x/core
3535
run: |
36-
deno run -A dnt.ts 0.0.0
36+
deno run -A dnt.ts
3737
deno task minify > ../dhkem-x25519/test/runtimes/hpke-core.js
3838
deno task minify > ../dhkem-x448/test/runtimes/hpke-core.js
3939
deno task minify > ../hybridkem-x25519-kyber768/test/runtimes/hpke-core.js
@@ -51,7 +51,7 @@ jobs:
5151
- name: Prepare test for ./x/chacha20poly1305
5252
working-directory: ./x/chacha20poly1305
5353
run: |
54-
deno run -A dnt.ts 0.0.0
54+
deno run -A dnt.ts
5555
- name: Run npm pack for ./x/chacha20poly1305
5656
working-directory: ./npm-packages/x/chacha20poly1305
5757
run: npm pack
@@ -109,7 +109,7 @@ jobs:
109109
- name: Prepare test for ./x/hpke-js
110110
working-directory: ./x/hpke-js
111111
run: |
112-
deno run -A dnt.ts 0.0.0
112+
deno run -A dnt.ts
113113
deno task minify > test/runtimes/hpke.js
114114
- name: Run npm pack for ./x/hpke-js
115115
working-directory: ./npm-packages/x/hpke-js

.github/workflows/ci_cloudflare.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Prepare test for ./x/core
2626
working-directory: ./x/core
2727
run: |
28-
deno run -A dnt.ts 0.0.0
28+
deno run -A dnt.ts
2929
deno task minify > ../chacha20poly1305/test/runtimes/hpke-core.js
3030
deno task minify > ../dhkem-x25519/test/runtimes/hpke-core.js
3131
deno task minify > ../dhkem-x448/test/runtimes/hpke-core.js
@@ -103,7 +103,7 @@ jobs:
103103
deno test dhkem-secp256k1.spec.ts --allow-net --config ../../../deno.json
104104
- name: Prepare test for hpke-js
105105
working-directory: ./x/hpke-js
106-
run: deno run -A dnt.ts 0.0.0
106+
run: deno run -A dnt.ts
107107
- name: Run npm pack for ./x/hpke-js
108108
working-directory: ./npm-packages/x/hpke-js
109109
run: npm pack

x/chacha20poly1305/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"tasks": {
4747
"test": "deno fmt && deno lint && deno test test -A --fail-fast --doc --coverage=coverage --parallel --allow-read",
4848
"cov": "deno coverage ./coverage --lcov --exclude='test'",
49-
"dnt": "deno run -A dnt.ts $(git describe --tags $(git rev-list --tags --max-count=1))",
49+
"dnt": "deno run -A dnt.ts",
5050
"minify": "esbuild ../../npm-packages/x/chacha20poly1305/esm/chacha20poly1305/mod.js --bundle --format=esm --minify"
5151
}
5252
}

x/chacha20poly1305/dnt.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { build, emptyDir } from "@deno/dnt";
22

33
await emptyDir("../../npm-packages/x/chacha20poly1305");
44

5+
const denoPkg = JSON.parse(await Deno.readTextFile("./deno.json"));
6+
57
await build({
68
entryPoints: ["./mod.ts"],
79
outDir: "../../npm-packages/x/chacha20poly1305",
@@ -17,8 +19,8 @@ await build({
1719
deno: "dev",
1820
},
1921
package: {
20-
name: "@hpke/chacha20poly1305",
21-
version: Deno.args[0],
22+
name: denoPkg.name,
23+
version: denoPkg.version,
2224
description:
2325
"A Hybrid Public Key Encryption (HPKE) module extension for ChaCha20/Poly1305",
2426
repository: {

x/chacha20poly1305/test/runtimes/bun/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"typescript": "^5.0.0"
1010
},
1111
"dependencies": {
12-
"@hpke/chacha20poly1305": "file:../../../../../npm-packages/x/chacha20poly1305/hpke-chacha20poly1305-0.0.0.tgz",
13-
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-0.0.0.tgz"
12+
"@hpke/chacha20poly1305": "file:../../../../../npm-packages/x/chacha20poly1305/hpke-chacha20poly1305-1.2.9.tgz",
13+
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-1.2.9.tgz"
1414
}
1515
}

x/core/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"tasks": {
5151
"test": "deno fmt && deno lint && deno test test -A --fail-fast --doc --coverage=coverage --parallel --allow-read",
5252
"cov": "deno coverage ./coverage --lcov --exclude='test'",
53-
"dnt": "deno run -A dnt.ts $(git describe --tags $(git rev-list --tags --max-count=1))",
53+
"dnt": "deno run -A dnt.ts",
5454
"minify": "esbuild ../../npm-packages/x/core/esm/mod.js --bundle --format=esm --minify"
5555
}
5656
}

x/core/dnt.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { build, emptyDir } from "@deno/dnt";
22

33
await emptyDir("../../npm-packages/x/core");
44

5+
const denoPkg = JSON.parse(await Deno.readTextFile("./deno.json"));
6+
57
await build({
68
entryPoints: ["./mod.ts"],
79
outDir: "../../npm-packages/x/core",
@@ -17,8 +19,8 @@ await build({
1719
deno: "dev",
1820
},
1921
package: {
20-
name: "@hpke/core",
21-
version: Deno.args[0],
22+
name: denoPkg.name,
23+
version: denoPkg.version,
2224
description:
2325
"A Hybrid Public Key Encryption (HPKE) core module for various JavaScript runtimes",
2426
repository: {

x/core/test/runtimes/bun/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"typescript": "^5.0.0"
1010
},
1111
"dependencies": {
12-
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-0.0.0.tgz"
12+
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-1.2.9.tgz"
1313
}
1414
}

x/core/test/runtimes/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"deploy": "wrangler publish"
1111
},
1212
"dependencies": {
13-
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-0.0.0.tgz"
13+
"@hpke/core": "file:../../../../../npm-packages/x/core/hpke-core-1.2.9.tgz"
1414
}
1515
}

x/dhkem-secp256k1/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"tasks": {
4747
"test": "deno fmt && deno lint && deno test test -A --fail-fast --doc --coverage=coverage --parallel --allow-read",
4848
"cov": "deno coverage ./coverage --lcov --exclude='test'",
49-
"dnt": "deno run -A dnt.ts $(git describe --tags $(git rev-list --tags --max-count=1))",
49+
"dnt": "deno run -A dnt.ts",
5050
"minify": "esbuild ../../npm-packages/x/dhkem-secp256k1/esm/dhkem-secp256k1/mod.js --bundle --format=esm --minify"
5151
}
5252
}

0 commit comments

Comments
 (0)