create-book icon indicating copy to clipboard operation
create-book copied to clipboard

Should we recommend `npx create-book <directory>` or with Yarn 2 `yarn dlx create-book <directory>`

Open MurakamiShinyu opened this issue 4 years ago • 0 comments

In the current README:

Just run yarn create book and start writing your book!

Use

yarn create book <directory>
# or
npm create book <directory>

I checked the Yarn 2 documentation - Migration - CLI Commands - Renamed and found that the yarn create in Yarn Classic (1.x) is replaced to yarn dlx create-<name> in Yarn 2 with Note: "yarn create still works, but prefer using yarn dlx".

If yarn create will be deprecated, we should not recommend yarn create and its npm counterpart npm create and should recommend npx and yarn dlx?

npx create-book <directory>   # same as `npm create book <directory>`
# or if Yarn 2 is available:
yarn dlx create-book <directory>

MurakamiShinyu avatar Aug 03 '20 13:08 MurakamiShinyu