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

Fix plugin name extraction for scoped packages #535

Merged
merged 1 commit into from
Nov 10, 2022

Conversation

astronomersiva
Copy link
Contributor

@astronomersiva astronomersiva commented Nov 10, 2022

What Changed & Why

The regex introduced in #469 does not support scoped packages. This results in build failures with the error TypeError: Cannot read property '2' of null.

I have taken the new regex from https://www.npmjs.com/package/validate-npm-package-name

PR Checklist

  • Add tests
  • Add documentation
  • Prefix documentation-only commits with [DOC]

People

@duizendnegen @lukemelia

@duizendnegen
Copy link
Contributor

lgtm

@lukemelia lukemelia added the bug label Nov 10, 2022
@lukemelia lukemelia merged commit 2c1f455 into ember-cli-deploy:master Nov 10, 2022
@astronomersiva
Copy link
Contributor Author

Can you please publish this to NPM @lukemelia?

@lukemelia
Copy link
Contributor

Released as v2.0.0

@lukemelia
Copy link
Contributor

Thanks for the fix!

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

Successfully merging this pull request may close these issues.

None yet

3 participants