
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@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, sizes, and 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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.