Skip to content

Commit 20cda71

Browse files
authored
Merge pull request #205 from jessebeach/fix-dot-files
Ignore unneeded dot files in npm package
2 parents 6a7d8a6 + aa538b9 commit 20cda71

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.npmignore

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
.DS_Store
2+
.flowconfig
3+
.travis.yml
4+
coverage
5+
flow
16
node_modules
2-
reports
37
npm-debug.log
4-
coverage
5-
.gitignore
6-
.DS_Store
8+
reports
79
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)