Skip to content

Commit d69c646

Browse files
authored
fix: deterministic output from ts_options_validator (#3462)
The path to the program was absolute, and isn't useful. Fixes #3461
1 parent f4fca99 commit d69c646

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

nodejs/private/ts_project_options_validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function main(_a) {
127127
}
128128
// We have to write an output so that Bazel needs to execute this action.
129129
// Make the output change whenever the attributes changed.
130-
require('fs').writeFileSync(output, "\n// " + process.argv[1] + " checked attributes for " + target + "\n// allow_js: " + attrs.allow_js + "\n// composite: " + attrs.composite + "\n// declaration: " + attrs.declaration + "\n// declaration_map: " + attrs.declaration_map + "\n// incremental: " + attrs.incremental + "\n// source_map: " + attrs.source_map + "\n// emit_declaration_only: " + attrs.emit_declaration_only + "\n// ts_build_info_file: " + attrs.ts_build_info_file + "\n// preserve_jsx: " + attrs.preserve_jsx + "\n", 'utf-8');
130+
require('fs').writeFileSync(output, "\n// checked attributes for " + target + "\n// allow_js: " + attrs.allow_js + "\n// composite: " + attrs.composite + "\n// declaration: " + attrs.declaration + "\n// declaration_map: " + attrs.declaration_map + "\n// incremental: " + attrs.incremental + "\n// source_map: " + attrs.source_map + "\n// emit_declaration_only: " + attrs.emit_declaration_only + "\n// ts_build_info_file: " + attrs.ts_build_info_file + "\n// preserve_jsx: " + attrs.preserve_jsx + "\n", 'utf-8');
131131
return 0;
132132
}
133133
if (require.main === module) {

packages/typescript/internal/ts_project_options_validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function main([tsconfigPath, output, target, attrsStr]: string[]): 0|1 {
141141
// Make the output change whenever the attributes changed.
142142
require('fs').writeFileSync(
143143
output, `
144-
// ${process.argv[1]} checked attributes for ${target}
144+
// checked attributes for ${target}
145145
// allow_js: ${attrs.allow_js}
146146
// composite: ${attrs.composite}
147147
// declaration: ${attrs.declaration}

0 commit comments

Comments
 (0)