Skip to content

Commit 394eecc

Browse files
author
Brian Vaughn
committed
Tweaked package files
2 parents 35f99db + 91b6909 commit 394eecc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

index.js.flow

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// @flow
2+
3+
export * from '../src';

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
],
3737
"main": "dist/index.cjs.js",
3838
"module": "dist/index.esm.js",
39-
"files": ["dist"],
39+
"files": ["dist", "src/*.js"],
4040
"scripts": {
4141
"flow": "flow check src && flow check website",
4242
"precommit": "lint-staged",
@@ -45,7 +45,10 @@
4545
"lint": "eslint '**/*.js'",
4646
"test": "cross-env CI=1 react-scripts test --env=jsdom",
4747
"test:watch": "react-scripts test --env=jsdom",
48-
"build": "del dist && rollup -c",
48+
"build:flow":
49+
"cp index.js.flow dist/index.cjs.js.flow && cp index.js.flow dist/index.esm.js.flow",
50+
"build:source": "rollup -c",
51+
"build": "del dist && mkdir dist && yarn build:flow && yarn build:source",
4952
"start": "rollup -c -w",
5053
"prepare": "yarn run build",
5154
"website:build": "cd website && yarn build",

0 commit comments

Comments
 (0)