Skip to content

Commit 9653cd9

Browse files
committed
Fix2
1 parent f56064a commit 9653cd9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bin/helpers/readCypressConfigUtil.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function generateTscCommandAndTempTsConfig(bsConfig, bstack_node_modules_path, c
2222
// Prepare base temp tsconfig
2323
const tempTsConfig = {
2424
compilerOptions: {
25-
"outDir": `./${path.basename(complied_js_dir)}`, // Add ./ prefix for consistency
25+
"outDir": `${path.basename(complied_js_dir)}`, // Add ./ prefix for consistency
2626
"listEmittedFiles": true,
2727
"allowSyntheticDefaultImports": true,
2828
"module": "commonjs",
@@ -65,12 +65,14 @@ function generateTscCommandAndTempTsConfig(bsConfig, bstack_node_modules_path, c
6565
? `set NODE_PATH=${bstack_node_modules_path}`
6666
: `NODE_PATH="${bstack_node_modules_path}"`;
6767

68-
const tscCommand = `${setNodePath} && node "${typescript_path}" --project "${tempTsConfigPath}" && ${setNodePath} && node "${tsc_alias_path}" --project "${tempTsConfigPath}"`;
68+
const tscCommand = `${setNodePath} && node "${typescript_path}" --project "${tempTsConfigPath}" && ${setNodePath} && node "${tsc_alias_path}" --project "${tempTsConfigPath}" --verbose`;
69+
logger.info(`TypeScript compilation command: ${tscCommand}`);
6970
return { tscCommand, tempTsConfigPath };
7071
} else {
7172
// Unix/Linux/macOS: Use ; to separate commands or && to chain
7273
const nodePathPrefix = `NODE_PATH=${bsConfig.run_settings.bstack_node_modules_path}`;
73-
const tscCommand = `${nodePathPrefix} node "${typescript_path}" --project "${tempTsConfigPath}" && ${nodePathPrefix} node "${tsc_alias_path}" --project "${tempTsConfigPath}"`;
74+
const tscCommand = `${nodePathPrefix} node "${typescript_path}" --project "${tempTsConfigPath}" && ${nodePathPrefix} node "${tsc_alias_path}" --project "${tempTsConfigPath}" --verbose`;
75+
logger.info(`TypeScript compilation command: ${tscCommand}`);
7476
return { tscCommand, tempTsConfigPath };
7577
}
7678
}

0 commit comments

Comments
 (0)