From 1b39473f48413e862a510be0b685c247e6785cca Mon Sep 17 00:00:00 2001 From: developomp Date: Fri, 11 Oct 2024 18:33:53 +0900 Subject: [PATCH] chore: make it harder to accidentally nuke files --- CONTRIBUTING.md | 2 +- apps/blog/package.json | 2 +- apps/main/package.json | 2 +- package.json | 2 +- packages/content/package.json | 2 +- packages/eslint-config/package.json | 2 +- packages/tailwind-config/package.json | 2 +- turbo.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a98d9af..6debb4c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,7 +38,7 @@ - blog - http://localhost:3000 - main - http://localhost:5173 - `pnpm lint` - Lint all apps and packages - - `pnpm clean` - Remove all auto-generated content such as `node_modules` and `dist`. + - `pnpm i_am_sure_i_want_to_nuke_gitignored_files` - Remove all auto-generated content such as `node_modules` and `dist`. ## Testing diff --git a/apps/blog/package.json b/apps/blog/package.json index c26b43c..a65cf9e 100644 --- a/apps/blog/package.json +++ b/apps/blog/package.json @@ -9,7 +9,7 @@ "postbuild": "next-sitemap", "lint": "next lint", "test:e2e": "playwright test", - "clean": "rm -rf .next .turbo build node_modules test-results" + "i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .next .turbo build node_modules test-results" }, "devDependencies": { "@developomp-site/content": "workspace:*", diff --git a/apps/main/package.json b/apps/main/package.json index 5f65740..bedfdf8 100644 --- a/apps/main/package.json +++ b/apps/main/package.json @@ -9,7 +9,7 @@ "build": "vite build", "test:unit": "TZ=UTC jest", "test:e2e": "playwright test", - "clean": "rm -rf .turbo .svelte-kit test-results build node_modules vite.config.ts.timestamp-*", + "i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .turbo .svelte-kit test-results build node_modules vite.config.ts.timestamp-*", "lint": "eslint ." }, "devDependencies": { diff --git a/package.json b/package.json index 1c25590..daa85d8 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "test:unit": "turbo run test:unit --parallel --continue", "test:e2e": "turbo run test:e2e --parallel --continue", "lint": "turbo run lint", - "clean": "turbo run clean && rm -rf node_modules .turbo" + "i_am_sure_i_want_to_nuke_gitignored_files": "turbo run i_am_sure_i_want_to_nuke_gitignored_files && rm -rf node_modules .turbo .devenv .direnv .devenv.flake.nix" }, "devDependencies": { "@developomp-site/eslint-config": "workspace:*", diff --git a/packages/content/package.json b/packages/content/package.json index 1cbd27a..d4d263a 100644 --- a/packages/content/package.json +++ b/packages/content/package.json @@ -5,7 +5,7 @@ "scripts": { "build": "rm -rf dist build && tsup && node build/index.js", "lint": "eslint .", - "clean": "rm -rf .turbo build dist node_modules" + "i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .turbo build dist node_modules" }, "dependencies": { "@developomp-site/eslint-config": "workspace:*", diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index cb7798e..d32d55d 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -5,7 +5,7 @@ "main": ".eslintrc.cjs", "scripts": { "lint": "eslint .eslintrc.cjs", - "clean": "rm -rf .turbo node_modules" + "i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .turbo node_modules" }, "devDependencies": { "@developomp-site/prettier-config": "workspace:*", diff --git a/packages/tailwind-config/package.json b/packages/tailwind-config/package.json index 9249ece..32dea5e 100644 --- a/packages/tailwind-config/package.json +++ b/packages/tailwind-config/package.json @@ -8,7 +8,7 @@ ], "scripts": { "lint": "eslint .", - "clean": "rm -rf .turbo node_modules" + "i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .turbo node_modules" }, "devDependencies": { "@developomp-site/eslint-config": "workspace:*", diff --git a/turbo.json b/turbo.json index 345c09f..f3ed855 100644 --- a/turbo.json +++ b/turbo.json @@ -17,7 +17,7 @@ "lint": { "cache": false }, - "clean": { + "i_am_sure_i_want_to_nuke_gitignored_files": { "cache": false } }