Releases: ghiscoding/native-copyfiles
v2.0.1
v2.0.0
2.0.0 (2026-01-27)
Major 2.0 Release ⚠️
This project now requires Node.JS >= 22.17.0 so that we can use the native fs.glob and drop tinyglobby (reducing the project size even more). With this major change, it is decreasing the lib size from 13.7kB to 1.85kB gzip 📦
Another small breaking change was done in the JS API, the source(s) and destination are now 2 separate arguments (which is different compared to v1.0 which had the destination inside the 1st argument array as the last element which was super confusing).
JS API change:
// previously source & destination were together as the 1st argument
- copyfiles(['src/styles/*.scss', 'dist/styles/sass'], { flat: true }, () => console.log('SASS files copied'));
// now split into 2 separate arguments (1st sources string or array, then 2nd argument is destination)
+ copyfiles('src/styles/*.scss', 'dist/styles/sass', { flat: true }, () => console.log('SASS files copied'));
// OR with multiple sources as 1st argument (array)
+ copyfiles(['src/source1.txt', 'src/source2.txt'], 'dist/assets', { up: 1 }, () => console.log('asset files copied'));⚠ BREAKING CHANGES
- deps: increase NodeJS engine requirement
- move JS API target destination as 2nd argument (#59)
- drop
tinyglobbyand use nativefs.glob(#58)
Features
- drop
tinyglobbyand use nativefs.glob(#58) (6dfb43c) - move JS API target destination as 2nd argument (#59) (f497142)
Bug Fixes
Miscellaneous Chores
- deps: increase NodeJS engine requirement (e96bdf5)
v1.3.7
v1.3.6
v1.3.5
v1.3.4
v1.3.3
1.3.3 (2025-07-05)
Further decrease project size yet again... 🚀
- v1.2.0 → pkg-size: 792KB / 18 packages (yargs)
- v1.3.0 → pkg-size: 350KB / 6 packages (cli-nano)
- v1.3.1 → pkg-size: 300KB / 6 packages (cli-nano)
- v1.3.3 → pkg-size: 287KB / 6 packages (cli-nano)
Bug Fixes
v1.3.2
v1.3.1
1.3.1 (2025-06-28)
Further decrease project size even more, the previous version 1.3.0 decreased size by half, and now it's another small decrease as shown below. The big change was to get away from yargs to a custom cli-nano and with this the new release decreases the installed pkg-size even more... 🚀
- v1.2.0 → pkg-size: 792KB / 18 packages (yargs)
- v1.3.0 → pkg-size: 350KB / 6 packages (cli-nano)
- v1.3.1 → pkg-size: 300KB / 6 packages (cli-nano)