Skip to content

Commit

Permalink
Add version.ts to http package
Browse files Browse the repository at this point in the history
  • Loading branch information
r-n-o committed Dec 13, 2023
1 parent 83a162b commit 63f8c56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"access": "public"
},
"scripts": {
"preinstall": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
"prepublishOnly": "pnpm -w run clean-all && pnpm -w run build-all",
"build": "rollup -c",
"clean": "rimraf ./dist ./.cache",
Expand Down
2 changes: 2 additions & 0 deletions packages/http/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ const PublicApiService = TurnkeyApi;
export { PublicApiService };

export { sealAndStampRequestBody } from "./base";

export { VERSION } from "./version";
1 change: 1 addition & 0 deletions packages/http/src/version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const VERSION = "2.5.1";

0 comments on commit 63f8c56

Please sign in to comment.