Skip to content

Commit

Permalink
fix: window nuxt build by using cross-spawn (nuxt#3833)
Browse files Browse the repository at this point in the history
node spawnSync have issues on windows and building fails with it with ENOENT error
  • Loading branch information
aldarund authored and clarkdo committed Sep 1, 2018
1 parent 00ea579 commit 9a70280
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { resolve } from 'path'
import { spawnSync } from 'child_process'
import EventEmitter from 'events'
import { sync as spawnSync } from 'cross-spawn'
import consola from 'consola'
import { readFileSync, existsSync, readJSONSync, writeFileSync, copySync, removeSync } from 'fs-extra'
import { builtinsMap } from './builtins'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
"babel-plugin-dynamic-import-node": "^2.0.0",
"codecov": "^3.0.4",
"cross-env": "^5.2.0",
"cross-spawn": "^6.0.5",
"eslint": "^5.4.0",
"eslint-config-standard": "^12.0.0",
"eslint-config-standard-jsx": "^6.0.2",
Expand Down

0 comments on commit 9a70280

Please sign in to comment.