Skip to content

Commit 70b936e

Browse files
committed
Push version into package.json release
1 parent 79abf0d commit 70b936e

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

scripts/make-npm-release.js

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,28 @@ for (const file of filesToTouch) {
4545
Fs.writeFileSync(p, '');
4646
}
4747

48+
const version = exec('./platform-darwin-x64/query-json --version');
49+
4850
const pkgJson = {
49-
name: 'query-json-js',
50-
scripts: {
51-
postinstall: 'node postinstall.js',
51+
"name": "query-json-js",
52+
"version": version,
53+
"scripts": {
54+
"postinstall": "node postinstall.js"
55+
},
56+
"main": "query-json-js/Js.bc.js",
57+
"bin": {
58+
"query-json": "query-json"
5259
},
53-
main: 'query-json-js/Js.bc.js',
54-
bin: 'query-json',
55-
files: [
56-
'platform-windows-x64/',
57-
'platform-linux-x64/',
58-
'platform-darwin-x64/',
59-
'postinstall.js',
60-
'query-json-js',
61-
'query-json',
62-
'README.md',
60+
"files": [
61+
"platform-windows-x64/",
62+
"platform-linux-x64/",
63+
"platform-darwin-x64/",
64+
"postinstall.js",
65+
"query-json-js",
66+
"README.md"
6367
],
64-
dependencies: {},
65-
devDependencies: {},
68+
"dependencies": {},
69+
"devDependencies": {}
6670
};
6771

6872
Fs.writeFileSync(

0 commit comments

Comments
 (0)