From 43b78c89b29ef75d66f1d9855f2c9aa71bfc79a8 Mon Sep 17 00:00:00 2001 From: Ilia Borovitinov Date: Tue, 19 Sep 2023 22:30:53 +0300 Subject: [PATCH] chore: auto-bump ts stored version --- clients/typescript/package.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/typescript/package.json b/clients/typescript/package.json index 6c012060f6..ebba8e344e 100644 --- a/clients/typescript/package.json +++ b/clients/typescript/package.json @@ -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", diff --git a/package.json b/package.json index 60dd4c6569..0de742295b 100644 --- a/package.json +++ b/package.json @@ -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" } }