Skip to content

Commit 92c69e1

Browse files
committed
fix: should pass cwd as argument
1 parent a1aef86 commit 92c69e1

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-service/lib/commands

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/lib/commands/serve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ module.exports = (api, options) => {
235235
isFirstCompile = false
236236

237237
if (!isProduction) {
238-
const buildCommand = hasProjectYarn(api.getCwd()) ? `yarn build` : hasProjectPnpm() ? `pnpm run build` : `npm run build`
238+
const buildCommand = hasProjectYarn(api.getCwd()) ? `yarn build` : hasProjectPnpm(api.getCwd()) ? `pnpm run build` : `npm run build`
239239
console.log(` Note that the development build is not optimized.`)
240240
console.log(` To create a production build, run ${chalk.cyan(buildCommand)}.`)
241241
} else {

0 commit comments

Comments
 (0)