Do you want to request a _feature_ or report a _bug_?
Bug
What is the current behaviour?
Generated README.md and package.json scripts use npm instead of yarn even when the --yarn option is specified.
If the current behaviour is a bug, please provide the steps to reproduce.
preact create yarnapp --yarn
grep npm ./yarnapp/README.md ./yarnapp/package.json
What is the expected behaviour?
Yarn is used throughout project instructions and in package.json
If this is a feature request, what is motivation or use case for changing the behaviour?
N/A
Please mention other relevant information.
N/A
Please paste the results of preact info here.
Environment Info:
System:
OS: macOS 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz
Binaries:
Node: 12.6.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Browsers:
Chrome: 76.0.3809.100
Firefox: 67.0.4
Safari: 12.1.2
npmPackages:
preact: ^8.3.1 => 8.5.2
preact-cli: ^3.0.0-next.19 => 3.0.0-rc.4
preact-compat: ^3.18.4 => 3.19.0
preact-render-to-string: ^4.1.0 => 4.1.0
preact-router: ^2.6.1 => 2.6.1
npmGlobalPackages:
preact-cli: 3.0.0-rc.4
Yep it looks that way from looking at the code.
On Mon, Aug 19, 2019 at 2:03 AM Harshit Kumar notifications@github.com
wrote:
I think the owners need add the description
https://github.com/preactjs-templates/widget &
https://github.com/preactjs-templates/typescript—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/preactjs/preact-cli/issues/871?email_source=notifications&email_token=AACZFFEFZV5BAKJ227ZPPFLQFIZRLA5CNFSM4IMUL6K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4RZKEA#issuecomment-522425616,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACZFFAW3JWXYHARGPVL5QTQFIZRLANCNFSM4IMUL6KQ
.
I am working on the PR to improve project templates, will fix this issue too.
I'm not sure if the scripts in package.json are a problem
Most helpful comment
I am working on the PR to improve project templates, will fix this issue too.