mirror of https://github.com/vuejs/core.git
[autofix.ci] apply automated fixes
This commit is contained in:
parent
8ead7f094b
commit
714f35f26e
|
@ -2,7 +2,8 @@
|
|||
import fs from 'node:fs'
|
||||
import { exec } from './utils.js'
|
||||
|
||||
exec('pnpm', ['build', 'vue', '-f', 'global-runtime']).then(() => {
|
||||
exec('pnpm', ['build', 'vue', '-f', 'global-runtime'])
|
||||
.then(() => {
|
||||
const errors = []
|
||||
|
||||
const devBuild = fs.readFileSync(
|
||||
|
@ -46,7 +47,8 @@ exec('pnpm', ['build', 'vue', '-f', 'global-runtime']).then(() => {
|
|||
`Found the following treeshaking errors:\n\n- ${errors.join('\n\n- ')}`,
|
||||
)
|
||||
}
|
||||
}).catch(error => {
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(`Treeshaking verification failed: ${error.message}`)
|
||||
process.exit(1)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue