-
Notifications
You must be signed in to change notification settings - Fork 16
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
Possible to modify JS output but not .d.ts output? #29
Comments
This looks incompatible with standard type checking behavior in typescript (in ide, in .ts and .d.ts). Why not to use yarn workspaces or lerna, https://github.com/zerkalica/mobx-psy for example. I think, my plugin totally unnecessary with workspaces. |
We have multiple development groups downstream from us. We use lerna in our
group but we cannot have all those other groups in our repository.
Those other groups write plug-ins for our application and, unfortunately,
we haven't had time to extract every integration point into separate
modules. So, we're stuck with this weird model where they write their code
as if it were in our server module but not really. We have many months
ahead of us to extract those shared components into their own modules and
even longer to get these other groups to use them.
…On Sat, Apr 4, 2020, 11:51 Stefan ***@***.***> wrote:
This looks incompatible with standard type checking behavior in typescript
(in ide, in .ts and .d.ts).
Why not to use yarn workspaces or lerna,
https://github.com/zerkalica/mobx-psy for example.
I think, my plugin totally unnecessary with workspaces.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABT6LNTREA7QLLBAK27VHMDRK5JPJANCNFSM4LSVKPSA>
.
|
Try 1.7.17, set disableForDeclarations to true "plugins": [
{
"transform": "@zerollup/ts-transform-paths",
"disableForDeclarations": true
}
] This is experimental feature, i don't shure, that setting disableForDeclarations to true do not breaks in some cases. |
We have a plugin architecture. The "base" of that is in the host server. We published a virtual package so that plugin developers did not have to develop "inside" the server's source repository.
We had been manually re-writing the JS output, but this messes up the map files.
This plugin appears to do 90% of what we need but has the side-effect of breaking the .d.ts imports, which should continue to reference the NPM module and not some local thing.
Any issues with adding this in as a feature? I haven't looked at the code yet, so I'm not sure how difficult this would be to implement or if it's even possible given what Typescript allows...
The text was updated successfully, but these errors were encountered: