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', () => {
|
||||
const workspaceRoot = path.resolve(__dirname, '../../..')
|
||||
execFileSync(
|
||||
path.join(workspaceRoot, 'node_modules/.bin/tsc'),
|
||||
['-p', path.join(__dirname, 'fixtures/tsconfig.json')],
|
||||
process.execPath,
|
||||
[
|
||||
path.join(path.dirname(require.resolve('typescript', { paths: [workspaceRoot] })), 'tsc.js'),
|
||||
'-p',
|
||||
path.join(__dirname, 'fixtures/tsconfig.json'),
|
||||
],
|
||||
{ cwd: workspaceRoot, stdio: 'pipe' },
|
||||
)
|
||||
})
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户