Skip to content

Commit 91ca037

Browse files
committed
fix(package.json): use flow-copy-source
1 parent 8667c9f commit 91ca037

File tree

2 files changed

+190
-6
lines changed

2 files changed

+190
-6
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@
1010
"flow": "flow",
1111
"flow:coverage": "for file in src/**.js test/**.js; do echo $file; flow coverage $file; done",
1212
"flow:watch": "flow-watch -e js,js.flow,flowconfig --ignore lib/ --ignore node_modules/ --watch .flowconfig --watch src/ --watch test/",
13-
"gen-flow-files": "flow gen-flow-files src/ --out-dir lib",
14-
"copy-flow-files": "cd src; copy *.js.flow **/*.js.flow ../lib",
15-
"build": "rimraf lib && babel src --out-dir lib",
13+
"build": "rimraf lib && babel src --out-dir lib && flow-copy-source -v src/ lib",
1614
"test": "NODE_ENV=production BABEL_ENV=test nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha",
1715
"test:watch": "mocha --watch $npm_package_config_mocha",
1816
"codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov",
1917
"commitmsg": "validate-commit-msg",
2018
"precommit": "npm run lint && flow",
2119
"prepush": "npm test",
22-
"prepublish": "npm run lint && flow && npm test && npm run build && npm run copy-flow-files",
20+
"prepublish": "npm run lint && flow && npm test && npm run build",
2321
"open:coverage": "open coverage/lcov-report/index.html",
2422
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
2523
},
@@ -72,6 +70,7 @@
7270
"eslint-plugin-flowtype": "^2.30.0",
7371
"eslint-watch": "^3.0.0",
7472
"flow-bin": "^0.42.0",
73+
"flow-copy-source": "^1.2.1",
7574
"flow-watch": "^1.1.0",
7675
"husky": "^0.13.1",
7776
"istanbul": "^0.4.5",

0 commit comments

Comments
 (0)