-
Notifications
You must be signed in to change notification settings - Fork 52
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
(Bug?) Outdir adds "baseUrl" to directory structure as of V0.3.0 #282
Comments
If it is intended behavior it does deviate from The above-mentioned issue was actually our exact case, the new types were able to be imported from our packages as expected but the e.g.npx tsc --declaration --emitDeclarationOnly && npx swc --config-file .swcrc ./src -d dist Would place the compiled Breaking changes such as this come as kind of a surprise and lead to strange behavior after an update of NPM packages. In addition there is little communication about the breaking change which then turns it into a bit of a "needle-in-a-haystack" situation. Would love to brainstorm and help out on this point if you're on board with that 👍 Thanks for taking the time reading my ramblings, much appreciated |
See #281 |
Closing as fixed by #283. |
When setting the baseUrl in
.swcrc
as such:...And running
swc
with theoutdir
set like this:I end up with an extra
/src/
in the outdir folderIs this a breaking change for
V0.0.3
or might this be a bug?Comparison: V0.2.3 outputs vs V0.3.0 outputs
V0.2.3
V0.3.0 (wrapped in an additional
src
directoryThe text was updated successfully, but these errors were encountered: