Skip to content

Commit 455a49c

Browse files
committed
Clean up process a bit, ignore coverage for npm
1 parent 1573998 commit 455a49c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Diff for: .npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
src
2-
dist/*.spec.*
2+
dist/*.spec.*
3+
coverage

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ node_js:
44
- node
55
script:
66
- npm test
7-
- npx prettier --check src/**/*.ts{,x}
7+
- npm run prettier-check

Diff for: package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"scripts": {
8-
"prepare": "npm run build && npm run test",
8+
"prepare": "npm run prettier-check && npm run build && npm run test",
99
"prebuild": "prettier --write src/**/*.ts{,x}",
1010
"build": "tsc -p tsconfig.json",
11-
"test": "jest --coverage src"
11+
"test": "jest --coverage src",
12+
"prettier-check": "prettier --check src/**/*.ts{,x}"
1213
},
1314
"repository": {
1415
"type": "git",

0 commit comments

Comments
 (0)