mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-13 12:40:18 -05:00
fix: fix modern mode in monorepo by resolving in the package scope
fixes https://github.com/vuejs/vue-cli/pull/3477#issuecomment-466926461
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = (api, options) => {
|
||||
}), api, options)
|
||||
// spawn sub-process of self for modern build
|
||||
const { execa } = require('@vue/cli-shared-utils')
|
||||
const cliBin = api.resolve('node_modules/.bin/vue-cli-service')
|
||||
const cliBin = require('path').resolve(__dirname, '../../../bin/vue-cli-service.js')
|
||||
await execa(cliBin, ['build', ...rawArgs], {
|
||||
stdio: 'inherit',
|
||||
env: {
|
||||
|
||||
Reference in New Issue
Block a user