Skip to content

Commit ceec5eb

Browse files
committed
build script should clean build dir
1 parent 52ac1fe commit ceec5eb

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"use-event-callback": "^0.1.0"
99
},
1010
"scripts": {
11-
"build": "npm run build:babel && cp ./package.json ./dist/package.json",
11+
"build": "rimraf dist && npm run build:babel && cp ./package.json ./dist/package.json",
1212
"build:babel": "NODE_ENV=production babel ./src --out-dir=./dist",
1313
"release": "npm run build && cd dist && npm publish",
1414
"storybook": "start-storybook -p 9050 -s public",
@@ -51,6 +51,7 @@
5151
"react-scripts": "2.1.3",
5252
"react-select": "^3.0.8",
5353
"react-syntax-highlighter": "^10.3.0",
54+
"rimraf": "^3.0.2",
5455
"spelling": "^2.0.1"
5556
}
5657
}

yarn.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11860,6 +11860,13 @@ rimraf@^2.2.8, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2, rimraf@^2.6.3, rimra
1186011860
dependencies:
1186111861
glob "^7.1.3"
1186211862

11863+
rimraf@^3.0.2:
11864+
version "3.0.2"
11865+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
11866+
integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==
11867+
dependencies:
11868+
glob "^7.1.3"
11869+
1186311870
rimraf@~2.6.2:
1186411871
version "2.6.3"
1186511872
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab"

0 commit comments

Comments
 (0)