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 2508068551

closes #5893
This commit is contained in:
Mikael Finstad 2025-08-07 22:42:03 +02:00 committed by GitHub
parent b772c6eb81
commit 3f38fb212b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",