Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 00b066d

Browse files
authored
fix: build exports
2 parents c1883b1 + 198e604 commit 00b066d

File tree

3 files changed

+750
-156
lines changed

3 files changed

+750
-156
lines changed

package.json

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
"description": "React wrapper around PopperJS.",
55
"main": "lib/react-popper.js",
66
"types": "react-popper.d.ts",
7-
"files": ["dist", "lib", "react-popper.d.ts"],
7+
"files": [
8+
"dist",
9+
"lib",
10+
"react-popper.d.ts"
11+
],
812
"license": "MIT",
9-
"author":
10-
"Travis Arnold <[email protected]> (http://souporserious.com)",
13+
"author": "Travis Arnold <[email protected]> (http://souporserious.com)",
1114
"homepage": "https://github.com/souporserious/react-popper",
1215
"repository": {
1316
"type": "git",
@@ -26,18 +29,19 @@
2629
"popover"
2730
],
2831
"lint-staged": {
29-
"@(src|example)/**/*.{js,jsx}": ["eslint --fix --max-warnings 5", "git add"]
32+
"@(src|example)/**/*.{js,jsx}": [
33+
"eslint --fix --max-warnings 5",
34+
"git add"
35+
]
3036
},
3137
"scripts": {
3238
"precommit": "lint-staged",
3339
"format": "npm run lint -- --fix --quiet",
3440
"lint": "eslint --ext .js,.jsx src/ example/",
3541
"build:lib": "babel src --out-dir lib",
36-
"build":
37-
"npm run build:lib && cross-env NODE_ENV=production webpack --config webpack.prod.config.js",
42+
"build": "npm run build:lib && cross-env NODE_ENV=production webpack --config webpack.prod.config.js",
3843
"dev": "webpack-dev-server --hot --progress --host 0.0.0.0",
39-
"postbuild":
40-
"cross-env NODE_ENV=production && cross-env TARGET=minify webpack --config webpack.prod.config.js",
44+
"postbuild": "cross-env NODE_ENV=production && cross-env TARGET=minify webpack --config webpack.prod.config.js",
4145
"prebuild": "rimraf dist && mkdir dist",
4246
"prepare": "npm run build"
4347
},
@@ -52,7 +56,7 @@
5256
"devDependencies": {
5357
"babel-cli": "^6.26.0",
5458
"babel-core": "^6.26.0",
55-
"babel-eslint": "^8.2.1",
59+
"babel-eslint": "^8.2.2",
5660
"babel-loader": "^7.1.2",
5761
"babel-plugin-transform-class-properties": "^6.24.1",
5862
"babel-plugin-transform-export-extensions": "^6.22.0",
@@ -61,27 +65,27 @@
6165
"babel-preset-react": "^6.16.0",
6266
"cross-env": "^5.0.5",
6367
"css-loader": "^0.28.9",
64-
"eslint": "^4.17.0",
68+
"eslint": "^4.18.1",
6569
"eslint-config-prettier": "^2.9.0",
66-
"eslint-config-standard": "^11.0.0-beta.0",
67-
"eslint-config-standard-react": "^5.0.0",
68-
"eslint-plugin-import": "^2.8.0",
70+
"eslint-config-standard": "^11.0.0",
71+
"eslint-config-standard-react": "^6.0.0",
72+
"eslint-plugin-import": "^2.9.0",
6973
"eslint-plugin-node": "^6.0.0",
7074
"eslint-plugin-prettier": "^2.6.0",
7175
"eslint-plugin-promise": "^3.6.0",
72-
"eslint-plugin-react": "^7.6.1",
76+
"eslint-plugin-react": "^7.7.0",
7377
"eslint-plugin-standard": "^3.0.1",
7478
"husky": "^0.14.3",
75-
"lint-staged": "^6.1.0",
79+
"lint-staged": "^7.0.0",
7680
"outy": "^0.1.2",
7781
"prettier": "^1.10.2",
7882
"react": "^16.2.0",
7983
"react-dom": "^16.2.0",
8084
"react-portal": "^4.1.2",
8185
"react-transition-group": "^2.2.1",
8286
"rimraf": "^2.6.2",
83-
"style-loader": "^0.20.1",
84-
"webpack": "^3.10.0",
87+
"style-loader": "^0.20.2",
88+
"webpack": "^3.11.0",
8589
"webpack-dev-server": "^2.11.1"
8690
}
8791
}

src/react-popper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { default as Manager } from './Manager'
2-
export { default as Target } from './Target'
3-
export { default as Popper } from './Popper'
4-
export { default as Arrow } from './Arrow'
1+
export Manager from './Manager'
2+
export Target from './Target'
3+
export Popper from './Popper'
4+
export Arrow from './Arrow'

0 commit comments

Comments
 (0)