package.json exports: export file from other module
Is there a way for a package to export a file from another package directly?
Something along the lines of;
Ideally I don't want to have files like;
The end result is users of the package can import from
my-package
, but actually be delivered files from @org/pkg
;
My reason for doing this is I want one package in a monorepo to depend on & forward several other packages, this way users can grab everything from main-package/*
rather than needing to grab from a several different packages.0 Replies