cli
cli copied to clipboard
Nested src dir shows up in out dir
Using a nested src dir outputs the path in the out dir. Seams like changing --source-root does not solve the issue.
swc src/deep/nested/ --out-dir out/
Current output
project/
src/deep/nested/
main.ts
out/deep/nested/
main.js
main.js.map
Expected output
project/
src/deep/nested/
main.ts
out/
main.js
main.js.map
Version
"@swc/cli": "^0.1.55", "@swc/core": "^1.2.128"
I'm facing the same issue.
With this file structure: c:\1\2\3\4\5\my.ts
When I ran below command:
npx swc c:\1\2\3 -d c:\a\b\c --extensions '.ts' -w
Dest ended up as: c:\a\b\c\1\2\3\4\5\my.js