Skip to content

Commit 0dc8c67

Browse files
Bundle the npm release
1 parent 0565325 commit 0dc8c67

File tree

10 files changed

+1205
-26
lines changed

10 files changed

+1205
-26
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
coverage/
3+
dist/*.js

__tests__/Context-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
Update,
99
SideEffects,
1010
UpdateWithSideEffects
11-
} from "../";
11+
} from "../src";
1212

1313
import { click, withConsoleMock } from "./helpers";
1414

__tests__/ReComponent-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
Update,
99
SideEffects,
1010
UpdateWithSideEffects
11-
} from "../";
11+
} from "../src";
1212

1313
import { click, withConsoleMock } from "./helpers";
1414

__tests__/RePureComponent-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Update,
88
SideEffects,
99
UpdateWithSideEffects
10-
} from "../";
10+
} from "../src";
1111

1212
import { click, withConsoleMock } from "./helpers";
1313

__tests__/UpdateTypes-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Update,
88
SideEffects,
99
UpdateWithSideEffects
10-
} from "../";
10+
} from "../src";
1111

1212
import { click, withConsoleMock } from "./helpers";
1313

File renamed without changes.

dist/react-recomponent.m.js.flow

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/* @flow */
2+
3+
export * from '../type-definitions/ReComponent.js.flow';

dist/react-recomponent.umd.js.flow

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/* @flow */
2+
3+
export * from '../type-definitions/ReComponent.js.flow';

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
{
22
"name": "react-recomponent",
33
"version": "0.1.0",
4-
"main": "src/index.js",
4+
"main": "dist/react-recomponent.js",
5+
"umd:main": "dist/react-recomponent.umd.js",
6+
"module": "dist/react-recomponent.m.js",
7+
"source": "src/index.js",
58
"license": "MIT",
9+
"files": [
10+
"dist",
11+
"type-definitions/ReComponent.js.flow",
12+
"README.md",
13+
"LICENSE"
14+
],
615
"devDependencies": {
716
"babel-core": "^6.26.3",
817
"babel-jest": "^23.0.1",
@@ -11,6 +20,7 @@
1120
"flow-bin": "^0.73.0",
1221
"immutable": "^3.8.2",
1322
"jest": "^23.1.0",
23+
"microbundle": "^0.4.4",
1424
"prettier": "^1.13.4",
1525
"react": "^16.4.0",
1626
"react-dom": "^16.4.0",
@@ -23,7 +33,9 @@
2333
"test": "jest",
2434
"prettier": "prettier {__tests__,src,type-definitions}/**.js",
2535
"format": "yarn prettier --write",
26-
"test:types:flow": "flow check ."
36+
"test:types:flow": "flow check .",
37+
"build": "yarn microbundle -o dist/ --name ReComponent --compress false --sourcemap false",
38+
"prepublish": "build"
2739
},
2840
"jest": {
2941
"testRegex": "(/__tests__/.*\\-(test))\\.js$",

0 commit comments

Comments
 (0)