From 3f38fb212bcffb6287ffe7f5f2d94bb19875cb62 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Thu, 7 Aug 2025 22:42:03 +0200 Subject: [PATCH] fix broken `build:clean` on main (#5898) It kept mysteriously deleting `packages/@uppy/companion/node_modules/webdav/dist/node/compat/env.js` turns out it was because of the line `env.*` in `packages/@uppy/companion/.gitignore` chery picked from 2508068551ef42c6b7492d18702d7bfaa3dbc4e5 closes #5893 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e3ee3b3e6..c5ef393a4 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ ], "scripts": { "build": "turbo run --no-daemon build build:css --filter='./packages/@uppy/*' --filter='./packages/uppy'", - "build:clean": "cp .gitignore .gitignore.bak && printf '!node_modules\n!**/node_modules/**/*\n' >> .gitignore; git clean -Xfd packages e2e .parcel-cache coverage; mv .gitignore.bak .gitignore", + "build:clean": "git clean -Xfd packages e2e .parcel-cache coverage .turbo -e '!node_modules' -e '!**/node_modules/**/*'", "build:watch": "turbo watch build build:css --filter='./packages/@uppy/*'", "migrate:components": "yarn workspace @uppy/components migrate", "check": "yarn exec biome check --write",