File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 6
6
"types" : " dist/index.d.ts" ,
7
7
"scripts" : {
8
8
"build:dev" : " webpack --config webpack.dev.js && webpack-dev-server --open --config webpack.dev.js" ,
9
- "build:prod" : " rm -rf ./dist && webpack --config webpack.prod.js && cpy src/index.d.ts dist/index.d.ts "
9
+ "build:prod" : " rm -rf ./dist && webpack --config webpack.prod.js"
10
10
},
11
11
"repository" : {
12
12
"type" : " git" ,
41
41
"babel-preset-react" : " ^6.24.1" ,
42
42
"babel-preset-stage-1" : " ^6.24.1" ,
43
43
"copy-webpack-plugin" : " ^4.6.0" ,
44
- "cpy-cli" : " ^3.0.0" ,
45
44
"react" : " ^16.8.0" ,
46
45
"react-dom" : " 16.8.0" ,
47
46
"webpack" : " ^4.24.0" ,
Original file line number Diff line number Diff line change
1
+ const CopyWebpackPlugin = require ( 'copy-webpack-plugin' ) ;
2
+
1
3
module . exports = {
2
4
performance : {
3
5
hints : false
@@ -18,6 +20,11 @@ module.exports = {
18
20
}
19
21
} ]
20
22
} ,
23
+ plugins : [
24
+ new CopyWebpackPlugin ( [
25
+ { from : './src/index.d.ts' , to : './' } ,
26
+ ] ) ,
27
+ ] ,
21
28
externals : [
22
29
'react' ,
23
30
/ ^ r e a c t \/ .+ $ / ,
You can’t perform that action at this time.
0 commit comments