Skip to content

Commit

Permalink
fix: uses cross-platform spawn + fix pkg versions
Browse files Browse the repository at this point in the history
  • Loading branch information
huafu committed Aug 21, 2018
1 parent 4fa2750 commit ac1599c
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion e2e/__helpers__/test-case/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
outputJsonSync,
} from 'fs-extra'
import merge from 'lodash.merge'
import { spawnSync } from 'child_process'
import { sync as spawnSync } from 'cross-spawn'

const TEMPLATE_EXCLUDED_ITEMS = ['node_modules', 'package-lock.json']

Expand Down
6 changes: 3 additions & 3 deletions e2e/__templates__/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0-tmpl.0",
"private": true,
"devDependencies": {
"@types/jest": "^23.3.1",
"jest": "^23.4.2",
"typescript": "^3.0.1"
"@types/jest": "23.3.1",
"jest": "23.4.2",
"typescript": "3.0.1"
}
}
8 changes: 4 additions & 4 deletions e2e/__templates__/with-babel-6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.0-tmpl.0",
"private": true,
"devDependencies": {
"@types/jest": "^23.3.1",
"babel-core": "^6.26.3",
"jest": "^23.4.2",
"typescript": "^3.0.1"
"@types/jest": "23.3.1",
"babel-core": "6.26.3",
"jest": "23.4.2",
"typescript": "3.0.1"
}
}
10 changes: 5 additions & 5 deletions e2e/__templates__/with-babel-7/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.0.0-tmpl.0",
"private": true,
"devDependencies": {
"@babel/core": "^7.0.0-beta.56",
"@types/jest": "^23.3.1",
"babel-core": "^7.0.0-bridge.0",
"jest": "^23.4.2",
"typescript": "^3.0.1"
"@babel/core": "7.0.0-beta.56",
"@types/jest": "23.3.1",
"babel-core": "7.0.0-bridge.0",
"jest": "23.4.2",
"typescript": "3.0.1"
}
}
6 changes: 3 additions & 3 deletions e2e/__templates__/with-jest-22/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0-tmpl.0",
"private": true,
"devDependencies": {
"@types/jest": "^22.2.3",
"jest": "^22.4.4",
"typescript": "^3.0.1"
"@types/jest": "22.2.3",
"jest": "22.4.4",
"typescript": "3.0.1"
}
}
2 changes: 1 addition & 1 deletion e2e/__templates__/with-typescript-2-7/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions e2e/__templates__/with-typescript-2-7/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0-tmpl.0",
"private": true,
"devDependencies": {
"@types/jest": "^23.3.1",
"jest": "^23.4.2",
"typescript": "^2.7.2"
"@types/jest": "23.3.1",
"jest": "23.4.2",
"typescript": "2.7.2"
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions e2e/__templates__/with-unsupported-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0-tmpl.0",
"private": true,
"devDependencies": {
"@types/jest": "^23.3.1",
"jest": "^23.4.2",
"typescript": "^2.5.3"
"@types/jest": "23.3.1",
"jest": "23.4.2",
"typescript": "2.5.3"
}
}
2 changes: 1 addition & 1 deletion scripts/lib/spawn-sync.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { spawnSync: sync } = require('child_process')
const { sync } = require('cross-spawn')

/**
* @type {typeof sync}
Expand Down

0 comments on commit ac1599c

Please sign in to comment.