Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Giving choice - npm or yarn. #786

Closed
wants to merge 3 commits into from
Closed

Giving choice - npm or yarn. #786

wants to merge 3 commits into from

Conversation

NTillmann
Copy link
Contributor

Fixing issue raised in #782.

Copy link
Contributor

@cblappert cblappert left a comment

Choose a reason for hiding this comment

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

Not sure where to go from here. If we want to support both npm and yarn, we have to keep the npm run calls in our package.json. Otherwise we could disallow npm and change all of those to yarn run. Keeping things how they are works with both feels a little odd to me because yarn run validate will run all of its scripts with npm.

README.md Outdated

```bash
$ yarn global add prepack
$ npm install -g yarn
Copy link
Contributor

Choose a reason for hiding this comment

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

This installs yarn not prepack, npm install -g prepack installs prepack

@NTillmann
Copy link
Contributor Author

Updated README. Using npm for using Prepack should be fine. You only need all the scripts for further development work. I added a note describing that.

@cblappert
Copy link
Contributor

In this case we should also change the package.json to replace npm in all the scripts with yarn (e.g. validate, prepublish).

Pointing out that yarn is not optional for development work as many scripts require it.
@NTillmann
Copy link
Contributor Author

Okay, you one really needs yarn to develop.

@facebook-github-bot
Copy link

@NTillmann has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants