Skip to content

Commit

Permalink
Add -f flag to invocation of rm in clean script
Browse files Browse the repository at this point in the history
### Why?

If the `include` directory doesn't exist (probably because nobody ran
`yarn headers`) then attempting to remove it will fail.
This isn't useful for a `clean` command: if the directory is missing
then it's already clean!

### What?

* add `-f` to `rm` command
  • Loading branch information
simpleigh committed May 11, 2023
1 parent b157c36 commit 66ddb79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"scripts": {
"build": "node-gyp rebuild",
"clean": "rm -r build include",
"clean": "rm -rf build include",
"headers": "node-gyp install --devdir include",
"test": "jest"
},
Expand Down

0 comments on commit 66ddb79

Please sign in to comment.