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

Feat: support astro add without npm installing #3183

Merged
merged 8 commits into from
Apr 26, 2022

Conversation

bholmesdev
Copy link
Contributor

@bholmesdev bholmesdev commented Apr 22, 2022

Motivation: we want to add astro add to the create-astro workflow. However, this command fails when the user hasn't installed dependencies. This PR removes config parsing to prevent such errors.

Changes

  • Switch to proload's resolve within resolveConfigUrl -> prevents parsing the config file when resolving the file path
  • Update to Proload 0.3.1 to access new resolve function

Testing

N/A

Docs

N/A

@changeset-bot
Copy link

changeset-bot bot commented Apr 22, 2022

🦋 Changeset detected

Latest commit: 929959e

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

This PR includes changesets to release 2 packages
Name Type
astro Patch
@astrojs/tailwind Patch

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: integration Related to any renderer integration (scope) labels Apr 22, 2022
@natemoo-re
Copy link
Member

Ah ha! I remember what happened here. I did some refactoring when I added resolve and it broke things. I need to rollback my changes and expose resolve without updating the logic.

@bholmesdev bholmesdev merged commit 7a61977 into main Apr 26, 2022
@bholmesdev bholmesdev deleted the feat/astro-add-without-npm-install branch April 26, 2022 18:35
@github-actions github-actions bot mentioned this pull request Apr 26, 2022
SiriousHunter pushed a commit to SiriousHunter/astro that referenced this pull request Feb 3, 2023
* deps: update to latest proload

* feat: avoid parsing config on resolveConfigUrl

* chore: changeset

* fix: bump proload

* fix: bump proload

* fix: bump proload

* fix: bump proload

* fix: bump proload

Co-authored-by: Nate Moore <nate@skypack.dev>
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants