Skip to content

Commit

Permalink
feat: add jsr.json
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVidra committed Mar 2, 2024
1 parent b559498 commit 82267a4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/react-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"@types/react": "18.2.39",
"@types/react-dom": "18.2.17",
"typescript": "5.3.3"
}
},
"packageManager": "npm@10.2.4"
}
8 changes: 8 additions & 0 deletions workspaces/js/jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@flows/js",
"version": "0.0.45",
"exports": {
".": "./src/index.ts",
"./core": "./src/core/index.ts"
}
}
4 changes: 2 additions & 2 deletions workspaces/js/src/lib/version.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { version as v } from "../../package.json";
import packageJson from "../../package.json" assert { type: "json" };

export const version = v;
export const version = packageJson.version;

0 comments on commit 82267a4

Please sign in to comment.