A Rollup plugin to move generated files and directories after the bundle is written. Version 0.0.2 is the current stable release; the plugin is minimal and has no updates yet. It provides a simple API to specify source and destination paths with optional overwrite and once flags. Compared to alternatives like rollup-plugin-copy or rollup-plugin-sh, it focuses exclusively on moving (not copying) and supports both files and directories. Includes TypeScript declarations.
npm install rollup-plugin-mvVerified import paths — ran on the pinned version, not inferred.
Minimal Rollup configuration using rollup-plugin-mv to move files after build.
Use cross-device-aware tools or ensure source and destination are on the same filesystem.
Use 'once: true' only when generating multiple outputs from a single config. For multiple plugin instances, consider using a flag or manual check.
Explicitly set overwrite: true or manually remove the destination before running Rollup.
Ensure the source is generated before the plugin executes, or use a hook like 'writeBundle' (the plugin already uses 'generateBundle'). Check if the file path is correct.
Use default import: import mv from 'rollup-plugin-mv'
Ensure each move entry has both 'src' and 'dest' strings: { src: '...', dest: '...' }No dependency data recorded yet.