Skip to content

Generating paths from package names #2104

Discussion options

You must be logged in to vote

Revised proposition with use-cases:

  1. When a user wants to add an unscoped package to the packages root
# adds "pkg" in ./packages/pkg
modular add PKG
  1. When a user wants to add an unscoped package to a nested path
# adds "pkg" in packages/my/nested/path/pkg
modular add pkg --path packages/my/nested/path
  1. When a user wants to add a scoped package
# adds "@scope/pkg" in packages/pkg
modular add @scope/pkg
  1. When a user wants to add a scoped package to a nested path
# adds "@scope/pkg" in packages/my/nested/path/scope/pkg
modular add @scope/pkg --path packages/my/nested/path/scope
  1. When a user wants to add a package (scoped or otherwise) to a path other than ./packages
# adds "pkg" in…

Replies: 4 comments 4 replies

Comment options

steveukx
Sep 5, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@benpryke
Comment options

@cristiano-belloni
Comment options

@sgb-io
Comment options

@cristiano-belloni
Comment options

Answer selected by cristiano-belloni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants