Skip to content

Commit

Permalink
chore: auto-bump ts stored version
Browse files Browse the repository at this point in the history
  • Loading branch information
icehaunter committed Sep 19, 2023
1 parent da9a718 commit 43b78c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
}
},
"scripts": {
"prebuild": "node -p \"'export const LIB_VERSION = \\'' + require('./package.json').version + '\\''\" > src/version.ts",
"post-version-bump": "node -p \"'export const LIB_VERSION = \\'' + require('./package.json').version + '\\''\" > src/version.ts",
"dev": "tsmodule dev",
"build": "rm -rf ./dist && tsc && tsmodule build",
"build-dev": "rm -rf ./dist && tsc && tsmodule build --dev",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"@changesets/cli": "^2.26.2"
},
"scripts": {
"bump": "pnpm exec changeset version && pnpm install"
"bump": "pnpm exec changeset version && pnpm install && pnpm run -r --if-present post-version-bump"
}
}

0 comments on commit 43b78c8

Please sign in to comment.