2023-04-25 11:01:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
# a function called 'goodbye' that takes a string as an argument
|
|
|
|
|
|
|
|
function goodbye() {
|
|
|
|
rm -rf $1
|
|
|
|
rm -rf */$1
|
|
|
|
rm -rf */*/$1
|
|
|
|
rm -rf */*/*/$1
|
|
|
|
rm -rf */*/*/*/$1
|
|
|
|
rm -rf */*/*/*/*/$1
|
|
|
|
rm -rf **/$1
|
|
|
|
}
|
|
|
|
|
|
|
|
rm -rf node_modules
|
|
|
|
goodbye node_modules
|
|
|
|
goodbye .turbo
|
|
|
|
goodbye tmp-assets
|
|
|
|
goodbye tsconfig.tsbuildinfo
|
|
|
|
goodbye tsconfig.build.tsbuildinfo
|
|
|
|
goodbye tsconfig.build.json
|
|
|
|
goodbye .lazy
|
|
|
|
goodbye dist-esm
|
|
|
|
goodbye dist-cjs
|
|
|
|
goodbye .tsbuild
|
|
|
|
goodbye .tsbuild-pub
|
|
|
|
goodbye .tsbuild-dev
|
|
|
|
goodbye .tsbuild-api
|
2023-08-18 12:52:51 +00:00
|
|
|
goodbye .next
|
2023-04-25 11:01:25 +00:00
|
|
|
|
|
|
|
rm -rf {packages,bublic/packages}/*/api
|
|
|
|
rm -rf {packages,apps,bublic/packages,bublic/apps}/*/*.tgz
|
|
|
|
rm -rf {packages,apps,bublic/packages,bublic/apps}/vscode/extension/temp
|
|
|
|
rm -rf {packages,apps,bublic/packages,bublic/apps}/vscode/extension/editor
|
|
|
|
rm -rf bublic/apps/docs/content.json
|
|
|
|
|
2023-05-02 13:33:30 +00:00
|
|
|
# need to run yarn directly
|
2023-04-25 11:01:25 +00:00
|
|
|
# because yarn messes with the PATH, aliasing itself to some tmp dir
|
|
|
|
# which is apparently deleted by our clean script
|
2023-05-02 13:33:30 +00:00
|
|
|
node "$(dirname -- "$0")/../.yarn/releases/yarn-3.5.0.cjs"
|