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

[legacy-framework] Fix prettier failure on blitz new with npm #370

Merged
merged 1 commit into from
May 1, 2020

Conversation

Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Apr 30, 2020

Type: bug fix

Closes: blitz-js/legacy-framework#505

What are the changes and their implications? ⚙️

The code was trying to run npm run prettier, but that's not that easy:
You'd have to create a special prettier script in your package.json to make that work.
The workaround for NPM users is to use NPX, which ships since NPM v5.2.

Checklist

  • Tests added for changes
  • Any added terminal logging uses packages/server/src/log.ts

Breaking change: no

We're used to running `yarn run prettier`, but it's not that easy using NPM:
You'd have to create a special `prettier` script in your package.json to make that work.
The workaround for NPM users is to use NPX, which ships since NPM v5.2.
@Skn0tt Skn0tt requested a review from aem as a code owner April 30, 2020 16:05
@flybayer
Copy link
Member

flybayer commented May 1, 2020

Awesome, thank you!!

@flybayer flybayer changed the title Use npx for running prettier without yarn Fix prettier failure on blitz new with npm May 1, 2020
@flybayer flybayer merged commit 2fb9abc into canary May 1, 2020
@flybayer flybayer deleted the fix-331 branch May 1, 2020 05:04
@itsdillon itsdillon changed the title Fix prettier failure on blitz new with npm [legacy-framework] Fix prettier failure on blitz new with npm Jul 7, 2022
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.

Bug: blitz new myapp --no-yarn fails before completion because of prettier
2 participants