mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-10 23:12:39 +00:00
180c59913b
Change-type: patch Signed-off-by: Vipul Gupta (@vipulgupta2048) <vipulgupta2048@gmail.com>
13 lines
371 B
Bash
Executable File
13 lines
371 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if npm dedupe --dry-run | grep "remove"; then
|
|
cp npm-shrinkwrap.json npm-shrinkwrap.json.old
|
|
npm dedupe
|
|
diff npm-shrinkwrap.json.old npm-shrinkwrap.json;
|
|
rm npm-shrinkwrap.json.old
|
|
echo "** npm-shrinkwrap.json was not deduplicated or not fully committed - FAIL **";
|
|
echo "** Please run 'npm ci', followed by 'npm dedupe' **";
|
|
exit 1;
|
|
fi |