Skip to content

Commit dddca93

Browse files
committed
load preact before npm install
1 parent bc3afe6 commit dddca93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ language: node_js
22
node_js:
33
- 6
44
install:
5-
- npm install
65
- '[ -z "$PREACT_VERSION" ] || npm run peer:preact -- $PREACT_VERSION'
6+
- npm install
77
env:
88
-
99
- PREACT_VERSION=5.7.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"test:karma": "karma start tests/karma.conf.js --single-run",
1717
"prepublish": "npm-run-all build test",
1818
"release": "npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish",
19-
"peer:preact": "sh -c 'curl https://registry.npmjs.org/preact/-/preact-$0.tgz | tar xz -O package/dist/preact.min.js > tests/preact-versions/$0.js'"
19+
"peer:preact": "mkdir -p tests/preact-versions && sh -c 'curl https://registry.npmjs.org/preact/-/preact-$0.tgz | tar xz -O package/dist/preact.min.js > tests/preact-versions/$0.js'"
2020
},
2121
"keywords": [
2222
"preact",

0 commit comments

Comments
 (0)