-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[astro add] Support adapters and third party packages #3854
Conversation
🦋 Changeset detectedLatest commit: 6826650 The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
return integrationEntries; | ||
} catch (e) { | ||
if (e instanceof Error) { | ||
spinner.fail(e.message); |
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.
Map errors to spinner.fail
to avoid unnecessary stack traces!
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.
🙌🏻 Great update, thanks Ben! LGTM!
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.
Well done!
* feat: support adapters and third part integrations by keywords * refactor: add keywords to all official integrations * docs: add adapter ex to astro add help * nit: clarify astro add usage * nit: highlight link * fix: use process.exit(1) on error * chore: changeset * nit: bold integration name * fix: log install instructions for adapters instead * nit: change to logAdapterConfigInstructions * Revert "fix: log install instructions for adapters instead" This reverts commit 1a459f1. * feat: add hardcoded adapter export map * refactor: inline adapter config log
Changes
package.json
keywords!astro-integration
-> valid Astro integrationastro-adapter
-> valid Astro adapterpackage.json
keywords across all official integrations and adaptersastro-
package naming requirement for third party integrationsTesting
TODO
Docs
Document magic "keywords" in the integrations API and adapter API references for package authors ❤️
withastro/docs#946