diff --git a/packages/common/tests/metro-bundle.test.cjs b/packages/common/tests/metro-bundle.test.cjs index d92095a..5c11588 100644 --- a/packages/common/tests/metro-bundle.test.cjs +++ b/packages/common/tests/metro-bundle.test.cjs @@ -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' }, ) })