Skip to content

Commit d5b9e01

Browse files
committed
fix(Flowtype): make proper definition files via updated flowgen
1 parent 293bc43 commit d5b9e01

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"eslint": "^5.15.1",
4444
"eslint-config-prettier": "^4.1.0",
4545
"eslint-plugin-prettier": "^3.0.1",
46-
"flowgen": "^1.6.0",
46+
"flowgen": "^1.7.0",
4747
"jest": "^24.3.1",
4848
"mongodb": "^3.1.13",
4949
"npm-run-all": "^4.1.5",
@@ -73,7 +73,7 @@
7373
"scripts": {
7474
"build": "npm-run-all build:*",
7575
"build:ts": "rimraf ./lib && tsc -p ./tsconfig.build.json",
76-
"build:flow": "find ./lib -name \"*.d.ts\" -exec bash -c './node_modules/.bin/flowgen \"$1\" -o \"${1%.d.ts}\".js.flow' - '{}' \\;",
76+
"build:flow": "find ./lib -name \"*.d.ts\" -exec bash -c './node_modules/.bin/flowgen --add-flow-header \"$1\" -o \"${1%.d.ts}\".js.flow' - '{}' \\;",
7777
"watch": "cross-env MONGOMS_DOWNLOAD_DIR=./tmp jest --watch",
7878
"coverage": "cross-env MONGOMS_DOWNLOAD_DIR=./tmp jest --coverage",
7979
"lint": "eslint 'src/**/*.{js,ts}'",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,10 +2411,10 @@ flatted@^2.0.0:
24112411
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.0.tgz#55122b6536ea496b4b44893ee2608141d10d9916"
24122412
integrity sha512-R+H8IZclI8AAkSBRQJLVOsxwAoHd6WC40b4QTNWIjzAa6BXOBfQcM587MXDTVPeYaopFNWHUFLx7eNmHDSxMWg==
24132413

2414-
flowgen@^1.6.0:
2415-
version "1.6.0"
2416-
resolved "https://registry.yarnpkg.com/flowgen/-/flowgen-1.6.0.tgz#524338acd87db375c072e90d5347bef47375a539"
2417-
integrity sha512-rN4CkNbJPVOdxHlLCSaIPPB9CaUQYx4ysD+UgBQCApVFCI0PfGqtuXC7XCJrCdoJv3ftA7NceqkgKR/2/O1zGw==
2414+
flowgen@^1.7.0:
2415+
version "1.7.0"
2416+
resolved "https://registry.yarnpkg.com/flowgen/-/flowgen-1.7.0.tgz#5fd0cf5813e4a474968e0f5a927b2104535a792b"
2417+
integrity sha512-iLy/M5BuEflS7TFSrs0mjRQRkdD7iPVy8WnvpX6ugY9v39oRxT08fpk3Mp84hrIplAnk//T12DR4gAP3qb+CxA==
24182418
dependencies:
24192419
commander "^2.11.0"
24202420
lodash "^4.17.4"

0 commit comments

Comments
 (0)