Skip to content

Commit 364906e

Browse files
reznordlukeed
authored andcommitted
Fix yarn scripts (#246)
1 parent 123cc8e commit 364906e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/commands/create.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ export default asyncCommand({
219219
\u001b[32mcd ${path.relative(process.cwd(), target)}\u001b[39m
220220
221221
To start a development live-reload server:
222-
\u001b[32m${argv.yarn === true ? 'yarnpkg start' : 'npm start'}\u001b[39m
222+
\u001b[32m${argv.yarn === true ? 'yarn start' : 'npm start'}\u001b[39m
223223
224224
To create a production build (in ./build):
225-
\u001b[32m${argv.yarn === true ? 'yarnpkg build' : 'npm run build'}\u001b[39m
225+
\u001b[32m${argv.yarn === true ? 'yarn build' : 'npm run build'}\u001b[39m
226226
227227
To start a production HTTP/2 server:
228-
\u001b[32m${argv.yarn === true ? 'yarnpkg serve' : 'npm run serve'}\u001b[39m
228+
\u001b[32m${argv.yarn === true ? 'yarn serve' : 'npm run serve'}\u001b[39m
229229
`) + '\n';
230230
}
231231
});

src/lib/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const pkgScripts = async (yarn, pkg) => {
4545
if (isYarnAvailable && yarn) {
4646
return {
4747
...(pkg.scripts || {}),
48-
start: 'if-env NODE_ENV=production && yarnpkg -s serve || yarnpkg -s dev',
48+
start: 'if-env NODE_ENV=production && yarn run -s serve || yarn run -s dev',
4949
build: 'preact build',
5050
serve: 'preact build && preact serve',
5151
dev: 'preact watch',

0 commit comments

Comments
 (0)