test(common): run TypeScript compiler cross-platform
这个提交包含在:
父节点
daa96302dd
当前提交
56fb6efccc
@ -37,8 +37,12 @@ test('common-only host bundles the default auto-init module with real Metro', as
|
|||||||
test('public types expose no manual initialization entry', () => {
|
test('public types expose no manual initialization entry', () => {
|
||||||
const workspaceRoot = path.resolve(__dirname, '../../..')
|
const workspaceRoot = path.resolve(__dirname, '../../..')
|
||||||
execFileSync(
|
execFileSync(
|
||||||
path.join(workspaceRoot, 'node_modules/.bin/tsc'),
|
process.execPath,
|
||||||
['-p', path.join(__dirname, 'fixtures/tsconfig.json')],
|
[
|
||||||
|
path.join(path.dirname(require.resolve('typescript', { paths: [workspaceRoot] })), 'tsc.js'),
|
||||||
|
'-p',
|
||||||
|
path.join(__dirname, 'fixtures/tsconfig.json'),
|
||||||
|
],
|
||||||
{ cwd: workspaceRoot, stdio: 'pipe' },
|
{ cwd: workspaceRoot, stdio: 'pipe' },
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
正在加载...
在新工单中引用
屏蔽一个用户