From 18542783b2f34765ee79860d4dca5707c70f1979 Mon Sep 17 00:00:00 2001 From: James Judd Date: Wed, 22 Oct 2025 10:39:42 -0600 Subject: [PATCH] fix(typescript): replace absolute path with basename The absolute path is non-deterministic and the basename is deterministic. --- packages/typescript/internal/ts_project_options_validator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/typescript/internal/ts_project_options_validator.ts b/packages/typescript/internal/ts_project_options_validator.ts index 7166cc04ed..ba0b022165 100644 --- a/packages/typescript/internal/ts_project_options_validator.ts +++ b/packages/typescript/internal/ts_project_options_validator.ts @@ -1,4 +1,4 @@ -import {relative} from 'path'; +import {basename, relative} from 'path'; import * as ts from 'typescript'; const diagnosticsHost: ts.FormatDiagnosticsHost = { @@ -119,7 +119,7 @@ function main([tsconfigPath, output, target, attrsStr]: string[]): 0|1 { // Make the output change whenever the attributes changed. require('fs').writeFileSync( output, ` -// ${process.argv[1]} checked attributes for ${target} +// ${basename(process.argv[1])} checked attributes for ${target} // allow_js: ${attrs.allow_js} // composite: ${attrs.composite} // declaration: ${attrs.declaration}