@nx/workspace:npm-package
Add a minimal npm package.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Add a minimal npm package.
1nx generate npm-package ...
2By default, Nx will search for npm-package in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/workspace:npm-package ...
2Show what will be generated without writing to disk:
1nx g npm-package ... --dry-run
2(?:^@[a-zA-Z0-9-*~][a-zA-Z0-9-*._~]*\\/[a-zA-Z0-9-~][a-zA-Z0-9-._~]*|^[a-zA-Z][^:]*)$Package name.
A directory where the package is placed.
as-provided, derivedWhether to generate the project name and root directory as provided (as-provided) or generate them composing their values and taking the configured layout into account (derived).
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!