Skip to content

Commit

Permalink
fix: patch --pkgver version into package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed May 5, 2019
1 parent e512cd5 commit b0f405a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pkgbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ ${Object.keys(properties)
${pkgver}
build() {
cd \${pkgname}${directory}
sed -i 's/"version": ".*/"version": "${context.properties.pkgver}",/' package.json
npm install
npm pack
npm prune --production
Expand Down

0 comments on commit b0f405a

Please sign in to comment.