Skip to content

Commit

Permalink
version automatically copied from package.json to src/program/version…
Browse files Browse the repository at this point in the history
….js upon build
  • Loading branch information
christianschmitz committed Oct 11, 2024
1 parent 419bab4 commit f318a87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"author": "Christian Schmitz",
"license": "BSD-3-Clause",
"scripts": {
"prebuild": "./.pre-push-hook install && pnpm run test:version && pnpm run prettify",
"prebuild": "./.pre-push-hook install && pnpm run build:version && pnpm run prettify",
"build": "pnpm run build:types && pnpm run test:suite",
"build:types": "tsc -p jsconfig.json --noEmit false --emitDeclarationOnly",
"build:version": "node -e \"import('fs').then(m => {fs.writeFileSync('./src/program/version.js', 'export const VERSION = \\\"' + process.env.npm_package_version + '\\\"\\n')})\"",
"lockfile:sync": "pnpm install --ignore-workspace",
"prettify": "prettier . --write",
"pretest": "./.pre-push-hook install && pnpm test:version && pnpm run test:pretty",
Expand Down
2 changes: 1 addition & 1 deletion src/program/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = "0.17.0-99"
export const VERSION = "0.17.1"

0 comments on commit f318a87

Please sign in to comment.