Skip to content

Commit c8d3dc8

Browse files
emmatowngwyneplaine
authored andcommitted
Use preconstruct
1 parent dccb182 commit c8d3dc8

File tree

6 files changed

+571
-156
lines changed

6 files changed

+571
-156
lines changed

netlify.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build]
2+
command = "yarn build:docs"
3+
publish = "docs/dist"

package-scripts.js

-37
This file was deleted.

package.json

+11-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-select",
33
"version": "2.4.4",
44
"description": "A Select control built with and for ReactJS",
5-
"main": "lib/index.js",
5+
"main": "dist/react-select.cjs.js",
66
"module": "dist/react-select.esm.js",
77
"sideEffects": false,
88
"author": "Jed Watson",
@@ -12,6 +12,7 @@
1212
"url": "https://github.com/JedWatson/react-select.git"
1313
},
1414
"dependencies": {
15+
"@babel/runtime": "^7.4.4",
1516
"@emotion/cache": "^10.0.0",
1617
"@emotion/core": "^10.0.5",
1718
"classnames": "^2.2.5",
@@ -65,8 +66,7 @@
6566
"jest-in-case": "^1.0.2",
6667
"lint-staged": "^7.0.5",
6768
"moment": "^2.20.1",
68-
"nps": "^5.7.1",
69-
"nps-utils": "^1.3.0",
69+
"preconstruct": "^0.0.63",
7070
"pretty-proptypes": "^0.5.0",
7171
"raf-schd": "^2.1.0",
7272
"raw-loader": "^0.5.1",
@@ -92,12 +92,12 @@
9292
"react-dom": "^15.3.0 || ^16.0.0"
9393
},
9494
"scripts": {
95-
"build": "nps build && bundlesize",
96-
"watch": "nps build.watch",
95+
"build": "preconstruct build",
96+
"watch": "preconstruct watch",
9797
"coveralls": "cat coverage/lcov.info | coveralls",
9898
"lint": "eslint .",
99-
"deploy": "cross-env NODE_ENV=production nps publish",
10099
"start": "cross-env FORCE_EXTRACT_REACT_TYPES=true webpack-dev-server --progress",
100+
"build:website": "rimraf docs/dist && cross-env FORCE_EXTRACT_REACT_TYPES=true webpack --progress -p",
101101
"fresh": "rm -rf node_modules && yarn install",
102102
"test": "npm run test:jest && npm run test:cypress",
103103
"test:jest": "jest --coverage",
@@ -108,7 +108,6 @@
108108
},
109109
"files": [
110110
"dist",
111-
"lib",
112111
"src"
113112
],
114113
"keywords": [
@@ -121,11 +120,6 @@
121120
"select",
122121
"ui"
123122
],
124-
"bundlesize": [
125-
{
126-
"path": "./dist/react-select.js"
127-
}
128-
],
129123
"jest": {
130124
"modulePathIgnorePatterns": [
131125
"./node_modules"
@@ -137,5 +131,9 @@
137131
},
138132
"lint-staged": {
139133
"*.js": "eslint"
134+
},
135+
"browser": {
136+
"./dist/react-select.cjs.js": "./dist/react-select.browser.cjs.js",
137+
"./dist/react-select.esm.js": "./dist/react-select.browser.esm.js"
140138
}
141-
}
139+
}

rollup.config.js

-72
This file was deleted.

src/index.umd.js

-28
This file was deleted.

0 commit comments

Comments
 (0)