-
Notifications
You must be signed in to change notification settings - Fork 522
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
try ts_project -> ts_project dep with named module #1898
Conversation
@alexeagle any update on this? :) |
@gregmagolan and I discussed it yesterday. We aren't sure about adding package_name attributes to lots of rules. Feels like it will end up splattered in a lot of places. Probably better to figure out how to put a package rule in the middle so we solve it with composition. Might not make 2.0 but it's non breaking so maybe 2.1 |
gotcha. So do u have any guidance for the solving this in the short term? (and for people porting from |
If you can name the workspace the same as a top-level package, then change
your imports to use that top-level package, then all your imports are deep
imports within the same package and that works. But of course you might not
have the freedom to do that if you publish them outside the workspace using
the different package names as references between them.
You can patch this one file
<https://github.com/bazelbuild/rules_nodejs/pull/1924/files#diff-ab3f36c8dfcccf8f7b945c8dc42d810f>
into
your node_modules (using patch-package maybe) and start putting module_name
on your ts_project's but you might need to change that in the future when
we have a better way. I do think ts_project is pretty stable so there's not
a lot of risk taking on that patch locally.
…On Sun, Jun 14, 2020 at 1:01 PM Long Ho ***@***.***> wrote:
gotcha. So do u have any guidance for the solving this in the short term?
(and for people porting from lerna basically)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1898 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALSI3YT7ZETBNPOZ42QXDRWUUALANCNFSM4NDNDXQQ>
.
|
circling back to this @alexeagle turns this is not enough. I think I'm actually looking for |
this is now included in #2187 |
No description provided.