Skip to content
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

Option addon-location is ignored #301

Open
fpauser opened this issue Oct 7, 2024 · 1 comment
Open

Option addon-location is ignored #301

fpauser opened this issue Oct 7, 2024 · 1 comment

Comments

@fpauser
Copy link

fpauser commented Oct 7, 2024

Executed in an ember monorepo to generate a v2 addon without testapp in the ./packages/ directory:

ember addon "@app-namespace/addon-v2" -b @embroider/addon-blueprint \
  --pnpm \
  --addon-only \
  --addon-location="packages/addon-v2" \
  --skip-git --typescript

This prints the following warning:

The option '--addon-only' is not registered with the 'addon' command. Run `ember addon --help` for a list of supported options.
The option '--addon-location' is not registered with the 'addon' command. Run `ember addon --help` for a list of supported options.

and puts the addon-v2 addon directly into the monorepo root, instead of the ./packages/ directory as intended.

ember version:

$ ember -v
ember-cli: 5.12.0
node: 20.17.0
os: linux x64

pnpm version:

$ pnpm -v
9.9.0
@NullVoxPopuli
Copy link
Collaborator

When using --addon-only, you want to cd to the directory where you want the addon to be. (the testing matrix is too big otherwise 😅 )

Re the ember-cli warnings, we/someone needs to add formal support for the addon and new blueprints having custom flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants