Skip to content

Is it possible to have scoped packages? (i.e. start with @) #315

Closed Answered by JeroenReumkens
mmJordanO asked this question in Help
Discussion options

You must be logged in to vote

@mmJordanO Yes, scoped packages seem possible!
What you need to do is the following:

  1. Make sure you update the name of your packages in package.json to contain the scopes (@my-package/...)
  2. Don't change anything to the folder names — so @my-package/foo should be in the packages/foo directory
  3. Run yarn and yarn dev again. Your packages should work now.

If you also update the config packages, you also only change the names in the package.json. Make sure to replace all the references in other config files to these packages as well (linting, etc).

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@JeroenReumkens
Comment options

@mmJordanO
Comment options

@JeroenReumkens
Comment options

@mmJordanO
Comment options

@bherbruck
Comment options

Answer selected by jaredpalmer
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