
Product
Introducing Manifest Alerts
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.
@jsxtools/rollup-plugin-copy
Advanced tools
@jsxtools/rollup-plugin-copy is a rollup plugin for copying files during the build process.
npm install @jsxtools/rollup-plugin-copy
import { rollupPluginCopy } from '@jsxtools/rollup-plugin-copy';
export default {
input: 'src/index.js',
output: {
file: 'dist/bundle.js',
format: 'es'
},
plugins: [
rollupPluginCopy({
rootDir: 'src',
distDir: 'dist',
include: ['src/**/*.css', 'src/**/*.png', 'src/**/*.svg'],
exclude: ['src/**/*.test.*']
})
]
};
cacheFile - Cache file for tracking changes (default: cpconfig.cpbuildinfo).include - Glob patterns for files to include (string or array).exclude - Glob patterns for files to exclude (string or array).distDir - Destination directory to copy files to (default: dist).workDir - Current working directory (default: current process directory).rootDir - Source directory to copy files from (default: src)rollupPluginCopy({
rootDir: 'src',
distDir: 'dist',
include: [
'src/**/*.css',
'src/**/*.png',
'src/**/*.jpg',
'src/**/*.svg'
]
})
rollupPluginCopy({
rootDir: 'assets',
distDir: 'public',
include: ['assets/**/*'],
exclude: [
'assets/**/*.test.*',
'assets/**/.*'
]
})
The plugin maintains a cache file (default: cpconfig.cpbuildinfo) that tracks file modification times and SHA-256 hashes. This enables:
The plugin exports both the main plugin and a separate API:
rollupPluginCopy() - The main Rollup pluginCopyAPI - Available via @jsxtools/rollup-plugin-copy/apiimport { CopyAPI } from '@jsxtools/rollup-plugin-copy/api';
const copyApi = new CopyAPI();
copyApi.init({
rootDir: 'src',
distDir: 'dist',
include: ['src/**/*.css']
});
rollup ^4.6.0MIT-0
FAQs
A Rollup plugin for copying files during the build process.
We found that @jsxtools/rollup-plugin-copy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now detects supply chain risks in project manifests, starting with missing lockfiles that can make dependency installs non-reproducible.

Research
/Security News
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.