-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature(create-neon): namespaced libraries #1083
Conversation
…ges. Details: - optionally generate prefix field when generating package.json - bump generated CLI dependency number to 0.1.82 - allow both `quux` and `@foobar/quux` style names in cmdline arg - allow naming scheme to be given explicitly via `--cache npm[:org[/prefix]]`
…r the org, when we're asking for the base name of the package, and when we're asking for the fully qualified package name also, bump the manifest version in create-neon so it recognizes prefixes
… changed) - bugfix: fix double-@ in interactive dialog - tests: add test of interactive dialog when package is namespaced
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I love all the comments on the different use cases.
❓ I see the version bump is a breaking change. Do existing users need to change anything to upgrade? Perhaps add the prefix
field to package.json
?
No, it's fully backwards-compatible for users of the CLI. It's only an incompatible change to the programmatic API ( |
Co-authored-by: K.J. Valencik <[email protected]>
This PR adds support for namespaced libraries with optionally prefixed binary prebuild packages.
Details:
quux
and@foobar/quux
style names in cmdline arg--bins npm[:org[/prefix]]
Full case analysis of command-line options:
--app logos-r-us
--lib logo-generator
@logo-generator
""
--lib --bins=npm:acme logo-generator
@acme
"logo-generator-"
--lib --bins=npm:acme/libs-logo-generator- logo-generator
@acme
"libs-logo-generator-"
--lib @acme/logo-generator
@acme
"logo-generator-"
--lib --bins=npm:acme-libs @acme/logo-generator
@acme-libs
"logo-generator-"