Skip to content

Commit

Permalink
Expose UI version number in transcend.version
Browse files Browse the repository at this point in the history
  • Loading branch information
eligrey committed May 25, 2024
1 parent eb1682a commit 331fb82
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const build = async (
}
: undefined,
define: {
'process.env.version': JSON.stringify(
'process.env.VERSION': JSON.stringify(
// eslint-disable-next-line global-require, import/no-dynamic-require
require(`${cwd}/package.json`).version,
),
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/transcend-io/consent-manager-ui.git"
},
"homepage": "https://github.com/transcend-io/consent-manager-ui",
"version": "4.14.2",
"version": "4.14.3",
"license": "MIT",
"main": "build/ui",
"files": [
Expand Down Expand Up @@ -44,7 +44,7 @@
},
"devDependencies": {
"@monaco-editor/react": "^4.4.5",
"@transcend-io/airgap.js-types": "^10.12.0",
"@transcend-io/airgap.js-types": "^10.12.4",
"@transcend-io/type-utils": "^1.0.7",
"@types/node": "^17.0.21",
"@typescript-eslint/eslint-plugin": "^5.12.1",
Expand Down
1 change: 1 addition & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export function makeConsentManagerAPI({
handleSetViewState('open', undefined, true);
return Promise.resolve();
},
version: process.env.VERSION as string,
};

const consentManagerAPI: ConsentManagerAPI = Object.assign(
Expand Down

0 comments on commit 331fb82

Please sign in to comment.