Skip to content

Commit b48f8c3

Browse files
authored
Merge pull request #46 from nats-io/version-checks
added test to check that version match in all packages.
2 parents 2fa27bb + 0d8ba26 commit b48f8c3

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nats-io/nuid",
3-
"version": "2.0.0-2",
3+
"version": "2.0.0",
44
"exports": {
55
".": "./src/nuid.ts"
66
},

lib/nuid.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
{
22
"name": "nuid",
3-
"version": "2.0.0-2",
3+
"version": "2.0.0",
44
"description": "NUID - A highly performant unique identifier generator.",
55
"keywords": [
66
"unique",
77
"identifier",
88
"generator"
99
],
10+
"files": [
11+
"lib/",
12+
"esm/",
13+
"CODE-OF-CONDUCT.md",
14+
"LICENSE",
15+
"MAINTAINERS.md"
16+
],
1017
"exports": {
1118
"types": "./lib/nuid.d.ts",
1219
"require": "./lib/nuid.js",
@@ -33,7 +40,8 @@
3340
"test": "npm run build && node --test test/basics.js && deno test",
3441
"doc": "rm -Rf ./docs && node_modules/.bin/typedoc --out ./docs/ && touch ./docs/.nojekyll",
3542
"prepack": "npm run build",
36-
"lint": "deno lint --ignore=docs/,debug/,lib/"
43+
"lint": "deno lint --ignore=docs/,debug/,lib/",
44+
"fmt": "deno fmt src/ README.md MAINTAINERS.md CODE-OF-CONDUCT.md"
3745
},
3846
"engines": {
3947
"node": ">= 18.x"

test/basics_test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,10 @@ Deno.test("reset should reset", () => {
6666
Deno.test("constructor is exported", () => {
6767
assertEquals(typeof Nuid, "function");
6868
});
69+
70+
Deno.test("versions", async () => {
71+
const pkg = await import("../package.json", {with: {type: "json"}});
72+
const jsr = await import("../jsr.json", {with: {type: "json"}});
73+
assertEquals(pkg.default.version, jsr.default.version);
74+
75+
})

0 commit comments

Comments
 (0)