Skip to content

Commit

Permalink
fix: remove package dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Felten authored and Markus Felten committed Dec 25, 2018
1 parent 46cf6e0 commit 6f34b83
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/npm-pkgbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,14 @@ build() {
}
package() {
mkdir -p "\${pkgdir}/${installdir}"
cd "\${pkgdir}/${installdir}"
mkdir -p "\${pkgdir}${installdir}"
cd "\${pkgdir}${installdir}"
tar xf \${srcdir}/${pkg.name}/${pkg.name}-${pkg.version}.tgz
mv package/* .
rmdir package
(cd "\${srcdir}/${
pkg.name
}";tar cf - node_modules)|(cd "\${pkgdir}/${installdir}";tar xf - )
}";tar cf - node_modules)|(cd "\${pkgdir}${installdir}";tar xf - )
}
`
);
Expand Down

0 comments on commit 6f34b83

Please sign in to comment.