Skip to content

Commit f9ca396

Browse files
committed
Ignore unneeded dot files in npm package
1 parent 6a7d8a6 commit f9ca396

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.npmignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
.DS_Store
2+
.flowconfig
3+
.gitignore
4+
.travis.yml
5+
coverage
6+
flow
17
node_modules
2-
reports
38
npm-debug.log
4-
coverage
5-
.gitignore
6-
.DS_Store
9+
reports
710
yarn-error.log

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"build": "rimraf lib && babel src --out-dir lib && cp -R src/util/attributes lib/util/attributes",
2121
"prepublish": "npm run lint && npm run flow && npm run test && npm run build",
2222
"coveralls": "cat ./reports/lcov.info | coveralls",
23-
"flow": "flow; test $? -eq 0 -o $? -eq 2",
23+
"flow": "if [ ! -e ./.flowconfig ]; then echo \"Could not find .flowconfig\"; else flow; test $? -eq 0 -o $? -eq 2; fi",
2424
"lint": "eslint --config .eslintrc src __tests__",
2525
"lint:fix": "npm run lint -- --fix",
2626
"pretest": "npm run lint:fix && npm run flow",

0 commit comments

Comments
 (0)