cli
cli copied to clipboard
--copy-files does not seem to copy any files
Description
It seems the --copy-files option does not copy over the non-compilable files, as described in the help.
-D, --copy-files When compiling a directory copy over non-compilable files
Reproduction
I have the following folder structure:
├── src
│ ├── index.ts
│ └── message.txt
To build it, I run the following command:
yarn swc src -d build --copy-files
The resulting build does not include the message.txt.
├── build
│ └── index.js
Versions
- @swc/cli: 0.1.34
- @swc/core: 1.2.47