Skip to content

Commit

Permalink
fix: remove -xxx from version, delete CHANGLEOG* recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Dec 13, 2018
1 parent 9b4882c commit 2b7d86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/npm-pkgbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function npm2pkgbuild(dir, out) {
`# ${pkg.contributors.map((c,i) => `${i?'Contributor':'Maintainer'}: ${c.name} <${c.email}>`).join('\n# ')}
pkgname=${pkg.name}
pkgrel=1
pkgver=${pkg.version}
pkgver=${pkg.version.replace(/[\w\-]+$/,'')}
epoch=
pkgdesc="${pkg.description}"
arch=('any')
Expand Down Expand Up @@ -70,7 +70,7 @@ build() {
find node_modules -iname "CONTRIBUTING*" -print0|xargs -r -0 rm
find node_modules -iname "Contributors*" -print0|xargs -r -0 rm
find node_modules -iname "CHANGES*" -print0|xargs -r -0 rm
find node_modules -iname "CHANGELOG*" -print0|xargs -r -0 rm
find node_modules -iname "CHANGELOG*" -print0|xargs -r -0 rm -rf
find node_modules -iname "Makefile*" -print0|xargs -r -0 rm
find node_modules -name "*.bash_completion.*" -print0|xargs -r -0 rm
find . -name "jsdoc.json" -print0|xargs -r -0 rm
Expand Down

0 comments on commit 2b7d86e

Please sign in to comment.