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: Adds yarn as a devDep #2751

Closed
wants to merge 5 commits into from
Closed

Conversation

dakota002
Copy link

Summary

This PR adds yarn as a dev dependency. If you install a version of this package from git, (ex. github:lpsinger/react-uswds#dateFormat) the prepare script will run on npm install. This causes npm install to fail if yarn is not present on the user's machine.

From the npm docs:

NOTE: If a package being installed through git contains a prepare script, its dependencies and devDependencies will be installed, and the prepare script will be run, before the package is packaged and installed.

@mdmower-csnw
Copy link
Contributor

This would be appreciated. It was a necessary addition to our (hopefully temporary) fork in order for CI agents to run prepare when consuming the package via GitHub instead of npmjs. CSNW@202dce5

@jpandersen87
Copy link
Contributor

I added this change in #2716 in case that PR lands before this one to ensure folks get it asap

@werdnanoslen werdnanoslen requested a review from a team February 21, 2024 01:06
@werdnanoslen
Copy link
Contributor

We're in the process of (pending some Github action changes) merging #2716 with this change incorporated, so I'm going to close this PR. Thanks for this @dakota002!

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.

4 participants