Skip to content

Commit e0554ab

Browse files
committed
Moved module version constant to named export
1 parent 117b866 commit e0554ab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngnjs/libdata",
3-
"version": "1.0.0-alpha",
3+
"version": "1.0.0-alpha.1",
44
"description": "A plugin module for NGN.",
55
"main": "src/index.js",
66
"module": "index.js",
@@ -35,6 +35,9 @@
3535
"update": "npm update --save --save-dev --save-optional"
3636
},
3737
"dev": {
38+
"replace": {
39+
"<#REPLACE_VERSION#>": "package.version"
40+
},
3841
"mode": "source",
3942
"source": {
4043
"alias": {

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ export {
3838
NANOID,
3939
checksum
4040
}
41+
42+
export const moduleVersion = '<#REPLACE_VERSION#>'

0 commit comments

Comments
 (0)