Skip to content

Commit 176ee75

Browse files
committed
Clean dist before build
1 parent 0f73f0b commit 176ee75

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
"build": "yarn run build-js && yarn run copy-styles && yarn run build-styles",
99
"build-js": "babel src -d dist --ignore __tests__",
1010
"build-styles": "lessc ./dist/DateTimePicker.less ./dist/DateTimePicker.css",
11+
"clean": "rimraf dist",
1112
"copy-styles": "node ./copy-styles.js",
12-
"prepublishOnly": "yarn run build",
13+
"prepublishOnly": "yarn run clean && yarn run build",
1314
"test": "yarn run test-eslint && yarn run test-jest",
1415
"test-eslint": "eslint src/ test/ --ext .jsx,.js",
1516
"test-jest": "jest",
@@ -72,7 +73,8 @@
7273
"less": "~3.7.1",
7374
"react": "^16.4.0",
7475
"react-dom": "^16.4.0",
75-
"react-test-renderer": "^16.4.1"
76+
"react-test-renderer": "^16.4.1",
77+
"rimraf": "^2.6.2"
7678
},
7779
"peerDependencies": {
7880
"react": ">=15.5",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4153,7 +4153,7 @@ right-align@^0.1.1:
41534153
dependencies:
41544154
align-text "^0.1.1"
41554155

4156-
rimraf@^2.2.8, rimraf@^2.5.4, rimraf@^2.6.1:
4156+
rimraf@^2.2.8, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2:
41574157
version "2.6.2"
41584158
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36"
41594159
dependencies:

0 commit comments

Comments
 (0)