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 incorrect terminal message after installation #4402

Conversation

doe-base
Copy link
Contributor

Description:
This PR resolves an issue in the terminal output after creating a new Blitz app. The post-installation steps currently suggest running:
npm blitz dev
This command does not work as expected.

Fix:
Updated the source code to ensure the correct command is displayed, based on the package manager used. For npm, the correct command is:
npm run dev
The updated logic now dynamically sets the command as follows:
postInstallSteps.push(${projectPkgManager} ${projectPkgManager === "npm" ? "run " : ""}dev);

Impact:
This fix improves the developer experience by providing accurate and actionable post-installation instructions.

Closes: #4401

Copy link

changeset-bot bot commented Dec 23, 2024

🦋 Changeset detected

Latest commit: 6b07506

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

This PR includes changesets to release 8 packages
Name Type
blitz Patch
next-blitz-auth Patch
@blitzjs/auth Patch
@blitzjs/next Patch
@blitzjs/rpc Patch
@blitzjs/codemod Patch
@blitzjs/config Patch
@blitzjs/generator 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

@siddhsuresh
Copy link
Member

Thanks for the PR!

@kodiakhq kodiakhq bot merged commit 565db3c into blitz-js:main Dec 23, 2024
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect terminal message after creating a new Blitz project
3 participants