angular-architects / nx-ddd-plugin

Nx plugin for structuring a monorepo with domains and layers
313 stars 56 forks source link

[Bug] Fix import paths with '/' so that libraries could be published to a registry #47

Closed smarletta closed 3 years ago

smarletta commented 3 years ago

Hi,

we are currently struggling when we want to publish our libraries to make them accessible for other teams. On a look on the generated import paths we saw:

@scope/moduleName/feature

I guess for being publishable it should be:

@scope/moduleName-featureName

Or did we misunderstand the approach?

regards sebastiano

manfredsteyer commented 3 years ago

Thanks for pointing this out. The next version of this plugin allows you to do the following:

--type=publishable --importPath a-b-c

The importPath is the name, you want to use for npm.