Skip to content

Commit

Permalink
added cleanup scripts to workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
grischaerbe committed Nov 15, 2022
1 parent 8ce61cb commit 82d25dd
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
3 changes: 2 additions & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"format": "prettier --write --plugin-search-dir=. .",
"copy-workers": "rm -rf static/workers && cp -r node_modules/@sveltejs/svelte-repl/workers static"
"copy-workers": "rm -rf static/workers && cp -r node_modules/@sveltejs/svelte-repl/workers static",
"cleanup": "rm -rf node_modules && rm -rf .svelte-kit && rm -rf build"
},
"devDependencies": {
"@algolia/client-search": "^4.13.1",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"package": "turbo run package --filter='./packages/*'",
"package:graph": "turbo run package --filter='./packages/*' --graph",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"release": "changeset publish"
"release": "changeset publish",
"cleanup": "turbo run cleanup && rm -rf node_modules"
},
"devDependencies": {
"@changesets/cli": "^2.23.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"format": "prettier --write --plugin-search-dir=. ."
"format": "prettier --write --plugin-search-dir=. .",
"cleanup": "rm -rf node_modules && rm -rf .svelte-kit"
},
"devDependencies": {
"@sveltejs/adapter-auto": "1.0.0-next.61",
Expand Down
3 changes: 2 additions & 1 deletion packages/extras/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"format": "prettier --write --plugin-search-dir=. ."
"format": "prettier --write --plugin-search-dir=. .",
"cleanup": "rm -rf node_modules && rm -rf .svelte-kit"
},
"devDependencies": {
"@sveltejs/adapter-auto": "1.0.0-next.61",
Expand Down
2 changes: 1 addition & 1 deletion packages/preprocess/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"build": "tsc -p .",
"test": "echo \"Error: no test specified\" && exit 1"
"cleanup": "rm -rf node_modules && rm -rf dist && rm -rf .turbo"
},
"author": "Grischa Erbe <[email protected]> (https://legrisch.com)",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion packages/rapier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check --plugin-search-dir=. . && eslint .",
"format": "prettier --write --plugin-search-dir=. ."
"format": "prettier --write --plugin-search-dir=. .",
"cleanup": "rm -rf node_modules && rm -rf .svelte-kit"
},
"devDependencies": {
"@dimforge/rapier3d-compat": "^0.9.0",
Expand Down
4 changes: 4 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"outputs": ["package/*"],
"cache": false
},
"cleanup": {
"cache": false,
"outputs": []
},
"prepare": {
"cache": false
},
Expand Down

0 comments on commit 82d25dd

Please sign in to comment.