fix: window nuxt build by using cross-spawn (#3833)

node spawnSync have issues on windows and building fails with it with ENOENT error
This commit is contained in:
Dmitry Molotkov 2018-09-01 23:44:57 +03:00 committed by Clark Du
parent 00ea57937e
commit 9a702809ee
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import { resolve } from 'path' import { resolve } from 'path'
import { spawnSync } from 'child_process'
import EventEmitter from 'events' import EventEmitter from 'events'
import { sync as spawnSync } from 'cross-spawn'
import consola from 'consola' import consola from 'consola'
import { readFileSync, existsSync, readJSONSync, writeFileSync, copySync, removeSync } from 'fs-extra' import { readFileSync, existsSync, readJSONSync, writeFileSync, copySync, removeSync } from 'fs-extra'
import { builtinsMap } from './builtins' import { builtinsMap } from './builtins'

View File

@ -138,6 +138,7 @@
"babel-plugin-dynamic-import-node": "^2.0.0", "babel-plugin-dynamic-import-node": "^2.0.0",
"codecov": "^3.0.4", "codecov": "^3.0.4",
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"cross-spawn": "^6.0.5",
"eslint": "^5.4.0", "eslint": "^5.4.0",
"eslint-config-standard": "^12.0.0", "eslint-config-standard": "^12.0.0",
"eslint-config-standard-jsx": "^6.0.2", "eslint-config-standard-jsx": "^6.0.2",