Is it possible to have scoped packages? (i.e. start with @) #315
-
|
In the packages folder, I was able to get something without the I have: Within that folder, the package.json defines the name the same way. "@my-package/config" Lastly, in Examples: Am I missing something or can we not do this just yet? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
|
@mmJordanO Yes, scoped packages seem possible!
If you also update the config packages, you also only change the names in the |
Beta Was this translation helpful? Give feedback.
@mmJordanO Yes, scoped packages seem possible!
What you need to do is the following:
package.jsonto contain the scopes (@my-package/...)@my-package/fooshould be in thepackages/foodirectoryyarnandyarn devagain. 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).