From 22ebe66d4bf9bb9aed7f13bd58c40153f43bec32 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Mon, 29 Jul 2024 10:07:45 -0700 Subject: [PATCH] chore: avoid deleting untracked, non-generated files on npm run clean (#9866) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Related Issue:** N/A ## Summary Prevents `git clean` from removing untracked, non-generated files/dirs from `.gitignore` (e.g., `.idea` 😉) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cf9fecefe45..994ff312c6c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "postinstall": "patch-package", "build": "turbo run build --log-order=stream", - "clean": "turbo run clean --log-order=stream && git clean -fdx", + "clean": "turbo run clean --log-order=stream && git clean -fd", "lint": "concurrently \"npm:lint:*\" \"turbo run lint --log-order=stream\"", "lint:md": "prettier --write \"**/*.md\" >/dev/null && markdownlint \"{,documentation}/*.md\" --fix --dot --ignore-path .gitignore", "lint:yml": "prettier --write \".github/**/*.yml\" >/dev/null",