Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

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

No branches or pull requests

1 participant