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

Add default .npmrc for astro add lit #6460

Merged
merged 3 commits into from
Mar 9, 2023
Merged

Add default .npmrc for astro add lit #6460

merged 3 commits into from
Mar 9, 2023

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Mar 8, 2023

Changes

Fix #6444

Lit dependencies need to be hoisted to work at the meantime. This PR surfaces this requirement in a few more places.

Currently it doesn't edit the .npmrc if there's an existing one, but I think this would be enough for now.

Testing

Tested the CLI manually in the examples folder. Confirmed that it works for pnpm only.

Docs

Updated the lit integration readme to note this workaround in its troubleshooting section.

/cc @withastro/maintainers-docs for feedback!

@bluwy bluwy requested a review from a team as a code owner March 8, 2023 14:16
@changeset-bot
Copy link

changeset-bot bot commented Mar 8, 2023

🦋 Changeset detected

Latest commit: d5e8baf

The changes in this PR will be included in the next version bump.

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

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) pkg: lit Related to Lit (scope) pkg: integration Related to any renderer integration (scope) labels Mar 8, 2023
Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, @bluwy! Just some tiny nits! 🙌

.changeset/tough-tigers-drum.md Outdated Show resolved Hide resolved
packages/astro/src/core/add/index.ts Outdated Show resolved Hide resolved
packages/integrations/lit/README.md Outdated Show resolved Hide resolved
Co-authored-by: Sarah Rainsberger <[email protected]>
@bluwy bluwy merged commit 77a046e into main Mar 9, 2023
@bluwy bluwy deleted the astro-add-lit-npmrc branch March 9, 2023 06:42
@astrobot-houston astrobot-houston mentioned this pull request Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope) pkg: integration Related to any renderer integration (scope) pkg: lit Related to Lit (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initial scaffolded project with @astrojs/lit erroring: module is not defined
4 participants