Skip to content

Commit 14b2c6e

Browse files
committedFeb 25, 2019
fix: fix modern mode in monorepo by resolving in the package scope
fixes #3477 (comment)
1 parent 51efb99 commit 14b2c6e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed
 

‎packages/@vue/cli-service/lib/commands/build/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = (api, options) => {
5858
}), api, options)
5959
// spawn sub-process of self for modern build
6060
const { execa } = require('@vue/cli-shared-utils')
61-
const cliBin = api.resolve('node_modules/.bin/vue-cli-service')
61+
const cliBin = require('path').resolve(__dirname, '../../../bin/vue-cli-service.js')
6262
await execa(cliBin, ['build', ...rawArgs], {
6363
stdio: 'inherit',
6464
env: {

0 commit comments

Comments
 (0)
Please sign in to comment.