diff --git a/package.json b/package.json index 109be9e..38a933d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "build-duomo-dev-full": "sass --style=compressed --no-charset --no-source-map builds/development-full.scss dist/development-full.css && yarn prettier -w dist/development-full.css", "build-duomo-prod": "sass --style=compressed --no-charset --no-source-map builds/production.scss dist/production.css", "build-duomo-prod-full": "sass --style=compressed --no-charset --no-source-map builds/production-full.scss dist/production-full.css", - "build": "rm -rf dist && yarn tsc && yarn build-duomo-dev && yarn build-duomo-dev-full && yarn build-duomo-prod && yarn build-duomo-prod-full", + "build": "yarn rimraf dist && yarn tsc && yarn build-duomo-dev && yarn build-duomo-dev-full && yarn build-duomo-prod && yarn build-duomo-prod-full", "publish-dist-dry-run": "yarn build && npm publish --dry-run" }, "devDependencies": { @@ -29,6 +29,7 @@ "prettier": "^2.2.1", "react": "^17.0.1", "react-dom": "^17.0.1", + "rimraf": "^3.0.2", "sass": "^1.29.0", "typescript": "^4.1.2" } diff --git a/yarn.lock b/yarn.lock index bfd4d5a..e16d5e5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4100,7 +4100,7 @@ ret@~0.1.10: resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== -rimraf@^3.0.0: +rimraf@^3.0.0, rimraf@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==