Skip to content

Commit 9546d32

Browse files
committed
chore(build): Add npm run build to travis.yml
1 parent 97f19a3 commit 9546d32

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ before_script:
1818
- npm prune
1919
script:
2020
- npm run test
21+
- npm run build
2122
after_success:
2223
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
2324
- python travis_after_all.py

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Plugin for `graphql-compose` which provide a connection resolver for types.",
55
"files": [
66
"es",
7-
"lib"
7+
"lib",
8+
"README.md"
89
],
910
"main": "lib/index.js",
1011
"jsnext:main": "es/index.js",
@@ -71,6 +72,9 @@
7172
"config": {
7273
"commitizen": {
7374
"path": "./node_modules/cz-conventional-changelog"
75+
},
76+
"ghooks": {
77+
"pre-commit": "npm run test"
7478
}
7579
}
7680
}

0 commit comments

Comments
 (0)