test(common): run TypeScript compiler cross-platform

这个提交包含在:
XuqmGroup 2026-07-27 10:17:07 +08:00
父节点 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' },
) )
}) })