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

USWDS-site: Repair prettier command #1553

Merged
merged 1 commit into from
Apr 26, 2022
Merged

USWDS-site: Repair prettier command #1553

merged 1 commit into from
Apr 26, 2022

Conversation

amyleadem
Copy link
Contributor

Description

The command npm run prettier:scss is returning different results than its paired npx command npx prettier --write ./css/**/*.scss.

Running the command via npm causes it to only look at directories exactly one level deep inside /css while running it via npx brings results from multiple levels. See screenshot for differences:

image

Solution

Wrapping the path in single quotes returns intended results.
image

@amyleadem amyleadem requested a review from mejiaj April 26, 2022 14:05
Copy link
Contributor

@mejiaj mejiaj left a comment

Choose a reason for hiding this comment

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

Great, this works! Thank you!!

I added some ugly CSS to uswds-fonts.scss and ran the previous command (nothing happened). Then I ran it with the new one and it prettified as expected.

@mejiaj mejiaj merged commit 45b264e into develop Apr 26, 2022
@mejiaj mejiaj deleted the al-prettier branch April 26, 2022 14:16
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