Created
March 16, 2022 19:40
-
-
Save t1m0thyj/73e501332b38cae37f1213b246434b8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
npmRegistry=$1 | |
tempDir=$(mktemp -d) | |
cd $tempDir | |
[[ ! -z "$npmRegistry" ]] && echo "@zowe:registry=$npmRegistry" >> .npmrc | |
npm init -y | |
npm install @zowe/cli | |
ls node_modules # Only one dependency should be at top level (@zowe/cli) | |
grep flatted node_modules/@zowe/cli/npm-shrinkwrap.json | |
npm list flatted # Installed version should match shrinkwrap (3.2.4) | |
rm -rf $tempDir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment