-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): Export VENDURE_VERSION constant
Relates to #1471
- Loading branch information
1 parent
71bab46
commit b2a910a
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
/** | ||
* @description | ||
* A constant which holds the current version of the Vendure core. You can use | ||
* this when your code needs to know the version of Vendure which is running. | ||
* | ||
* @example | ||
* ```TypeScript | ||
* import { VENDURE_VERSION } from '\@vendure/core'; | ||
* | ||
* console.log('Vendure version:', VENDURE_VERSION); | ||
* ``` | ||
* | ||
* @docsCategory common | ||
* @since 2.0.0 | ||
*/ | ||
export const VENDURE_VERSION: string = require('../package.json').version; |