Skip to content

Commit 7893d51

Browse files
committed
Publishing
1 parent 5a0f16e commit 7893d51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.build/prepublish.js renamed to .build/update-publish-information.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const _fs = require(`fs`);
2+
const args = process.argv.slice(2);
23

3-
const packageVersion = process.argv[0].trim();
4+
const packageVersion = args[0].trim().replace(/^v\./gi, '').replace(/^v/gi, '');
45
const packageFileLocation = './package.json';
56
const packageFile = _fs.readFileSync(packageFileLocation);
67
const package = packageFile

0 commit comments

Comments
 (0)