From 2508068551ef42c6b7492d18702d7bfaa3dbc4e5 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Wed, 6 Aug 2025 23:20:22 +0200 Subject: [PATCH] fix broken `build:clean` 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` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ea5f8d41f..cf487a337 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "private/*" ], "scripts": { - "build:clean": "cp .gitignore .gitignore.bak && printf '!node_modules\n!**/node_modules/**/*\n' >> .gitignore; git clean -Xfd packages e2e .parcel-cache coverage .turbo; mv .gitignore.bak .gitignore", "build": "turbo run --no-daemon build build:css --filter='./packages/@uppy/*' --filter='./packages/uppy'", + "build:clean": "git clean -Xfd packages e2e .parcel-cache coverage .turbo -e '!node_modules' -e '!**/node_modules/**/*'", "build:watch": "yarn build && turbo watch build build:css --filter='./packages/@uppy/*' --filter='./packages/uppy'", "migrate:components": "yarn workspace @uppy/components migrate", "check": "yarn exec biome check --write",