Skip to content

Shared Dependencies #2079

Answered by dnbkr
andrewfairlie asked this question in Help
Sep 26, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I'm also looking for the answer to this - I have found that installing the shared package as a workspace dependency seems to work, but I've not idea if that's "best practise"

my example:

apps/
   appA/
      package.json   <-- no 'next' dep
   appB/
      package.json   <-- no 'next' dep
package.json         <-- yes 'next' dep, all workspaces resolve to this

I'm using NPM workspaces, btw

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@andrewfairlie
Comment options

@fedemp
Comment options

@crs1138
Comment options

Answer selected by andrewfairlie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants