Skip to content

Commit

Permalink
Make package.json dictate the package version
Browse files Browse the repository at this point in the history
  • Loading branch information
pervoj committed Apr 12, 2024
1 parent 2217f24 commit 2c15a7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npx jsr publish --allow-dirty
- run: |
VERSION=$(cat package.json | jq -r .version)
CONFIG=$(cat jsr.json | jq ". + { \"version\": \"$VERSION\" }")
echo $CONFIG | jq . > jsr.json
npx jsr publish --allow-dirty
1 change: 0 additions & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"name": "@moductor/libintl",
"version": "1.2.0",
"exports": "./src/index.ts"
}
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"gettext",
"gettext-library"
],
"exports": {
".": "./dist/index.js"
},
"exports": "./dist/index.js",
"scripts": {
"compile": "esbuild --platform=node --format=cjs --minify --outdir=dist src/*.ts src/**/*.ts",
"declarations": "tsc --noEmit false --declaration --emitDeclarationOnly --outDir dist",
Expand Down

0 comments on commit 2c15a7d

Please sign in to comment.