mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
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:
parent
00ea57937e
commit
9a702809ee
@ -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'
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user