Skip to content

Commit 63a1bd6

Browse files
committed
fix: throw error when install from npm
1 parent d04afdc commit 63a1bd6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ node_js:
1010
install:
1111
- npm install
1212
- npm install -g codecov
13+
- npm run test:install
1314

1415
stages:
1516
- test

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"scripts": {
1414
"test": "jest",
1515
"test:clear-cache": "jest --clearCache",
16+
"test:install": "node test/install.js && node playground/install.js",
1617
"pg:dev": "node playground/build.js --dev",
1718
"pg:build": "node playground/build.js",
18-
"prepublishOnly": "npm run test",
19-
"postinstall": "node test/install.js && node playground/install.js"
19+
"prepublishOnly": "npm run test"
2020
},
2121
"husky": {
2222
"hooks": {

0 commit comments

Comments
 (0)