Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 4981227

Browse files
committed
Added yarn support, switched to prepublishOnly
1 parent dfaadab commit 4981227

File tree

3 files changed

+4400
-2
lines changed

3 files changed

+4400
-2
lines changed

.travis.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,22 @@ language: node_js
33
node_js:
44
- "4.0"
55
- "4"
6+
- "7"
67
- "stable"
78

9+
# before_install:
10+
# - npm config set ignore-scripts true
11+
812
script:
9-
- npm test
13+
- yarn test
14+
- yarn run lint
15+
- yarn run build
16+
- yarn run tsdef
17+
18+
cache: yarn
19+
# cache:
20+
# directories:
21+
# - node_modules
1022

1123
branches:
1224
except:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build:lib": "babel src --out-dir lib",
1818
"analyze": "webpack src/index.js dist/index.js --config webpack.config.prod.js --json > stats.json",
1919
"preversion": "npm run test && npm run lint",
20-
"prepublish": "npm test && npm run lint && npm run build && npm run tsdef",
20+
"prepublishOnly": "npm test && npm run lint && npm run build && npm run tsdef",
2121
"postversion": "git push && git push --tags",
2222
"publish:beta": "npm publish --tag beta",
2323
"tsdef": "cp -f immutable.d.ts lib/",

0 commit comments

Comments
 (0)