18 lines
346 B
Bash
Executable file
18 lines
346 B
Bash
Executable file
#!/bin/bash
|
|
|
|
rm -rf node_modules
|
|
npm install --production --no-audit
|
|
rm -rf node_modules/.bin
|
|
|
|
TARFILE=`npm pack`
|
|
tar xzf ${TARFILE}
|
|
cp -r node_modules ./package
|
|
pushd package
|
|
find . -type f -exec shasum --algorithm 256 {} \; >> SHA256SUMS
|
|
popd
|
|
tar czf ${TARFILE} package
|
|
|
|
shasum --algorithm 256 ${TARFILE} > ${TARFILE}.sha256sum
|
|
|
|
rm -rf package
|