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(vite): Do not use getPaths in vite setup handler #8610

Merged
merged 3 commits into from
Jun 14, 2023

Conversation

dac09
Copy link
Collaborator

@dac09 dac09 commented Jun 14, 2023

Fixes bug in setup handler, as per comment here: #8592 (comment)

@@ -75,8 +82,9 @@ export const handler = async ({ force, verbose, addPackage }) => {
},
},
{
...addWebPackages([`@redwoodjs/vite@${version}`]),
title: 'Adding @redwoodjs/vite dependency...',
// @NOTE: make sure its added as a dev package.
Copy link
Collaborator Author

@dac09 dac09 Jun 14, 2023

Choose a reason for hiding this comment

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

This step will fail if @redwoodjs/vite is already a prod dependency (i.e. if you set it up before) - but gives a decent error message.

@dac09 dac09 added this to the v6.0.0 milestone Jun 14, 2023
@dac09 dac09 added release:fix This PR is a fix fixture-ok Override the test project fixture check labels Jun 14, 2023
@dac09 dac09 enabled auto-merge (squash) June 14, 2023 07:07
@dac09 dac09 merged commit 0c83254 into redwoodjs:main Jun 14, 2023
30 of 34 checks passed
@redwoodjs-bot redwoodjs-bot bot modified the milestones: v6.0.0, next-release Jun 14, 2023
@dac09 dac09 deleted the fix/vite-setup branch June 14, 2023 07:07
@jtoar jtoar modified the milestones: next-release, v6.0.0 Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixture-ok Override the test project fixture check release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants