Skip to content

Commit

Permalink
Merge pull request #38 from nats-io/bumps
Browse files Browse the repository at this point in the history
build: changed jsr.json for deno.json to deal with deno test not attempting to run node tests
  • Loading branch information
aricart committed Sep 3, 2024
2 parents d66cf7a + 0d52bdb commit f1113bd
Show file tree
Hide file tree
Showing 13 changed files with 2,225 additions and 154 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
deno-version: [1.44.0]
deno-version: [1.46.2]

steps:
- name: checkout project
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
deno-version: [1.44.0]
deno-version: [1.46.2]
node-version: [22.x]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
node-version: [22.x]
deno-version: [1.44.0]
deno-version: [1.46.2]

runs-on: ubuntu-latest
permissions:
Expand Down
20 changes: 13 additions & 7 deletions bin/generate_version.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import npmConfig from '../package.json' with {type: "json"};
import jsrConfig from "../jsr.json" with {type: "json"};
import npmConfig from "../package.json" with { type: "json" };
import denoConfig from "../deno.json" with { type: "json" };

if(npmConfig.version !== jsrConfig.version) {
throw new Error(`unmatched versions - npm: ${npmConfig.version} jsr: ${jsrConfig.version}`);
if (npmConfig.version !== denoConfig.version) {
throw new Error(
`unmatched versions - npm: ${npmConfig.version} jsr: ${denoConfig.version}`,
);
}

const v = npmConfig.version
const v = npmConfig.version;

Deno.writeTextFileSync("./src/version.ts", `
Deno.writeTextFileSync(
"./src/version.ts",
`
// this file is autogenerated - do not edit
export const version = "${v}";`, {create: true});
export const version = "${v}";`,
{ create: true },
);
5 changes: 4 additions & 1 deletion jsr.json → deno.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "@nats-io/nkeys",
"version": "1.2.0-4",
"version": "1.2.0-6",
"exports": {
".": "./modules/esm/mod.ts"
},
"test": {
"include": ["./test"]
},
"publish": {
"include": [
"LICENSE",
Expand Down
35 changes: 0 additions & 35 deletions deno.lock

This file was deleted.

32 changes: 19 additions & 13 deletions docs/assets/icons.js

Large diffs are not rendered by default.

2,045 changes: 2,041 additions & 4 deletions docs/assets/main.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docs/assets/navigation.js

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

3 changes: 2 additions & 1 deletion docs/assets/search.js

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

Loading

0 comments on commit f1113bd

Please sign in to comment.