cli icon indicating copy to clipboard operation
cli copied to clipboard

--copy-files does not seem to copy any files

Open jsedlacek opened this issue 4 years ago • 0 comments

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

jsedlacek avatar Feb 01 '21 12:02 jsedlacek