Socket
Socket
Sign inDemoInstall

@rollup-extras/plugin-copy

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup-extras/plugin-copy - npm Package Compare versions

Comparing version 1.7.2 to 1.8.0

2

dist/types.d.ts

@@ -13,3 +13,3 @@ export type SingleTargetDesc = {

verbose?: boolean | 'list-filenames';
flattern?: boolean;
flatten?: boolean;
exactFileNames?: boolean;

@@ -16,0 +16,0 @@ outputPlugin?: boolean;

{
"version": "1.7.2",
"version": "1.8.0",
"license": "MIT",

@@ -44,2 +44,7 @@ "name": "@rollup-extras/plugin-copy",

},
"peerDependenciesMeta": {
"rollup": {
"optional": true
}
},
"devDependencies": {

@@ -53,3 +58,3 @@ "@types/glob": "^8.1.0",

"glob-parent": "^6.0.2",
"@rollup-extras/utils": "^1.3.5"
"@rollup-extras/utils": "^1.4.0"
},

@@ -56,0 +61,0 @@ "scripts": {

@@ -11,3 +11,3 @@ # Plugin Copy

- Support hashes (uses `assetFileNames` from rollup)
- Watch on files so when they changed thay can be copied again (but only if timestamp is changed)
- Watch on files so when they changed that can be copied again (but only if timestamp is changed)
- Minimal amount of logs by default

@@ -19,3 +19,3 @@ - Supports globs (check ['glob'](https://github.com/isaacs/node-glob) for syntax)

[Changlelog](./CHANGELOG.md)
[Changelog](./CHANGELOG.md)

@@ -103,6 +103,6 @@ ## Installation

By default plugin uses `glob-parent` to preserve directory structure of assets (relative to glob parent path). To flattern files in assets directory use `flattern` = `true`:
By default plugin uses `glob-parent` to preserve directory structure of assets (relative to glob parent path). To flatten files in assets directory use `flatten` = `true`:
```javascript
copy({ src: 'assets/*', flattern: true })
copy({ src: 'assets/*', flatten: true })

@@ -114,3 +114,3 @@ // or

To add hashes to file names use `exactFileNames` = `false`, tweek `assetFileNames` option in rollup config if needed. Files with same content will be deduplicated by `rollup` in this mode.
To add hashes to file names use `exactFileNames` = `false`, tweak `assetFileNames` option in rollup config if needed. Files with the same content will be deduplicated by `rollup` in this mode.

@@ -135,3 +135,3 @@ ```javascript

To stop files being emitted through rollup pipeline use can use `emitFiles` = `false`. Please note that you need to specify `dest` and it will not be relative to output directory, also file will not be copied into each output directory.
To stop files being emitted through rollup pipeline use can use `emitFiles` = `false`. Please note that you need to specify `dest` and it will not be relative to the output directory, also the file will not be copied into each output directory.

@@ -148,3 +148,3 @@ ```javascript

Use `dest` option to put assets into subfolder in assets directory. As an example if we have `assets` as a directory for assets and `public` as an output directory and we specify `'dest'` = `'fonts'` assets will be copied into `public/assets/fonts` preserving assets directory structure.
Use the `dest` option to put assets into the subfolder in the assets directory. As an example if we have `assets` as a directory for assets and `public` as an output directory and we specify `'dest'` = `'fonts'` assets will be copied into `public/assets/fonts` preserving assets directory structure.

@@ -151,0 +151,0 @@ Use `exclude` option to filter out files in assets (passed to ignore option of glob options). For example `*.json` will filter out json files.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc