File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 18
18
],
19
19
"main" : " index.js" ,
20
20
"scripts" : {
21
- "build" : " webpack -p; babel src --out-dir dist -s; cp ./types/* README.md LICENSE package.json dist; cd dist && npm install --only=production && cd -" ,
22
- "pub" : " npm run build && npm publish dist"
21
+ "clean" : " rm -rf ./dist" ,
22
+ "build" : " webpack -p && babel src --out-dir dist -s && cp ./types/* README.md LICENSE package.json dist && cd dist && npm install --only=production && cd -" ,
23
+ "pub" : " npm run clean && npm run build && npm publish dist"
23
24
},
24
25
"author" : " Google" ,
25
26
"repository" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"scripts" : {
3
- "build" : " npm run createfirebaseconf; NODE_ENV=production webpack -p;" ,
3
+ "clean" : " rm -rf ./public/bundle.* ./src/firebase-config.json ./node_modules" ,
4
+ "build" : " npm run clean && npm run createfirebaseconf; NODE_ENV=production webpack -p;" ,
4
5
"createfirebaseconf" : " firebase setup:web --json > ./src/firebase-config.json" ,
5
6
"serve" : " firebase serve"
6
7
},
You can’t perform that action at this time.
0 commit comments