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

Force to use yarn over npm #92

Open
caesarsol opened this issue Nov 25, 2021 · 5 comments
Open

Force to use yarn over npm #92

caesarsol opened this issue Nov 25, 2021 · 5 comments

Comments

@caesarsol
Copy link
Contributor

As explained here: yarnpkg/yarn#4895 (comment)

Which is:

create .npmrc with:

# used to force yarn over npm
# https://github.com/yarnpkg/yarn/issues/4895#issuecomment-545644733
engine-strict = true

edit package.json adding:

{
  "engines": {
    "npm": "PLEASE USE YARN INSTEAD OF NPM",
    "yarn": ">= 1.0.0"
  },
}

possible bonus: write in engines the same yarn version as the one used to call create-accurapp.

@SgaBenza @ilariaventurini @ivanross @delaudio @pitou what do you think? could be useful on our long-running projects as well!

@caesarsol caesarsol changed the title Froce to use yarn over npm Force to use yarn over npm Nov 25, 2021
@delaudio
Copy link

I agree, to me yarn is preferable.

But, what about craco? 😏😁

@ivanross
Copy link
Contributor

I agree too.

@marcofugaro
Copy link
Contributor

You guys should check out vite https://vitejs.dev/

@caesarsol
Copy link
Contributor Author

hi Doc @marcofugaro !
rollup, seriously? we were thinking about https://swc.rs/ maybe

@marcofugaro
Copy link
Contributor

rollup + esbuild, it has every feature from create-react-app and is much faster.
It's the successor of CRA since CRA is kinda in maintenance mode now.

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

No branches or pull requests

4 participants