Skip to content

Commit

Permalink
fix: tar into pkgdir
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Dec 13, 2018
1 parent 48ee052 commit 61b3d77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/npm-pkgbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ build() {
}
package() {
${Object.keys(pkg.bin||{}).map(n => `install -Dm755 "\${srcdir}/${pkg.name}$/{pkg.bin[n]}" "\${pkgdir}/${pkg.bin[n]}"`).join('\n ')}
install "\${srcdir}/${pkg.name}/node_modules" "\${pkgdir}/node_modules"
(cd "${srcdir}";tar cf - bin node_modules package.json)|(cd "${pkgdir}";tar xf - )
}
`
);
Expand Down

0 comments on commit 61b3d77

Please sign in to comment.