Fix yarn clean (#2620)

`scripts/clean.sh` was using a hardcoded Yarn [to avoid `npx yarn` using
Yarn
1](4242f6ee3d).
However, apparently the Blessed Way of using Yarn is to use `corepack`
and have it install the Yarn version specified in `packageManager`.

### Change Type

- [x] `internal` — Any other changes that don't affect the published
package
This commit is contained in:
Dan Groshev 2024-01-24 16:36:24 +00:00 committed by GitHub
parent 2cd7573c66
commit 8f61ede9bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,5 @@ rm -rf {packages,apps}/vscode/extension/temp
rm -rf {packages,apps}/vscode/extension/editor rm -rf {packages,apps}/vscode/extension/editor
rm -rf apps/docs/content.json rm -rf apps/docs/content.json
# need to run yarn directly corepack enable
# because yarn messes with the PATH, aliasing itself to some tmp dir yarn
# which is apparently deleted by our clean script
node "$(dirname -- "$0")/../.yarn/releases/yarn-3.5.0.cjs"