File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed
Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/bash -e
22
33rm -rf node_modules
4+
45npm install --production
5- rm -f SHA256SUMS
6- sha256sum manifest.json package.json * .js LICENSE README.md > SHA256SUMS
7- rm -rf node_modules/.bin
8- find node_modules -type f -exec sha256sum {} \; >> SHA256SUMS
9- TARFILE=$( npm pack)
6+
7+ shasum --algorithm 256 manifest.json package.json * .js LICENSE README.md > SHA256SUMS
8+
9+ find node_modules \( -type f -o -type l \) -exec shasum --algorithm 256 {} \; >> SHA256SUMS
10+
11+ TARFILE=` npm pack`
12+
1013tar xzf ${TARFILE}
1114cp -r node_modules ./package
1215tar czf ${TARFILE} package
13- rm -rf package
14- echo " Created ${TARFILE} "
16+
17+ shasum --algorithm 256 ${TARFILE} > ${TARFILE} .sha256sum
18+
19+ rm -rf SHA256SUMS package
You can’t perform that action at this time.
0 commit comments