Skip to content

Commit

Permalink
Use cross-spawn in ern-core
Browse files Browse the repository at this point in the history
  • Loading branch information
friederbluemle committed Apr 13, 2020
1 parent 77563f7 commit 18df230
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions ern-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"chalk": "^2.4.1",
"cli-table": "^0.3.1",
"code-push": "^2.0.6",
"cross-spawn": "^7.0.2",
"decompress-zip": "^0.3.1",
"ern-bugsnag-sourcemaps": "^1.0.0",
"form-data": "^2.5.0",
Expand Down
2 changes: 1 addition & 1 deletion ern-core/src/YarnCli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import fs from 'fs-extra'
import { PackagePath } from './PackagePath'
import { execp } from './childProcess'
import log from './log'
import { spawn } from 'child_process'
import { spawn } from 'cross-spawn'
import { readPackageJson } from './packageJsonFileUtils'

export class YarnCli {
Expand Down
3 changes: 2 additions & 1 deletion ern-core/src/childProcess.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { exec, spawn, ChildProcess } from 'child_process'
import { exec, ChildProcess } from 'child_process'
import { spawn } from 'cross-spawn'
import log from './log'

interface ExecOpts {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@types/archiver": "^3.0.0",
"@types/chai": "^4.2.9",
"@types/cli-table": "^0.3.0",
"@types/cross-spawn": "^6.0.1",
"@types/fast-levenshtein": "^0.0.1",
"@types/fs-extra": "^8.1.0",
"@types/fs-readdir-recursive": "^1.0.0",
Expand Down
16 changes: 16 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,13 @@
resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==

"@types/cross-spawn@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/@types/cross-spawn/-/cross-spawn-6.0.1.tgz#60fa0c87046347c17d9735e5289e72b804ca9b63"
integrity sha512-MtN1pDYdI6D6QFDzy39Q+6c9rl2o/xN7aWGe6oZuzqq5N6+YuwFsWiEAv3dNzvzN9YzU+itpN8lBzFpphQKLAw==
dependencies:
"@types/node" "*"

"@types/events@*":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7"
Expand Down Expand Up @@ -3328,6 +3335,15 @@ cross-spawn@^7.0.0:
shebang-command "^2.0.0"
which "^2.0.1"

cross-spawn@^7.0.2:
version "7.0.2"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.2.tgz#d0d7dcfa74e89115c7619f4f721a94e1fdb716d6"
integrity sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw==
dependencies:
path-key "^3.1.0"
shebang-command "^2.0.0"
which "^2.0.1"

crypt@~0.0.1:
version "0.0.2"
resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b"
Expand Down

0 comments on commit 18df230

Please sign in to comment.