a lazy npm init for create new package, support yarn workspace.
make we without use `mkdir xxx && cd xxx && [npm|yarn] init` with `npx npm-init2 xxx`
make we simple need use mkdir xxx && cd xxx && [npm|yarn] init
with npx npm-init2 xxx
npx npm-init2
=> npm init
npx npm-init2 --npmClient yarn
=> yarn init
-
--npmClient yarn
-yarn
,npm
, or other can initpackage.json
-
--cwd path
-
--skipCheckWorkspace
- will skip try check current path is workspace -
--sort
- sort package.json