https://pulumi.com logo
#general
Title
# general
d

dazzling-scientist-80826

04/20/2019, 12:40 AM
Is it possible to use
link:../whatever
in a pulumi package.json for a yarn project? I get
Could not include required dependency
when i try.
w

white-balloon-205

04/20/2019, 12:41 AM
What do you mean by
link: ...
? I'm not aware of that being a
package.json
feature.
Typically, linking is done outside of the
package.json
by
yarn link
in the source folder, and then
yarn link mylib
in the target folder, with the latter writing directly into
node_modules
.
d

dazzling-scientist-80826

04/22/2019, 4:45 PM
can’t find any relevant docs outside of github issues tho
but actually, i don’t think this has anything to do with the problem i’m encountering now that i’m debugging it - might have more to do with yarn “workspaces” and the fact that there is only one top-level node_modules directory, so when i run
pulumi -C ./packages/cloud preview
, it’s not finding
./node_modules/whatever
b/c it’s looking in
./packages/cloud/node_modules
minimal reproduction & notes here: https://github.com/pulumi/pulumi/issues/2661 - low priority for me b/c i have a workaround, but happy to continue the discussion over there / contribute if necessary