From 66ff7934b2ac017928668099516bfda68437e656 Mon Sep 17 00:00:00 2001 From: developomp Date: Thu, 29 Jun 2023 12:52:27 +0900 Subject: [PATCH] chore: improve clean script --- apps/blog/package.json | 2 +- apps/main/package.json | 1 + apps/portfolio/package.json | 2 +- packages/blog-content/package.json | 2 +- packages/eslint-config/package.json | 3 +++ packages/tailwind-config/package.json | 3 +++ packages/theme/package.json | 2 +- packages/utils/package.json | 2 +- 8 files changed, 12 insertions(+), 5 deletions(-) diff --git a/apps/blog/package.json b/apps/blog/package.json index 65ed563..4bc8146 100644 --- a/apps/blog/package.json +++ b/apps/blog/package.json @@ -6,7 +6,7 @@ "cp": "cp -a ../../packages/blog-content/dist/public/. ./public", "dev": "pnpm cp && react-scripts start", "build": "pnpm cp && react-scripts build", - "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf build" + "clean": "rm -rf .turbo build node_modules" }, "dependencies": { "@developomp-site/blog-content": "workspace:*", diff --git a/apps/main/package.json b/apps/main/package.json index 638c64c..8361f8f 100644 --- a/apps/main/package.json +++ b/apps/main/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vite dev", "build": "vite build", + "clean": "rm -rf .svelte-kit .turbo build node_modules", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", diff --git a/apps/portfolio/package.json b/apps/portfolio/package.json index 67c8a9f..ac89b81 100644 --- a/apps/portfolio/package.json +++ b/apps/portfolio/package.json @@ -8,7 +8,7 @@ "build": "tsc && vite build", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", - "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" + "clean": "rm -rf .turbo node_modules dist" }, "dependencies": { "@fontsource/noto-sans-kr": "^5.0.3", diff --git a/packages/blog-content/package.json b/packages/blog-content/package.json index 80f0658..614ebb1 100644 --- a/packages/blog-content/package.json +++ b/packages/blog-content/package.json @@ -7,7 +7,7 @@ ], "scripts": { "build": "ts-node -O '{\"module\":\"commonjs\"}' --files ./src", - "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" + "clean": "rm -rf .turbo node_modules dist" }, "dependencies": { "@developomp-site/tsconfig": "workspace:*", diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 8e9ff9b..9733626 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -2,6 +2,9 @@ "name": "@developomp-site/eslint-config", "version": "0.0.0", "main": "index.js", + "scripts": { + "clean": "rm -rf node_modules" + }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.46.0", "@typescript-eslint/parser": "^5.46.0", diff --git a/packages/tailwind-config/package.json b/packages/tailwind-config/package.json index f652c08..718b845 100644 --- a/packages/tailwind-config/package.json +++ b/packages/tailwind-config/package.json @@ -3,6 +3,9 @@ "version": "0.0.0", "private": true, "main": "index.js", + "scripts": { + "clean": "rm -rf node_modules" + }, "devDependencies": { "tailwindcss": "^3.2.4" } diff --git a/packages/theme/package.json b/packages/theme/package.json index 4bfeab7..9ba47b9 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -7,7 +7,7 @@ "scripts": { "dev": "nodemon --ignore dist/ --exec pnpm build", "build": "npx ts-node ./build.ts", - "clean": "rm -rf dist && rm -rf node_modules" + "clean": "rm -rf .turbo node_modules dist" }, "devDependencies": { "@types/merge-deep": "^3.0.0", diff --git a/packages/utils/package.json b/packages/utils/package.json index 867adb9..05666bc 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -13,7 +13,7 @@ "build": "tsup src/index.tsx --format esm,cjs --dts --external react", "dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react", "lint": "TIMING=1 eslint \"src/**/*.ts*\"", - "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist" + "clean": "rm -rf .turbo node_modules dist" }, "devDependencies": { "@developomp-site/eslint-config": "workspace:*",