When using npx swc to compile and output files from the src directory to the build directory using the command npx swc src -d build, the output is incorrectly placed into build/src instead of directly into build. This behavior is unexpected and diverges from the documentation (or expected behavior) where the output should directly be in the build directory.
When using
npx swc
to compile and output files from thesrc
directory to thebuild
directory using the commandnpx swc src -d build
, the output is incorrectly placed intobuild/src
instead of directly intobuild
. This behavior is unexpected and diverges from the documentation (or expected behavior) where the output should directly be in thebuild
directory.