Created
November 10, 2017 09:07
-
-
Save RecuencoJones/38c885bf0788868623fd38ff327f11b0 to your computer and use it in GitHub Desktop.
npm@4 file dependency resolutions
This file contains hidden or 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
FROM node:7 | |
COPY package-a.json /test/package-a/package.json | |
COPY package-b.json /test/package-b/package.json | |
COPY entrypoint.sh /test/entrypoint.sh | |
ENTRYPOINT ["/test/entrypoint.sh"] |
This file contains hidden or 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 | |
cd /test/package-a | |
npm install | |
cd /test/package-b | |
npm install | |
# list some dependencies for comparison | |
echo "--> package-a/node_modules/" | |
ls -al /test/package-a/node_modules | head -n 10 | |
echo "---> package-b/node_modules/" | |
ls -al /test/package-b/node_modules | head -n 10 | |
tail -f /dev/null |
This file contains hidden or 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
{ | |
"name": "package-a", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"webpack": "3.8.1" | |
} | |
} |
This file contains hidden or 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
{ | |
"name": "package-b", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"package-a": "file:../package-a" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment