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

added test to check that version match in all packages. #46

Merged
merged 1 commit into from
May 23, 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
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nats-io/nuid",
"version": "2.0.0-2",
"version": "2.0.0",
"exports": {
".": "./src/nuid.ts"
},
Expand Down
2 changes: 1 addition & 1 deletion lib/nuid.js.map

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

12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
{
"name": "nuid",
"version": "2.0.0-2",
"version": "2.0.0",
"description": "NUID - A highly performant unique identifier generator.",
"keywords": [
"unique",
"identifier",
"generator"
],
"files": [
"lib/",
"esm/",
"CODE-OF-CONDUCT.md",
"LICENSE",
"MAINTAINERS.md"
],
"exports": {
"types": "./lib/nuid.d.ts",
"require": "./lib/nuid.js",
Expand All @@ -33,7 +40,8 @@
"test": "npm run build && node --test test/basics.js && deno test",
"doc": "rm -Rf ./docs && node_modules/.bin/typedoc --out ./docs/ && touch ./docs/.nojekyll",
"prepack": "npm run build",
"lint": "deno lint --ignore=docs/,debug/,lib/"
"lint": "deno lint --ignore=docs/,debug/,lib/",
"fmt": "deno fmt src/ README.md MAINTAINERS.md CODE-OF-CONDUCT.md"
},
"engines": {
"node": ">= 18.x"
Expand Down
7 changes: 7 additions & 0 deletions test/basics_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,10 @@ Deno.test("reset should reset", () => {
Deno.test("constructor is exported", () => {
assertEquals(typeof Nuid, "function");
});

Deno.test("versions", async () => {
const pkg = await import("../package.json", {with: {type: "json"}});
const jsr = await import("../jsr.json", {with: {type: "json"}});
assertEquals(pkg.default.version, jsr.default.version);

})
Loading