generator-node icon indicating copy to clipboard operation
generator-node copied to clipboard

Add --yarn option to use yarn instead of npm

Open glensc opened this issue 2 years ago • 6 comments

Fixes https://github.com/yeoman/generator-node/issues/289

use yarnInstall if --yarn option is used:

  • https://yeoman.io/authoring/dependencies.html

glensc avatar Mar 22 '22 07:03 glensc

I don't know how to test this without code being published in npm registry.

glensc avatar Mar 22 '22 07:03 glensc

It is possible to install package for testing. Package may be installed from local folder or from tarball, both yarn and npm.

oklas avatar Mar 24 '22 05:03 oklas

Probably more changes needed, as this did not have any effect at all

glensc avatar Mar 24 '22 11:03 glensc

Perhaps yes

oklas avatar Mar 24 '22 13:03 oklas

Moreover, I do not see similar testing for npm either. But I noticed that the readme template generator should also be changed here

oklas avatar Mar 25 '22 04:03 oklas

PR for readme sub-generator:

  • https://github.com/yeoman/generator-node/pull/294

let's get that resolved and merged first.

glensc avatar Mar 26 '22 15:03 glensc