Skip to content

Commit f647ed5

Browse files
committed
Delete npm cache before packaging - closes #355
1 parent 2cc1f51 commit f647ed5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ npm ci
1818
npm run build
1919
npm prune --production
2020

21+
# Remove internal package-lock cache which can cause checksum errors at runtime
22+
rm -f node_modules/.package-lock.json
23+
2124
shasum --algorithm 256 manifest.json package.json lib/*.js lib/driver/*.js lib/zigbee2mqtt/*.js LICENSE README.md > SHA256SUMS
2225

2326
find node_modules \( -type f -o -type l \) -exec shasum --algorithm 256 {} \; >> SHA256SUMS

0 commit comments

Comments
 (0)