Skip to content

Commit a1aef86

Browse files
committed
fix: check for project pnpm only
1 parent 095067e commit a1aef86

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const {
22
info,
33
hasProjectYarn,
4-
hasPnpm3OrLater,
4+
hasProjectPnpm,
55
openBrowser,
66
IpcMessenger
77
} = require('@vue/cli-shared-utils')
@@ -235,7 +235,7 @@ module.exports = (api, options) => {
235235
isFirstCompile = false
236236

237237
if (!isProduction) {
238-
const buildCommand = hasProjectYarn(api.getCwd()) ? `yarn build` : hasPnpm3OrLater() ? `pnpm run build` : `npm run build`
238+
const buildCommand = hasProjectYarn(api.getCwd()) ? `yarn build` : hasProjectPnpm() ? `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)