Replies: 3 comments
-
I think this is difficult because You can set it programmatically at runtime using things such as I think ideally you wouldn't depend on this. I assume it is primarily just to hide the |
Beta Was this translation helpful? Give feedback.
-
Yeah. There is no easy way to use In theory you could patch It should be just one line of code to change that you can carry as a patch. rules_js/npm/private/npm_translate_lock.bzl Line 486 in edd0e66
to
|
Beta Was this translation helpful? Give feedback.
-
How is this meant to work with cross module dependencies? I've been stuck on this for a while so far. For example, module X has a set of npm deps that get bundled as deps on a Can this be achieved similar to how it is in Or is the answer that there shouldn't be deps coming from multiple |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a repository which has some interesting quirks including the fact that our main
node_modules
folder is not in the typical Node module resolution path. Ournode_modules
is in a directory./js
and our source code is in./src
and a few other directories.Normally, one could pass a NODE_PATH envvar (see here) which is a list of absolute paths that node_modules could be found at outside of the typical "parent directory" resolution algorithm to run anything in
src
with node.I've created a simple example repo which replicates the structure of our repository here. Running
bazel build //src:run
fails withAs you can see I've been unable to successfully get this working with rules_js. Is there a suggested way of handling repositories of this structure or will I need to move the repository such that the node_modules are linked in a parent directory?
Beta Was this translation helpful? Give feedback.
All reactions