Skip to content

Releases: ghiscoding/native-copyfiles

v2.0.1

27 Jan 22:55

Choose a tag to compare

2.0.1 (2026-01-27)

Bug Fixes

  • support more complex glob patterns, brace expansion & negation (#64) (9f501b0)

v2.0.0

27 Jan 04:10

Choose a tag to compare

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 tinyglobby and use native fs.glob (#58)

Features

  • drop tinyglobby and use native fs.glob (#58) (6dfb43c)
  • move JS API target destination as 2nd argument (#59) (f497142)

Bug Fixes

  • adjust /** patterns to // for fs.globSync compatibility (#60) (e163688)

Miscellaneous Chores

  • deps: increase NodeJS engine requirement (e96bdf5)

v1.3.7

07 Nov 23:54

Choose a tag to compare

1.3.7 (2025-11-07)

Bug Fixes

  • copyfiles JS API options argument should be optional, fixes #49 (#50) (6dd26ea)

v1.3.6

26 Sep 17:27

Choose a tag to compare

1.3.6 (2025-09-26)

Bug Fixes

v1.3.5

14 Jul 22:53

Choose a tag to compare

1.3.5 (2025-07-14)

Bug Fixes

  • .git and node_modules should be excluded by default (#34) (7f3a4c9)

v1.3.4

09 Jul 23:37

Choose a tag to compare

1.3.4 (2025-07-09)

Bug Fixes

  • deps: update cli-nano to latest and add CLI examples (#32) (03c6023)

v1.3.3

05 Jul 05:38

Choose a tag to compare

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

  • deps: bump all dependencies (f46c973)
  • deps: update cli-nano to latest w/better typing & smaller build (#29) (489b89e)
  • use only declaration maps (#30) (837fd07)

v1.3.2

02 Jul 05:36

Choose a tag to compare

1.3.2 (2025-07-02)

Bug Fixes

  • deps: upgrade cli-nano to new major version (#26) (9cf2fa3)

v1.3.1

28 Jun 03:26

Choose a tag to compare

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)

Bug Fixes

  • deps: update all non-major dependencies (#24) (6f888e1)
  • ignore test spec files when publishing on npm (fe1b24f)
  • strip package fields w/releasing on npm (2a1cba9)

v1.3.0

26 Jun 02:30

Choose a tag to compare

1.3.0 (2025-06-26)

Migrate from yargs to a custom cli-nano which decrease installed pkg-size by half... awesome 🚀

  • prev → pkg-size: 792KB / 18 packages
  • after → pkg-size: 350KB / 6 packages

Features