From 464bef65b377b5fc2076753b25b1b9879092108f Mon Sep 17 00:00:00 2001 From: HZ991 Date: Tue, 1 Oct 2024 10:38:54 +1000 Subject: [PATCH] added: next:nuke to nuke command (deletes .next folder) --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3ddb86bce..117ca9bb4 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,10 @@ "lint": "turbo run lint --no-daemon", "lint:fix": "turbo run lint:fix --no-daemon", "new:package": "node ./helpers/create-package/index.js", - "nuke": "pnpm nuke:node_modules && pnpm nuke:dist", + "nuke": "pnpm nuke:node_modules && pnpm nuke:dist && pnpm nuke:next", "nuke:node_modules": "find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \\;", "nuke:dist": "find . -name 'dist' -type d -prune -print -exec rm -rf '{}' \\;", + "nuke:next": "find . -name '.next' -type d -prune -print -exec rm -rf '{}' \\;", "prepare": "husky install", "test": "turbo run test --filter=./packages/* --no-daemon", "ci:build": "pnpm install --frozen-lockfile && pnpm format && pnpm build && pnpm lint && pnpm check-types && pnpm test",