
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@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.
The npm package @jsxtools/rollup-plugin-copy receives a total of 66 weekly downloads. As such, @jsxtools/rollup-plugin-copy popularity was classified as not popular.
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 Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.