Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"lint:fix": "eslint . --ext .js,.ts,.tsx --fix",
"check": "yarn format:check",
"check:fix": "yarn format",
"build": "yarn build:cjs && yarn build:esm",
"build": "node scripts/update-version.js && yarn build:cjs && yarn build:esm",
"build:cjs": "tsc --project ./tsconfig.cjs.json",
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
"test": "jest --config jest.config.mjs",
Expand Down
14 changes: 14 additions & 0 deletions scripts/update-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env node

const fs = require("fs");
const path = require("path");

const packageJson = require("../package.json");
const version = packageJson.version;

const versionFilePath = path.join(__dirname, "../src/management/version.ts");
const content = `export const SDK_VERSION = "${version}";\n`;

fs.writeFileSync(versionFilePath, content, "utf8");

console.log(`SDK_VERSION updated to "${version}"`);
2 changes: 1 addition & 1 deletion src/management/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = "5.13.0";
export const SDK_VERSION = "5.14.0";
Loading