Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jsedlacek opened this issue Feb 1, 2021 · 0 comments
Open

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

jsedlacek opened this issue Feb 1, 2021 · 0 comments

Comments

@jsedlacek
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant