Skip to content

Commit 63ac57f

Browse files
authored
fix: repair local build break after rimraf v4 update (#911)
#### Details PR #897 updated `rimraf` from 3.0.2 to 4.0.4. Unfortunately, rimraf v4 [dropped support for globs](https://github.com/isaacs/rimraf#major-changes-from-v3-to-v4) which we were using in `yarn clean` to delete the `dist` and `test-results` folders, so that started erroring out. Since `yarn clean` is called by `yarn prebuild`, this broke running local builds. PR and CI builds were not affected. This change removes the use of globs. ##### Motivation Get local builds working again. #### Pull request checklist <!-- If a checklist item is not applicable to this change, write "n/a" in the checkbox --> - [X] PR title respects [Conventional Commits](https://www.conventionalcommits.org) (starts with `fix:`, `feat:`, etc, and is suitable for user-facing release notes) - [X] PR contains no breaking changes, **OR** description of both PR **and final merge commit** starts with `BREAKING CHANGE:` - [n/a] (if applicable) Addresses issue: #0000 - [n/a] Added relevant unit tests for your changes - [X] Ran `yarn precheckin` - [n/a] Verified code coverage for the changes made
1 parent 8117c7c commit 63ac57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"scripts": {
4545
"prebuild": "yarn clean",
4646
"build": "tsc -p .",
47-
"clean": "rimraf dist/* test-results/*",
47+
"clean": "rimraf dist test-results",
4848
"test": "jest",
4949
"lint": "eslint src/**/*.{js,ts,tsx}",
5050
"format": "prettier --config prettier.config.js --write \"**/*\"",

0 commit comments

Comments
 (0)