Replies: 1 comment
-
I got an answer regarding points 1 and 3 on Slack: just manually add any extra needed dependencies to the lib's To follow Nx conventions, you have to install the dependencies on the workspace root using your package manager ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
in a publishable node library, by default the dependencies are added to the
package.json
automatically during build. This works for most cases, but how can I handle the following cases:require
statement uses string concatenation on runtime to figure out which module to loadtslib
to the dependencies as it's needed on runtime but it's not getting added (currently working around it with animport 'tslib';
in myindex.ts
file)Thanks!
Beta Was this translation helpful? Give feedback.
All reactions