Skip to content

Commit

Permalink
Expose UI version number in transcend.version (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
eligrey authored May 29, 2024
1 parent eb1682a commit 95497b2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1155,14 +1155,14 @@ __metadata:
languageName: node
linkType: hard

"@transcend-io/airgap.js-types@npm:^10.12.0":
version: 10.12.0
resolution: "@transcend-io/airgap.js-types@npm:10.12.0"
"@transcend-io/airgap.js-types@npm:^10.12.4":
version: 10.12.4
resolution: "@transcend-io/airgap.js-types@npm:10.12.4"
dependencies:
"@transcend-io/type-utils": ^1.2.0
fp-ts: ^2.16.1
io-ts: ^2.2.21
checksum: de06c162f3063dad2ff407523089c24655df5857a4ba68eb73f1933e0a5df4e43bac515ae66d5a12f285602cc1166753f8e6280f689215fe3d9775b6d9c59f89
checksum: 3f0e23c9e1f8cd50f6d2f98854e60260fd50689153767b58f48a1feb8db05d00d9b7237b5b2cc3feda7a2772ea0aab0beaff082cd012bc1374c29eaecc3f1efb
languageName: node
linkType: hard

Expand All @@ -1183,7 +1183,7 @@ __metadata:
resolution: "@transcend-io/consent-manager-ui@workspace:."
dependencies:
"@monaco-editor/react": ^4.4.5
"@transcend-io/airgap.js-types": ^10.12.0
"@transcend-io/airgap.js-types": ^10.12.4
"@transcend-io/internationalization": ^1.6.0
"@transcend-io/logger": ^1.1.0
"@transcend-io/type-utils": ^1.0.7
Expand Down

0 comments on commit 95497b2

Please sign in to comment.