Skip to content

Commit 203cdf0

Browse files
mansonakategengler
authored andcommitted
fixing odd behaviour in old npm version
1 parent 03c9d8a commit 203cdf0

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"eslint-plugin-ember": "^6.4.1",
4646
"eslint-plugin-node": "^8.0.1",
4747
"glob": "^7.1.4",
48+
"json": "^9.0.6",
4849
"loader.js": "^4.7.0",
4950
"mocha": "^6.1.4",
5051
"mockery": "^2.1.0",

run-smoke-test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ mv ember-try*.tgz "ember-try-${now}.tgz"
88
if [[ $npm_execpath =~ ^.*yarn.*$ ]]; then
99
cd smoke-test-app && yarn upgrade "ember-try@file:../ember-try-${now}.tgz" && yarn install && "./${1}"
1010
else
11-
cd smoke-test-app && npm install --save-dev "../ember-try-${now}.tgz" && npm install && "./${1}"
11+
if [[ $(npm -v | cut -d '.' -f 1) -lt 5 ]]; then
12+
cd smoke-test-app && json -I -f package.json -e "this.devDependencies['ember-try']='../ember-try-${now}.tgz'" && npm install && "./${1}"
13+
else
14+
cd smoke-test-app && npm install --save-dev "../ember-try-${now}.tgz" && npm install && "./${1}"
15+
fi
1216
fi
13-

0 commit comments

Comments
 (0)