Skip to content

Commit

Permalink
fixing odd behaviour in old npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona authored and kategengler committed May 15, 2019
1 parent 03c9d8a commit 203cdf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"eslint-plugin-ember": "^6.4.1",
"eslint-plugin-node": "^8.0.1",
"glob": "^7.1.4",
"json": "^9.0.6",
"loader.js": "^4.7.0",
"mocha": "^6.1.4",
"mockery": "^2.1.0",
Expand Down
7 changes: 5 additions & 2 deletions run-smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ mv ember-try*.tgz "ember-try-${now}.tgz"
if [[ $npm_execpath =~ ^.*yarn.*$ ]]; then
cd smoke-test-app && yarn upgrade "ember-try@file:../ember-try-${now}.tgz" && yarn install && "./${1}"
else
cd smoke-test-app && npm install --save-dev "../ember-try-${now}.tgz" && npm install && "./${1}"
if [[ $(npm -v | cut -d '.' -f 1) -lt 5 ]]; then
cd smoke-test-app && json -I -f package.json -e "this.devDependencies['ember-try']='../ember-try-${now}.tgz'" && npm install && "./${1}"
else
cd smoke-test-app && npm install --save-dev "../ember-try-${now}.tgz" && npm install && "./${1}"
fi
fi

0 comments on commit 203cdf0

Please sign in to comment.