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 init script using incorrect houdini-svelte version #1376

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

SeppahBaws
Copy link
Collaborator

@SeppahBaws SeppahBaws commented Oct 23, 2024

When running npx houdini init on a brand new svelte project, the init script would incorrectly assume the version for the houdini package is the same as the version for the houdini-svelte package.
This PR fixes it by altering the build script to fetch the package.json files for all the packages, and then either use houdini's version, or houdini-svelte's version

To help everyone out, please make sure your PR does the following:

  • Update the first line to point to the ticket that this PR fixes
  • Add a message that clearly describes the fix
  • If applicable, add a test that would fail without this fix
  • Make sure the unit and integration tests pass locally with pnpm run tests and cd integration && pnpm run tests
  • Includes a changeset if your fix affects the user with pnpm changeset

Copy link

changeset-bot bot commented Oct 23, 2024

🦋 Changeset detected

Latest commit: 0357868

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

This PR includes changesets to release 8 packages
Name Type
houdini Patch
houdini-adapter-auto Patch
houdini-adapter-cloudflare Patch
houdini-adapter-node Patch
houdini-adapter-static Patch
houdini-react Patch
houdini-svelte Patch
houdini-plugin-svelte-global-stores 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

Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for houdinigraphql canceled.

Name Link
🔨 Latest commit 0357868
🔍 Latest deploy log https://app.netlify.com/sites/houdinigraphql/deploys/67196910299a76000806ad4c

Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for houdini-docs-next canceled.

Name Link
🔨 Latest commit 0357868
🔍 Latest deploy log https://app.netlify.com/sites/houdini-docs-next/deploys/67196910374413000869701b

@SeppahBaws SeppahBaws force-pushed the init-script-houdini-svelte-version branch from 1510789 to 0357868 Compare October 23, 2024 21:22
@SeppahBaws
Copy link
Collaborator Author

Needed to tweak the github action to use the new sv cli tool since it replaces create-svelte

@SeppahBaws SeppahBaws enabled auto-merge (squash) October 23, 2024 21:25
@SeppahBaws SeppahBaws merged commit fa869ce into main Oct 25, 2024
15 checks passed
@SeppahBaws SeppahBaws deleted the init-script-houdini-svelte-version branch October 25, 2024 02:35
@github-actions github-actions bot mentioned this pull request Oct 25, 2024
endigma pushed a commit to endigma/houdini that referenced this pull request Nov 23, 2024
ewen-lbh pushed a commit to ewen-lbh/houdini-graphql that referenced this pull request Dec 21, 2024
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

Successfully merging this pull request may close these issues.

2 participants