Skip to content

Commit 0364ba4

Browse files
committed
fix: get release args from pkg
Get the version and file using node rather than env vars. Pkg main was broken in npm v > 7.
1 parent 2906fac commit 0364ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"tsc": "tsc",
99
"build": "rollup -c",
1010
"watch": "rollup -cw",
11-
"release": "npm run build && gh release create $npm_package_version $npm_package_main"
11+
"release": "npm run build && gh release create $(node -pe \"require('./package.json').version\") $(node -pe \"require('./package.json').main\")"
1212
},
1313
"repository": {
1414
"type": "git",

0 commit comments

Comments
 (0)