{"library":"rollup-plugin-delete","title":"rollup-plugin-delete","description":"A Rollup plugin for deleting files and folders before or during a build, powered by the del package. Current stable version is 3.0.2, released as pure ESM requiring Node.js 18+. It is written in TypeScript and ships native types. Key differentiators include support for multiple target patterns, verbose output, customizable hook (e.g., buildStart, buildEnd), and a runOnce option for watch mode. Active maintenance with recent updates focused on modernizing internals (vitest to node test runner, tsdown).","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-delete"],"cli":null},"imports":["import del from 'rollup-plugin-delete'","import type { DelOptions } from 'rollup-plugin-delete'","import type { RollupPluginDeleteOptions } from 'rollup-plugin-delete'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport del from 'rollup-plugin-delete';\n\nexport default {\n  input: 'src/index.js',\n  output: { file: 'dist/bundle.js' },\n  plugins: [\n    del({ targets: 'dist/*', verbose: true, runOnce: true })\n  ]\n};","lang":"javascript","description":"Shows basic usage: delete all files in 'dist' before bundle, with verbose output and runOnce to avoid re-deletion in watch mode.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}