From 66ddb79ce42ccb75a99b2e26da71ff81579d5b94 Mon Sep 17 00:00:00 2001 From: Leigh Simpson Date: Thu, 11 May 2023 15:14:36 +0100 Subject: [PATCH] Add `-f` flag to invocation of `rm` in `clean` script ### 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 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b318217..787f8d4 100644 --- a/package.json +++ b/package.json @@ -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" },