{"version":3,"file":"nuke.cjs","names":[],"sources":["../../package.json","../../src/bin/nuke.ts"],"sourcesContent":["{\n\t\"name\": \"@alexaegis/nuke\",\n\t\"description\": \"Nuke stuff\",\n\t\"version\": \"0.15.3\",\n\t\"license\": \"MIT\",\n\t\"private\": false,\n\t\"archetype\": {\n\t\t\"platform\": \"node\",\n\t\t\"language\": \"ts\",\n\t\t\"kind\": \"lib\"\n\t},\n\t\"keywords\": [\n\t\t\"clean\",\n\t\t\"managed-by-autotool\",\n\t\t\"nuke\"\n\t],\n\t\"repository\": {\n\t\t\"url\": \"git+https://github.com/AlexAegis/js-tooling.git\",\n\t\t\"type\": \"git\"\n\t},\n\t\"type\": \"module\",\n\t\"publishConfig\": {\n\t\t\"access\": \"public\",\n\t\t\"exports\": {\n\t\t\t\".\": {\n\t\t\t\t\"types\": \"./dist/index.d.ts\",\n\t\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\t\"default\": \"./dist/index.js\"\n\t\t\t},\n\t\t\t\"./package.json\": \"./package.json\",\n\t\t\t\"./readme\": \"./readme.md\"\n\t\t},\n\t\t\"bin\": {\n\t\t\t\"nuke\": \"./dist/bin/nuke.js\"\n\t\t}\n\t},\n\t\"files\": [\n\t\t\"dist\"\n\t],\n\t\"engines\": {\n\t\t\"node\": \">=22.6.0\"\n\t},\n\t\"scripts\": {\n\t\t\"lint:depcheck\": \"turbo run lint:depcheck_ --concurrency 16 --filter @alexaegis/nuke\",\n\t\t\"lint:depcheck_\": \"depcheck\",\n\t\t\"lint:es\": \"turbo run lint:es_ --concurrency 16 --filter @alexaegis/nuke\",\n\t\t\"lint:es_\": \"eslint --max-warnings=0 --fix --no-error-on-unmatched-pattern .\",\n\t\t\"lint:format\": \"turbo run lint:format_ --concurrency 16 --filter @alexaegis/nuke\",\n\t\t\"lint:format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --check .\",\n\t\t\"lint:md\": \"turbo run lint:md_ --concurrency 16 --filter @alexaegis/nuke\",\n\t\t\"lint:md_\": \"remark --frail --no-stdout --silently-ignore .\",\n\t\t\"lint:tsc\": \"turbo run lint:tsc_ --concurrency 16 --filter @alexaegis/nuke\",\n\t\t\"lint:tsc_\": \"tsc --noEmit\",\n\t\t\"publint\": \"BUILD_REASON='publish' turbo run publint_ --concurrency 16 --filter @alexaegis/nuke\",\n\t\t\"publint_\": \"publint\",\n\t\t\"test\": \"turbo run test_ --concurrency 16 --filter @alexaegis/nuke\",\n\t\t\"test_\": \"vitest --passWithNoTests --coverage --run\",\n\t\t\"test:watch\": \"vitest --passWithNoTests --coverage\",\n\t\t\"all\": \"BUILD_REASON='publish' turbo run all_ --concurrency 16 --filter @alexaegis/nuke\",\n\t\t\"build\": \"turbo run build-lib_ --concurrency 16 --filter @alexaegis/nuke\",\n\t\t\"build-lib_\": \"vite build\",\n\t\t\"format\": \"turbo run format_ --concurrency 16 --filter @alexaegis/nuke\",\n\t\t\"format_\": \"prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .\"\n\t},\n\t\"exports\": {\n\t\t\".\": {\n\t\t\t\"types\": \"./src/index.ts\",\n\t\t\t\"import\": \"./dist/index.js\",\n\t\t\t\"require\": \"./dist/index.cjs\",\n\t\t\t\"default\": \"./dist/index.js\"\n\t\t},\n\t\t\"./package.json\": \"./package.json\",\n\t\t\"./readme\": \"./readme.md\"\n\t},\n\t\"bin\": {\n\t\t\"nuke\": \"./src/bin/nuke.ts\"\n\t},\n\t\"dependencies\": {\n\t\t\"@alexaegis/cli-tools\": \"workspace:^\",\n\t\t\"@alexaegis/common\": \"workspace:^\",\n\t\t\"@alexaegis/logging\": \"workspace:^\",\n\t\t\"@alexaegis/workspace-tools\": \"workspace:^\",\n\t\t\"globby\": \"^16.2.0\"\n\t},\n\t\"devDependencies\": {\n\t\t\"@alexaegis/eslint-config-vitest\": \"workspace:^\",\n\t\t\"@alexaegis/ts\": \"workspace:^\",\n\t\t\"@alexaegis/vite\": \"workspace:^\",\n\t\t\"@alexaegis/vitest\": \"workspace:^\",\n\t\t\"@types/node\": \"^26.0.0\",\n\t\t\"publint\": \"^0.3.21\",\n\t\t\"typescript\": \"^6.0.3\",\n\t\t\"vite\": \"^8.1.0\",\n\t\t\"vite-plugin-dts\": \"^5.0.2\",\n\t\t\"vitest\": \"^4.1.9\"\n\t}\n}\n","#!/usr/bin/env node\nimport { nuke } from '../functions/index.ts';\n\nimport {\n\tYargsBuilder,\n\tyargsForCollectWorkspacePackagesOptions,\n\tyargsForLogLevelOption,\n} from '@alexaegis/cli-tools';\nimport { createLogger } from '@alexaegis/logging';\nimport type { PackageJson } from '@alexaegis/workspace-tools';\nimport packageJson from '../../package.json' with { type: 'json' };\nimport { DEFAULT_NUKE_GLOBS, DEFAULT_NUKE_LIST } from '../functions/nuke.function.options.ts';\n\nconst yarguments = YargsBuilder.withDefaults(packageJson as PackageJson)\n\t.add(yargsForCollectWorkspacePackagesOptions)\n\t.add((y) =>\n\t\ty\n\t\t\t.option('skipNodeModules', {\n\t\t\t\tboolean: true,\n\t\t\t\tdescription: \"Don't remove `node_modules` directories but try to clean them up\",\n\t\t\t\tdefault: false,\n\t\t\t})\n\t\t\t.option('nukeList', {\n\t\t\t\tarray: true,\n\t\t\t\ttype: 'string',\n\t\t\t\tdescription: 'A list of folders and files to delete.',\n\t\t\t\tdefault: DEFAULT_NUKE_LIST,\n\t\t\t})\n\t\t\t.option('nukeMore', {\n\t\t\t\tarray: true,\n\t\t\t\ttype: 'string',\n\t\t\t\tdescription:\n\t\t\t\t\t'These will be nuked too. Same role as `nukeList` but defining this ' +\n\t\t\t\t\t\"won't get rid of the built in nukelist\",\n\t\t\t})\n\t\t\t.option('nukeGlobs', {\n\t\t\t\tarray: true,\n\t\t\t\ttype: 'string',\n\t\t\t\tdescription:\n\t\t\t\t\t'A list of globs to also delete, not as efficient as a flat path but ' +\n\t\t\t\t\t'sometimes necessary',\n\t\t\t\tdefault: DEFAULT_NUKE_GLOBS,\n\t\t\t})\n\t\t\t.option('nukeMoreGlobs', {\n\t\t\t\tarray: true,\n\t\t\t\ttype: 'string',\n\t\t\t\tdescription:\n\t\t\t\t\t\"Additional globs to nuke if you don't want to overwrite the default ones\",\n\t\t\t})\n\t\t\t.option('dontNukeIn', {\n\t\t\t\tarray: true,\n\t\t\t\ttype: 'string',\n\t\t\t\tdescription: \"If it shouldn't nuke a specific package, add them here.\",\n\t\t\t}),\n\t)\n\t.add(yargsForLogLevelOption);\n\nvoid (async () => {\n\tconst options = await yarguments.build().parseAsync();\n\tconst logger = createLogger({ name: 'nuke ☢', minLevel: options.logLevel });\n\tawait nuke({ ...options, logger });\n})();\n"],"mappings":";;;;;;;ACaA,IAAM,aAAa,qBAAA,aAAa,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,CAA0B,CAAC,CACtE,IAAI,qBAAA,uCAAuC,CAAC,CAC5C,KAAK,MACL,EACE,OAAO,mBAAmB;CAC1B,SAAS;CACT,aAAa;CACb,SAAS;AACV,CAAC,CAAC,CACD,OAAO,YAAY;CACnB,OAAO;CACP,MAAM;CACN,aAAa;CACb,SAAS,kBAAA;AACV,CAAC,CAAC,CACD,OAAO,YAAY;CACnB,OAAO;CACP,MAAM;CACN,aACC;AAEF,CAAC,CAAC,CACD,OAAO,aAAa;CACpB,OAAO;CACP,MAAM;CACN,aACC;CAED,SAAS,kBAAA;AACV,CAAC,CAAC,CACD,OAAO,iBAAiB;CACxB,OAAO;CACP,MAAM;CACN,aACC;AACF,CAAC,CAAC,CACD,OAAO,cAAc;CACrB,OAAO;CACP,MAAM;CACN,aAAa;AACd,CAAC,CACH,CAAC,CACA,IAAI,qBAAA,sBAAsB;CAEtB,YAAY;CACjB,MAAM,UAAU,MAAM,WAAW,MAAM,CAAC,CAAC,WAAW;CACpD,MAAM,UAAA,GAAA,mBAAA,aAAA,CAAsB;EAAE,MAAM;EAAU,UAAU,QAAQ;CAAS,CAAC;CAC1E,MAAM,kBAAA,KAAK;EAAE,GAAG;EAAS;CAAO,CAAC;AAClC,EAAA,CAAG"}