ttsc 0.31.6 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cmd/ttsc/compiler_argument_cwd_test.go +38 -38
- package/cmd/ttscserver/main.go +2 -12
- package/cmd/ttscserver/resolve_launch_uses_native_flag_authority_test.go +7 -7
- package/driver/lsp.go +4 -43
- package/driver/rewrite.go +1 -1
- package/internal/e2etrace/completion_hints.go +3 -3
- package/internal/e2etrace/completion_hints_test.go +26 -12
- package/internal/graph/build.go +5 -6
- package/internal/graph/graph.go +3 -3
- package/internal/graph/line_model.go +2 -35
- package/internal/lspserver/lsp_clean_didopen_refreshes_compiler_state_test.go +13 -36
- package/internal/lspserver/lsp_hints_refresh_ignores_a_superseded_generation_test.go +9 -3
- package/internal/lspserver/lsp_plugin.go +19 -0
- package/internal/lspserver/lsp_proxy.go +9 -129
- package/internal/lspserver/lsp_server.go +0 -8
- package/internal/lspserver/lsp_watched_file_changes_reach_compiler_caches_test.go +6 -36
- package/internal/sourceprocess/windows_target_owns_suspended_admission_test.go +5 -5
- package/lib/TtscCompiler.js +1 -1
- package/lib/TtscCompiler.js.map +1 -1
- package/lib/compiler/internal/ResidentCheckProcess.d.ts +74 -96
- package/lib/compiler/internal/ResidentCheckProcess.js +150 -335
- package/lib/compiler/internal/ResidentCheckProcess.js.map +1 -1
- package/lib/compiler/internal/ResidentCheckProcessHost.d.ts +127 -0
- package/lib/compiler/internal/ResidentCheckProcessHost.js +447 -0
- package/lib/compiler/internal/ResidentCheckProcessHost.js.map +1 -0
- package/lib/compiler/internal/ResidentCheckProcessProtocol.d.ts +64 -0
- package/lib/compiler/internal/ResidentCheckProcessProtocol.js +3 -0
- package/lib/compiler/internal/ResidentCheckProcessProtocol.js.map +1 -0
- package/lib/compiler/internal/build/BuildExecution.d.ts +103 -1
- package/lib/compiler/internal/build/BuildExecution.js +92 -12
- package/lib/compiler/internal/build/BuildExecution.js.map +1 -1
- package/lib/compiler/internal/build/ResidentCheckWatchSession.d.ts +16 -11
- package/lib/compiler/internal/build/ResidentCheckWatchSession.js +37 -21
- package/lib/compiler/internal/build/ResidentCheckWatchSession.js.map +1 -1
- package/lib/compiler/internal/build/RunBuildOptions.d.ts +6 -5
- package/lib/compiler/internal/build/TsgoArguments.js.map +1 -1
- package/lib/compiler/internal/build/WatchInputPublication.d.ts +59 -0
- package/lib/compiler/internal/build/WatchInputPublication.js +93 -0
- package/lib/compiler/internal/build/WatchInputPublication.js.map +1 -0
- package/lib/compiler/internal/build/runBuild.d.ts +29 -2
- package/lib/compiler/internal/build/runBuild.js +45 -19
- package/lib/compiler/internal/build/runBuild.js.map +1 -1
- package/lib/compiler/internal/buildNativeCompiler.d.ts +2 -0
- package/lib/compiler/internal/buildNativeCompiler.js +1 -0
- package/lib/compiler/internal/buildNativeCompiler.js.map +1 -1
- package/lib/compiler/internal/compileProjectInMemory.js +4 -2
- package/lib/compiler/internal/compileProjectInMemory.js.map +1 -1
- package/lib/compiler/internal/project/CompilerProjectSelection.d.ts +9 -8
- package/lib/compiler/internal/project/CompilerProjectSelection.js +11 -9
- package/lib/compiler/internal/project/CompilerProjectSelection.js.map +1 -1
- package/lib/compiler/internal/project/resolveOwningProjectConfig.d.ts +25 -8
- package/lib/compiler/internal/project/resolveOwningProjectConfig.js +26 -14
- package/lib/compiler/internal/project/resolveOwningProjectConfig.js.map +1 -1
- package/lib/compiler/internal/readEffectiveCompilerOptions.js +1 -1
- package/lib/compiler/internal/readEffectiveCompilerOptions.js.map +1 -1
- package/lib/compiler/internal/resolveBinary.d.ts +1 -0
- package/lib/compiler/internal/resolveBinary.js.map +1 -1
- package/lib/compiler/internal/resolveTsgo.d.ts +6 -0
- package/lib/compiler/internal/resolveTsgo.js.map +1 -1
- package/lib/compiler/internal/runSingleFileEmit.d.ts +32 -4
- package/lib/compiler/internal/runSingleFileEmit.js +124 -89
- package/lib/compiler/internal/runSingleFileEmit.js.map +1 -1
- package/lib/compiler/internal/startResidentTransform.js +8 -2
- package/lib/compiler/internal/startResidentTransform.js.map +1 -1
- package/lib/compiler/internal/transformProjectInMemory.js +11 -3
- package/lib/compiler/internal/transformProjectInMemory.js.map +1 -1
- package/lib/compiler/internal/transformProjectInWorker.d.ts +1 -1
- package/lib/compiler/internal/transformProjectInWorker.js +3 -2
- package/lib/compiler/internal/transformProjectInWorker.js.map +1 -1
- package/lib/flags/ParseOptions.d.ts +2 -2
- package/lib/internal/E2ETrace.js.map +1 -1
- package/lib/internal/OwnedNativeProcess.d.ts +2 -2
- package/lib/internal/OwnedNativeProcess.js +2 -2
- package/lib/internal/SourceNativeRetirement.d.ts +8 -7
- package/lib/internal/SourceNativeRetirement.js +19 -10
- package/lib/internal/SourceNativeRetirement.js.map +1 -1
- package/lib/internal/TtsxNodeOptions.d.ts +79 -0
- package/lib/internal/TtsxNodeOptions.js +121 -0
- package/lib/internal/TtsxNodeOptions.js.map +1 -0
- package/lib/internal/javascriptRuntimeCapabilities.js +4 -1
- package/lib/internal/javascriptRuntimeCapabilities.js.map +1 -1
- package/lib/internal/parseWindowsDirectoryCaseSensitivity.d.ts +5 -5
- package/lib/internal/parseWindowsDirectoryCaseSensitivity.js +5 -5
- package/lib/internal/pathIdentity/createCaseSensitivityObservations.d.ts +35 -0
- package/lib/internal/pathIdentity/createCaseSensitivityObservations.js +209 -0
- package/lib/internal/pathIdentity/createCaseSensitivityObservations.js.map +1 -0
- package/lib/internal/pathIdentity/createFilesystemPathIdentityContext.js +2 -143
- package/lib/internal/pathIdentity/createFilesystemPathIdentityContext.js.map +1 -1
- package/lib/internal/projectInputPathIdentity.d.ts +1 -0
- package/lib/internal/projectInputPathIdentity.js +1 -0
- package/lib/internal/projectInputPathIdentity.js.map +1 -1
- package/lib/internal/workerModuleUrl.d.ts +28 -0
- package/lib/internal/workerModuleUrl.js +40 -0
- package/lib/internal/workerModuleUrl.js.map +1 -0
- package/lib/launcher/internal/buildSingleRootProject.js +2 -1
- package/lib/launcher/internal/buildSingleRootProject.js.map +1 -1
- package/lib/launcher/internal/getCompilerVersionText.js +3 -2
- package/lib/launcher/internal/getCompilerVersionText.js.map +1 -1
- package/lib/launcher/internal/parseTtsxCLI.d.ts +5 -4
- package/lib/launcher/internal/parseTtsxCLI.js +5 -4
- package/lib/launcher/internal/parseTtsxCLI.js.map +1 -1
- package/lib/launcher/internal/prepareExecution.js +2 -1
- package/lib/launcher/internal/prepareExecution.js.map +1 -1
- package/lib/launcher/internal/resolveSingleFileOutput.d.ts +8 -9
- package/lib/launcher/internal/resolveSingleFileOutput.js +8 -9
- package/lib/launcher/internal/resolveSingleFileOutput.js.map +1 -1
- package/lib/launcher/internal/runTtsc.js +91 -41
- package/lib/launcher/internal/runTtsc.js.map +1 -1
- package/lib/launcher/internal/runTtsx.js +5 -2
- package/lib/launcher/internal/runTtsx.js.map +1 -1
- package/lib/launcher/internal/runtime/CommonJsRuntimeSource.d.ts +10 -6
- package/lib/launcher/internal/runtime/CommonJsRuntimeSource.js +11 -9
- package/lib/launcher/internal/runtime/CommonJsRuntimeSource.js.map +1 -1
- package/lib/launcher/internal/runtime/RuntimeEntrySources.d.ts +40 -0
- package/lib/launcher/internal/runtime/RuntimeEntrySources.js +57 -0
- package/lib/launcher/internal/runtime/RuntimeEntrySources.js.map +1 -0
- package/lib/launcher/internal/runtime/RuntimeProjectOwnership.d.ts +5 -4
- package/lib/launcher/internal/runtime/RuntimeProjectOwnership.js +8 -6
- package/lib/launcher/internal/runtime/RuntimeProjectOwnership.js.map +1 -1
- package/lib/launcher/internal/runtime/advertiseTypeScriptExtensions.d.ts +20 -0
- package/lib/launcher/internal/runtime/advertiseTypeScriptExtensions.js +27 -0
- package/lib/launcher/internal/runtime/advertiseTypeScriptExtensions.js.map +1 -0
- package/lib/launcher/internal/runtime/commonJsExportNames.d.ts +2 -1
- package/lib/launcher/internal/runtime/commonJsExportNames.js +2 -1
- package/lib/launcher/internal/runtime/commonJsExportNames.js.map +1 -1
- package/lib/launcher/internal/runtime/installRuntimeHooks.d.ts +5 -3
- package/lib/launcher/internal/runtime/installRuntimeHooks.js +42 -12
- package/lib/launcher/internal/runtime/installRuntimeHooks.js.map +1 -1
- package/lib/launcher/internal/runtime/resolveRuntimeCleanTargets.js +3 -1
- package/lib/launcher/internal/runtime/resolveRuntimeCleanTargets.js.map +1 -1
- package/lib/launcher/internal/watch/AsyncWatchTopology.d.ts +113 -0
- package/lib/launcher/internal/watch/AsyncWatchTopology.js +232 -0
- package/lib/launcher/internal/watch/AsyncWatchTopology.js.map +1 -0
- package/lib/launcher/internal/watch/WatchSettlement.d.ts +49 -0
- package/lib/launcher/internal/watch/WatchSettlement.js +70 -0
- package/lib/launcher/internal/watch/WatchSettlement.js.map +1 -0
- package/lib/launcher/internal/watch/WatchTopology.d.ts +103 -13
- package/lib/launcher/internal/watch/WatchTopology.js +380 -95
- package/lib/launcher/internal/watch/WatchTopology.js.map +1 -1
- package/lib/launcher/internal/watch/WatchTopologyWorkerProtocol.d.ts +121 -0
- package/lib/launcher/internal/watch/WatchTopologyWorkerProtocol.js +3 -0
- package/lib/launcher/internal/watch/WatchTopologyWorkerProtocol.js.map +1 -0
- package/lib/launcher/internal/watch/projectInputReloadEventShouldNotify.d.ts +4 -1
- package/lib/launcher/internal/watch/projectInputReloadEventShouldNotify.js +3 -2
- package/lib/launcher/internal/watch/projectInputReloadEventShouldNotify.js.map +1 -1
- package/lib/launcher/internal/watch/serveWatchTopologyWorker.d.ts +19 -0
- package/lib/launcher/internal/watch/serveWatchTopologyWorker.js +62 -0
- package/lib/launcher/internal/watch/serveWatchTopologyWorker.js.map +1 -0
- package/lib/launcher/internal/watch/watchTopologyWorker.d.ts +1 -0
- package/lib/launcher/internal/watch/watchTopologyWorker.js +22 -0
- package/lib/launcher/internal/watch/watchTopologyWorker.js.map +1 -0
- package/lib/plugin/CapabilityPluginResolver.d.ts +1 -1
- package/lib/plugin/CapabilityPluginResolver.js +3 -2
- package/lib/plugin/CapabilityPluginResolver.js.map +1 -1
- package/lib/plugin/internal/load/PluginDescriptorEvaluationCache.d.ts +15 -12
- package/lib/plugin/internal/load/PluginDescriptorEvaluationCache.js +13 -11
- package/lib/plugin/internal/load/PluginDescriptorEvaluationCache.js.map +1 -1
- package/lib/plugin/internal/load/PluginPackageResolution.d.ts +2 -2
- package/lib/plugin/internal/load/PluginPackageResolution.js +13 -7
- package/lib/plugin/internal/load/PluginPackageResolution.js.map +1 -1
- package/lib/plugin/internal/load/ProjectPluginEntries.d.ts +23 -7
- package/lib/plugin/internal/load/ProjectPluginEntries.js +36 -14
- package/lib/plugin/internal/load/ProjectPluginEntries.js.map +1 -1
- package/lib/plugin/internal/load/collectProjectHostInputs.d.ts +3 -1
- package/lib/plugin/internal/load/collectProjectHostInputs.js +5 -2
- package/lib/plugin/internal/load/collectProjectHostInputs.js.map +1 -1
- package/lib/plugin/internal/load/hasProjectPluginEntries.d.ts +3 -1
- package/lib/plugin/internal/load/hasProjectPluginEntries.js +4 -2
- package/lib/plugin/internal/load/hasProjectPluginEntries.js.map +1 -1
- package/lib/plugin/internal/load/loadProjectPlugins.d.ts +36 -5
- package/lib/plugin/internal/load/loadProjectPlugins.js +477 -421
- package/lib/plugin/internal/load/loadProjectPlugins.js.map +1 -1
- package/lib/plugin/internal/load/pluginResolutionFailure.d.ts +18 -0
- package/lib/plugin/internal/load/pluginResolutionFailure.js +32 -0
- package/lib/plugin/internal/load/pluginResolutionFailure.js.map +1 -0
- package/lib/plugin/internal/load/resolveNativeSource.js +2 -3
- package/lib/plugin/internal/load/resolveNativeSource.js.map +1 -1
- package/lib/plugin/internal/source/PluginBuildEnvironmentReadings.d.ts +1 -1
- package/lib/plugin/internal/source/PluginBuildEnvironmentReadings.js +3 -2
- package/lib/plugin/internal/source/PluginBuildEnvironmentReadings.js.map +1 -1
- package/lib/plugin/internal/source/pluginModuleReplaceDirectories.d.ts +4 -1
- package/lib/plugin/internal/source/pluginModuleReplaceDirectories.js +9 -2
- package/lib/plugin/internal/source/pluginModuleReplaceDirectories.js.map +1 -1
- package/lib/structures/ITtscCompilerContext.d.ts +12 -12
- package/lib/structures/ITtscPlugin.d.ts +7 -5
- package/lib/structures/ITtscPluginFactoryContext.d.ts +9 -8
- package/lib/structures/internal/TtscCommonOptions.d.ts +2 -2
- package/lib/structures/internal/TtscSingleFileEmitOptions.d.ts +12 -6
- package/package.json +9 -9
- package/src/TtscCompiler.ts +1 -1
- package/src/compiler/internal/ResidentCheckProcess.ts +159 -374
- package/src/compiler/internal/ResidentCheckProcessHost.ts +502 -0
- package/src/compiler/internal/ResidentCheckProcessProtocol.ts +53 -0
- package/src/compiler/internal/build/BuildExecution.ts +123 -11
- package/src/compiler/internal/build/ResidentCheckWatchSession.ts +41 -24
- package/src/compiler/internal/build/RunBuildOptions.ts +9 -5
- package/src/compiler/internal/build/TsgoArguments.ts +4 -1
- package/src/compiler/internal/build/WatchInputPublication.ts +106 -0
- package/src/compiler/internal/build/runBuild.ts +58 -34
- package/src/compiler/internal/buildNativeCompiler.ts +4 -0
- package/src/compiler/internal/compileProjectInMemory.ts +8 -2
- package/src/compiler/internal/project/CompilerProjectSelection.ts +14 -14
- package/src/compiler/internal/project/resolveOwningProjectConfig.ts +42 -16
- package/src/compiler/internal/readEffectiveCompilerOptions.ts +1 -1
- package/src/compiler/internal/resolveBinary.ts +4 -1
- package/src/compiler/internal/resolveTsgo.ts +7 -0
- package/src/compiler/internal/runSingleFileEmit.ts +145 -101
- package/src/compiler/internal/startResidentTransform.ts +9 -2
- package/src/compiler/internal/transformProjectInMemory.ts +12 -3
- package/src/compiler/internal/transformProjectInWorker.ts +10 -2
- package/src/flags/ParseOptions.ts +2 -2
- package/src/internal/E2ETrace.ts +3 -1
- package/src/internal/OwnedNativeProcess.ts +2 -2
- package/src/internal/SourceNativeRetirement.ts +42 -19
- package/src/internal/TtsxNodeOptions.ts +124 -0
- package/src/internal/javascriptRuntimeCapabilities.ts +6 -1
- package/src/internal/parseWindowsDirectoryCaseSensitivity.ts +5 -5
- package/src/internal/pathIdentity/createCaseSensitivityObservations.ts +242 -0
- package/src/internal/pathIdentity/createFilesystemPathIdentityContext.ts +2 -169
- package/src/internal/projectInputPathIdentity.ts +1 -0
- package/src/internal/workerModuleUrl.ts +34 -0
- package/src/launcher/internal/buildSingleRootProject.ts +2 -0
- package/src/launcher/internal/getCompilerVersionText.ts +3 -2
- package/src/launcher/internal/parseTtsxCLI.ts +5 -4
- package/src/launcher/internal/prepareExecution.ts +6 -1
- package/src/launcher/internal/resolveSingleFileOutput.ts +8 -9
- package/src/launcher/internal/runTtsc.ts +127 -49
- package/src/launcher/internal/runTtsx.ts +17 -8
- package/src/launcher/internal/runtime/CommonJsRuntimeSource.ts +11 -9
- package/src/launcher/internal/runtime/RuntimeEntrySources.ts +57 -0
- package/src/launcher/internal/runtime/RuntimeProjectOwnership.ts +23 -10
- package/src/launcher/internal/runtime/advertiseTypeScriptExtensions.ts +25 -0
- package/src/launcher/internal/runtime/commonJsExportNames.ts +11 -4
- package/src/launcher/internal/runtime/installRuntimeHooks.ts +62 -16
- package/src/launcher/internal/runtime/resolveRuntimeCleanTargets.ts +17 -5
- package/src/launcher/internal/watch/AsyncWatchTopology.ts +267 -0
- package/src/launcher/internal/watch/WatchSettlement.ts +67 -0
- package/src/launcher/internal/watch/WatchTopology.ts +461 -102
- package/src/launcher/internal/watch/WatchTopologyWorkerProtocol.ts +106 -0
- package/src/launcher/internal/watch/projectInputReloadEventShouldNotify.ts +14 -9
- package/src/launcher/internal/watch/serveWatchTopologyWorker.ts +75 -0
- package/src/launcher/internal/watch/watchTopologyWorker.ts +29 -0
- package/src/plugin/CapabilityPluginResolver.ts +9 -2
- package/src/plugin/internal/load/PluginDescriptorEvaluationCache.ts +17 -12
- package/src/plugin/internal/load/PluginPackageResolution.ts +14 -9
- package/src/plugin/internal/load/ProjectPluginEntries.ts +40 -15
- package/src/plugin/internal/load/collectProjectHostInputs.ts +7 -1
- package/src/plugin/internal/load/hasProjectPluginEntries.ts +8 -3
- package/src/plugin/internal/load/loadProjectPlugins.ts +683 -593
- package/src/plugin/internal/load/pluginResolutionFailure.ts +37 -0
- package/src/plugin/internal/load/resolveNativeSource.ts +10 -4
- package/src/plugin/internal/source/PluginBuildEnvironmentReadings.ts +8 -2
- package/src/plugin/internal/source/pluginModuleReplaceDirectories.ts +10 -1
- package/src/structures/ITtscCompilerContext.ts +12 -12
- package/src/structures/ITtscPlugin.ts +7 -5
- package/src/structures/ITtscPluginFactoryContext.ts +9 -8
- package/src/structures/internal/TtscCommonOptions.ts +2 -2
- package/src/structures/internal/TtscSingleFileEmitOptions.ts +22 -11
- package/internal/graphsymbols/position_helpers_follow_ecma_line_terminators_test.go +0 -78
- package/internal/graphsymbols/provider.go +0 -650
- package/internal/lspserver/lsp_symbols.go +0 -212
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compileProjectInMemory.js","sourceRoot":"","sources":["../../../src/compiler/internal/compileProjectInMemory.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,8FAA2F;AAC3F,gGAA6F;AAK7F,mEAAgE;AAChE,+CAA4C;AAC5C,+DAA4D;AAC5D,6CAA0C;AAC1C,qDAAkD;AAClD,mEAAgE;AAChE,wEAAqE;AACrE,0EAAuE;AACvE,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,gCAAuC,OAA6B;IAOlE,MAAM,GAAG,GAAG,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,IAAA,qCAAiB,EAAC;QAChC,GAAG;QACH,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ;KAC3B,CAAC,CAAC;IACH,IAAI,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;QAC3C,OAAO,yBAAyB,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAC9B,MAAM,MAAM,GAAG,IAAA,yCAAmB,EAAC;QACjC,YAAY,EAAE,OAAO,CAAC,IAAI;QAC1B,QAAQ,EACN,OAAO,CAAC,QAAQ;YAChB,uCAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,gBAAgB,CAAC;QACxD,WAAW,EAAE,IAAA,+BAAc,GAAE;KAC9B,CAAC,CAAC;IACH,MAAM,GAAG,GAAG,IAAA,yBAAW,EACrB,MAAM,EACN,CAAC,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,CAAC,EAC9D;QACE,GAAG,EAAE,OAAO,CAAC,IAAI;QACjB,GAAG
|
|
1
|
+
{"version":3,"file":"compileProjectInMemory.js","sourceRoot":"","sources":["../../../src/compiler/internal/compileProjectInMemory.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,8FAA2F;AAC3F,gGAA6F;AAK7F,mEAAgE;AAChE,+CAA4C;AAC5C,+DAA4D;AAC5D,6CAA0C;AAC1C,qDAAkD;AAClD,mEAAgE;AAChE,wEAAqE;AACrE,0EAAuE;AACvE,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,gCAAuC,OAA6B;IAOlE,MAAM,GAAG,GAAG,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,IAAA,qCAAiB,EAAC;QAChC,GAAG;QACH,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ;KAC3B,CAAC,CAAC;IACH,IAAI,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;QAC3C,OAAO,yBAA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YACrB,cAAc,EAAE,MAAM,CAAC,cAAc;SACtC,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,KAAK,IAAI,CAAC,CAAC,KAAK,YAAY,WAAW,CAAC,EAAE,CAAC;YAC9D,MAAM,KAAK,CAAC;QACd,CAAC;QACD,MAAM,IAAI,KAAK,CACb,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,IAAI,EAAE;YACvB,+CAA+C,CAClD,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -17,11 +17,11 @@ export declare namespace CompilerProjectSelection {
|
|
|
17
17
|
* Resolve one compiler project without rebasing its original argument frame.
|
|
18
18
|
*
|
|
19
19
|
* Validated visible selectors retain their positions beside original response
|
|
20
|
-
* tokens. The existing observed inspector projects those frames for
|
|
21
|
-
* the native producer still receives their original bytes and owns
|
|
22
|
-
* Positional discovery starts at the supplied file until an
|
|
23
|
-
* assignment selects another config. Explicit
|
|
24
|
-
* their independent API authority.
|
|
20
|
+
* tokens. The existing observed inspector projects those frames for
|
|
21
|
+
* selection; the native producer still receives their original bytes and owns
|
|
22
|
+
* validation. Positional discovery starts at the supplied file until an
|
|
23
|
+
* observed project assignment selects another config. Explicit
|
|
24
|
+
* resolvedProject callers retain their independent API authority.
|
|
25
25
|
* Observations are sequential and do not pin bytes across a later producer.
|
|
26
26
|
*
|
|
27
27
|
* @evidence contracts/common.md#principled-implementation Existing schema occurrence metadata and observed response inspection establish ordered canonical project assignments; one selected config is returned separately from the retained compiler argument cwd.
|
|
@@ -49,8 +49,8 @@ export declare namespace CompilerProjectSelection {
|
|
|
49
49
|
projectGuard: readonly string[];
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
|
-
* Reject a changed response generation before a consumer publishes or runs
|
|
53
|
-
* This is a sequential reobservation, not an atomic producer snapshot.
|
|
52
|
+
* Reject a changed response generation before a consumer publishes or runs
|
|
53
|
+
* it. This is a sequential reobservation, not an atomic producer snapshot.
|
|
54
54
|
*
|
|
55
55
|
* @evidence contracts/common.md#principled-implementation Current physical/content observations must match every response input admitted by this selection before its consumer proceeds.
|
|
56
56
|
* @evidence contracts/common.md#clear-and-simple-design One loop delegates actual file observation to the existing owner and propagates read failures.
|
|
@@ -65,7 +65,8 @@ export declare namespace CompilerProjectSelection {
|
|
|
65
65
|
/**
|
|
66
66
|
* Pin an established project only after the current forwarded frame is safe.
|
|
67
67
|
* A phase may filter or extend argv after context acquisition; it must retain
|
|
68
|
-
* that live payload without letting a final flag satisfy an incomplete
|
|
68
|
+
* that live payload without letting a final flag satisfy an incomplete
|
|
69
|
+
* scalar.
|
|
69
70
|
*
|
|
70
71
|
* @evidence contracts/common.md#principled-implementation An unchanged observed frame reuses its admitted guard; changed phase arguments receive the existing conservative inspection before the selected project can be pinned.
|
|
71
72
|
* @evidence contracts/common.md#clear-and-simple-design One guard reader preserves live argv and the context's selected project without duplicating option arity or response grammar.
|
|
@@ -27,11 +27,11 @@ var CompilerProjectSelection;
|
|
|
27
27
|
* Resolve one compiler project without rebasing its original argument frame.
|
|
28
28
|
*
|
|
29
29
|
* Validated visible selectors retain their positions beside original response
|
|
30
|
-
* tokens. The existing observed inspector projects those frames for
|
|
31
|
-
* the native producer still receives their original bytes and owns
|
|
32
|
-
* Positional discovery starts at the supplied file until an
|
|
33
|
-
* assignment selects another config. Explicit
|
|
34
|
-
* their independent API authority.
|
|
30
|
+
* tokens. The existing observed inspector projects those frames for
|
|
31
|
+
* selection; the native producer still receives their original bytes and owns
|
|
32
|
+
* validation. Positional discovery starts at the supplied file until an
|
|
33
|
+
* observed project assignment selects another config. Explicit
|
|
34
|
+
* resolvedProject callers retain their independent API authority.
|
|
35
35
|
* Observations are sequential and do not pin bytes across a later producer.
|
|
36
36
|
*
|
|
37
37
|
* @evidence contracts/common.md#principled-implementation Existing schema occurrence metadata and observed response inspection establish ordered canonical project assignments; one selected config is returned separately from the retained compiler argument cwd.
|
|
@@ -111,7 +111,8 @@ var CompilerProjectSelection;
|
|
|
111
111
|
if (responseFrames.length !== 0 && inspectionError === undefined) {
|
|
112
112
|
projectGuard = ["-p", project.path];
|
|
113
113
|
}
|
|
114
|
-
else if (options.resolvedProject !== undefined &&
|
|
114
|
+
else if (options.resolvedProject !== undefined &&
|
|
115
|
+
assignments.has("project")) {
|
|
115
116
|
// A reporting/selection guard must not become a missing top-level scalar
|
|
116
117
|
// operand. An unsafe native request retains its original diagnostic frame.
|
|
117
118
|
try {
|
|
@@ -135,8 +136,8 @@ var CompilerProjectSelection;
|
|
|
135
136
|
}
|
|
136
137
|
CompilerProjectSelection.read = read;
|
|
137
138
|
/**
|
|
138
|
-
* Reject a changed response generation before a consumer publishes or runs
|
|
139
|
-
* This is a sequential reobservation, not an atomic producer snapshot.
|
|
139
|
+
* Reject a changed response generation before a consumer publishes or runs
|
|
140
|
+
* it. This is a sequential reobservation, not an atomic producer snapshot.
|
|
140
141
|
*
|
|
141
142
|
* @evidence contracts/common.md#principled-implementation Current physical/content observations must match every response input admitted by this selection before its consumer proceeds.
|
|
142
143
|
* @evidence contracts/common.md#clear-and-simple-design One loop delegates actual file observation to the existing owner and propagates read failures.
|
|
@@ -156,7 +157,8 @@ var CompilerProjectSelection;
|
|
|
156
157
|
/**
|
|
157
158
|
* Pin an established project only after the current forwarded frame is safe.
|
|
158
159
|
* A phase may filter or extend argv after context acquisition; it must retain
|
|
159
|
-
* that live payload without letting a final flag satisfy an incomplete
|
|
160
|
+
* that live payload without letting a final flag satisfy an incomplete
|
|
161
|
+
* scalar.
|
|
160
162
|
*
|
|
161
163
|
* @evidence contracts/common.md#principled-implementation An unchanged observed frame reuses its admitted guard; changed phase arguments receive the existing conservative inspection before the selected project can be pinned.
|
|
162
164
|
* @evidence contracts/common.md#clear-and-simple-design One guard reader preserves live argv and the context's selected project without duplicating option arity or response grammar.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompilerProjectSelection.js","sourceRoot":"","sources":["../../../../src/compiler/internal/project/CompilerProjectSelection.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAE7B,sFAAmF;AAGnF,gFAA6E;AAC7E,2DAAwD;AACxD,qEAAkE;AAElE;;;;;;;;;;;GAWG;AACH,IAAiB,wBAAwB,CAsLxC;AAtLD,WAAiB,wBAAwB;IACvC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,SAAgB,IAAI,CAClB,OAKC;QAED,MAAM,GAAG,GAAG,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QACvD,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"CompilerProjectSelection.js","sourceRoot":"","sources":["../../../../src/compiler/internal/project/CompilerProjectSelection.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAE7B,sFAAmF;AAGnF,gFAA6E;AAC7E,2DAAwD;AACxD,qEAAkE;AAElE;;;;;;;;;;;GAWG;AACH,IAAiB,wBAAwB,CAsLxC;AAtLD,WAAiB,wBAAwB;IACvC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,SAAgB,IAAI,CAClB,OAKC;QAED,MAAM,GAAG,GAAG,mBAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QACvD,MAAM,IAAI,GACR,OAAO,CAAC,IAAI;YACZ,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAC/D,IAAI,OAAO,GAAG,OAAO,CAAC,eAAe,EAAE,QAAQ,CAAC;QAChD,IAAI,YAAqB,CAAC;QAC1B,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,IAAI,CAAC;gBACH,OAAO,GAAG,IAAA,+CAAsB,EAAC,EAAE,GAAG,OAAO,EAAE,IAAI,EAAE,CAAC,CAA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AM,KAAK,SAAS,CAAC,WAAW,CAAC,MAAM;YACnD,WAAW,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAEvE,OAAO,SAAS,CAAC,YAAY,CAAC;QAChC,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,yDAA2B,CAAC,OAAO,CACnD,WAAW,EACX,SAAS,CAAC,eAAe,CAC1B,CAAC;YACF,aAAa,CAAC,SAAS,CAAC,CAAC;YACzB,OAAO,SAAS,CAAC,YAAY,CAAC;QAChC,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;IApBe,yBAAA,SAAS,YAoBxB,CAAA;AACH,CAAC,EAtLgB,wBAAwB,aAAxB,wBAAwB,GAAxB,wBAAwB,QAsLxC"}
|
|
@@ -29,16 +29,21 @@
|
|
|
29
29
|
* realpaths and case capabilities, retaining best-effort spelling when native
|
|
30
30
|
* identity lookup is unavailable.
|
|
31
31
|
*
|
|
32
|
-
* Graph observations are shared only within this lookup
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
32
|
+
* Graph observations are shared only within this lookup, unless the caller
|
|
33
|
+
* hands in `expansions`, which keeps each config's expanded roots for as long
|
|
34
|
+
* as the caller keeps the map. Later requests can otherwise see changed
|
|
35
|
+
* configs, inherited options, directory membership or compiler inputs; a config
|
|
36
|
+
* pathname alone cannot establish that the expansion is still valid. A file
|
|
37
|
+
* created after a kept expansion was taken is still expanded for afresh. The
|
|
38
|
+
* callback observes direct config reads, not every inherited config or compiler
|
|
39
|
+
* input consulted by expansion. Synchronous compiler work has no explicit
|
|
40
|
+
* execution deadline in this operation.
|
|
38
41
|
*
|
|
39
42
|
* @param props.tsconfig - The config project discovery found for the file.
|
|
40
43
|
* @param props.file - The file whose project is asked for.
|
|
41
44
|
* @param props.binary - An explicit TypeScript-Go binary, when one was given.
|
|
45
|
+
* @param props.env - Complete environment shared by compiler selection and
|
|
46
|
+
* root-file expansion; omission inherits the current process environment.
|
|
42
47
|
* @param props.onConfig - Called with every config this reads, so a caller that
|
|
43
48
|
* fingerprints its inputs can record them.
|
|
44
49
|
* @evidence contracts/common.md#principled-implementation Successful compiler showConfig supplies root membership observations, best-effort filesystem identity compares aliases, and visited identity keys terminate repeated graph states while declaration-order DFS selects the first observed containing project. Failed observations preserve the discovered fallback without certifying membership.
|
|
@@ -47,8 +52,8 @@
|
|
|
47
52
|
* @evidence contracts/common.md#meaningful-documentation Native paragraphs state ownership order, fallback, callbacks and lookup-scoped reuse, with parameter explanations separated from acknowledgments.
|
|
48
53
|
* @evidence contracts/portability.md#os-neutral-implementation Node path operations select native config spellings, actual filesystem identity compares target and roots, and spawnNative owns executable representation rather than applying OS-name case guesses.
|
|
49
54
|
* @evidence contracts/performance.md#efficient-algorithms Each distinct observed config identity key is visited once in the DFS and receives at most one expansion plus one ctime-based retry; ctime can change for metadata updates as well as creation. Direct config reads/parsing, reference path text/stat work, delegated identity/case probes and binary selection precede or accompany compiler execution. Root-list decoding and membership scans cost their bytes and entries; DFS stack depth follows the reference chain and native recursion limits still apply. The no-reference path avoids a compiler subprocess, not config I/O.
|
|
50
|
-
* @evidence contracts/performance.md#reuse-equivalent-work The lookup reuses discovered reference edges and filesystem identity observations; visited keys prevent expansion of a repeated observed identity, while later requests rerun because paths alone cannot prove unchanged inheritance, directory membership or compiler selection. Best-effort identity cannot guarantee deduplication of every physical alias.
|
|
51
|
-
* @evidence contracts/performance.md#bound-retention-and-release-resources Identity maps, visited keys and root observations are lookup-local
|
|
55
|
+
* @evidence contracts/performance.md#reuse-equivalent-work The lookup reuses discovered reference edges and filesystem identity observations; visited keys prevent expansion of a repeated observed identity, while later requests rerun because paths alone cannot prove unchanged inheritance, directory membership or compiler selection, unless the caller keeps expansions for a lifetime its own builds already assume. Best-effort identity cannot guarantee deduplication of every physical alias.
|
|
56
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources Identity maps, visited keys and root observations are lookup-local; only a caller-supplied expansions map retains root lists, one per config, for the caller's lifetime. Synchronous expansion delegates capture cleanup to spawnNative's finally path, whose cleanup failures are suppressed; output storage and child duration have no configured ceiling here. A nonterminating child prevents the lookup from finishing, rather than being released by this graph traversal.
|
|
52
57
|
*/
|
|
53
58
|
export declare function resolveOwningProjectConfig(props: {
|
|
54
59
|
/** Absolute or invocation-relative spelling of the discovered config. */
|
|
@@ -60,6 +65,18 @@ export declare function resolveOwningProjectConfig(props: {
|
|
|
60
65
|
* compiler.
|
|
61
66
|
*/
|
|
62
67
|
binary?: string;
|
|
68
|
+
/** Complete environment for compiler selection and root-file expansion. */
|
|
69
|
+
env?: NodeJS.ProcessEnv;
|
|
63
70
|
/** Observe each directly read config, including ones with no reference edges. */
|
|
64
71
|
onConfig?: (config: string) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Expanded root files kept across lookups, by config path, for a caller whose
|
|
74
|
+
* selected builds and compiler environment already hold for the same
|
|
75
|
+
* lifetime: ttsx builds each owning project once per process
|
|
76
|
+
* (samchon/ttsc#1747).
|
|
77
|
+
*/
|
|
78
|
+
expansions?: Map<string, {
|
|
79
|
+
files: readonly string[];
|
|
80
|
+
takenAt: number;
|
|
81
|
+
}>;
|
|
65
82
|
}): string;
|
|
@@ -43,16 +43,21 @@ const selectReferencedProject_1 = require("./selectReferencedProject");
|
|
|
43
43
|
* realpaths and case capabilities, retaining best-effort spelling when native
|
|
44
44
|
* identity lookup is unavailable.
|
|
45
45
|
*
|
|
46
|
-
* Graph observations are shared only within this lookup
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
46
|
+
* Graph observations are shared only within this lookup, unless the caller
|
|
47
|
+
* hands in `expansions`, which keeps each config's expanded roots for as long
|
|
48
|
+
* as the caller keeps the map. Later requests can otherwise see changed
|
|
49
|
+
* configs, inherited options, directory membership or compiler inputs; a config
|
|
50
|
+
* pathname alone cannot establish that the expansion is still valid. A file
|
|
51
|
+
* created after a kept expansion was taken is still expanded for afresh. The
|
|
52
|
+
* callback observes direct config reads, not every inherited config or compiler
|
|
53
|
+
* input consulted by expansion. Synchronous compiler work has no explicit
|
|
54
|
+
* execution deadline in this operation.
|
|
52
55
|
*
|
|
53
56
|
* @param props.tsconfig - The config project discovery found for the file.
|
|
54
57
|
* @param props.file - The file whose project is asked for.
|
|
55
58
|
* @param props.binary - An explicit TypeScript-Go binary, when one was given.
|
|
59
|
+
* @param props.env - Complete environment shared by compiler selection and
|
|
60
|
+
* root-file expansion; omission inherits the current process environment.
|
|
56
61
|
* @param props.onConfig - Called with every config this reads, so a caller that
|
|
57
62
|
* fingerprints its inputs can record them.
|
|
58
63
|
* @evidence contracts/common.md#principled-implementation Successful compiler showConfig supplies root membership observations, best-effort filesystem identity compares aliases, and visited identity keys terminate repeated graph states while declaration-order DFS selects the first observed containing project. Failed observations preserve the discovered fallback without certifying membership.
|
|
@@ -61,8 +66,8 @@ const selectReferencedProject_1 = require("./selectReferencedProject");
|
|
|
61
66
|
* @evidence contracts/common.md#meaningful-documentation Native paragraphs state ownership order, fallback, callbacks and lookup-scoped reuse, with parameter explanations separated from acknowledgments.
|
|
62
67
|
* @evidence contracts/portability.md#os-neutral-implementation Node path operations select native config spellings, actual filesystem identity compares target and roots, and spawnNative owns executable representation rather than applying OS-name case guesses.
|
|
63
68
|
* @evidence contracts/performance.md#efficient-algorithms Each distinct observed config identity key is visited once in the DFS and receives at most one expansion plus one ctime-based retry; ctime can change for metadata updates as well as creation. Direct config reads/parsing, reference path text/stat work, delegated identity/case probes and binary selection precede or accompany compiler execution. Root-list decoding and membership scans cost their bytes and entries; DFS stack depth follows the reference chain and native recursion limits still apply. The no-reference path avoids a compiler subprocess, not config I/O.
|
|
64
|
-
* @evidence contracts/performance.md#reuse-equivalent-work The lookup reuses discovered reference edges and filesystem identity observations; visited keys prevent expansion of a repeated observed identity, while later requests rerun because paths alone cannot prove unchanged inheritance, directory membership or compiler selection. Best-effort identity cannot guarantee deduplication of every physical alias.
|
|
65
|
-
* @evidence contracts/performance.md#bound-retention-and-release-resources Identity maps, visited keys and root observations are lookup-local
|
|
69
|
+
* @evidence contracts/performance.md#reuse-equivalent-work The lookup reuses discovered reference edges and filesystem identity observations; visited keys prevent expansion of a repeated observed identity, while later requests rerun because paths alone cannot prove unchanged inheritance, directory membership or compiler selection, unless the caller keeps expansions for a lifetime its own builds already assume. Best-effort identity cannot guarantee deduplication of every physical alias.
|
|
70
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources Identity maps, visited keys and root observations are lookup-local; only a caller-supplied expansions map retains root lists, one per config, for the caller's lifetime. Synchronous expansion delegates capture cleanup to spawnNative's finally path, whose cleanup failures are suppressed; output storage and child duration have no configured ceiling here. A nonterminating child prevents the lookup from finishing, rather than being released by this graph traversal.
|
|
66
71
|
*/
|
|
67
72
|
function resolveOwningProjectConfig(props) {
|
|
68
73
|
const discovered = node_path_1.default.resolve(props.tsconfig);
|
|
@@ -96,13 +101,19 @@ function resolveOwningProjectConfig(props) {
|
|
|
96
101
|
* root observations.
|
|
97
102
|
*/
|
|
98
103
|
function contains(config) {
|
|
99
|
-
const roots =
|
|
104
|
+
const roots = props.expansions?.get(config) ?? expand(config);
|
|
100
105
|
if (listed(roots))
|
|
101
106
|
return true;
|
|
102
107
|
// Recent ctime permits one retry after a miss; it can reflect a metadata
|
|
103
|
-
// change rather than creation and is not an atomic freshness proof.
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
// change rather than creation and is not an atomic freshness proof. A kept
|
|
109
|
+
// expansion taken before the file appeared is retried the same way.
|
|
110
|
+
return createdSince(props.file, roots.takenAt) && listed(expand(config));
|
|
111
|
+
}
|
|
112
|
+
/** Expand `config` now, and keep the expansion when the caller asked to. */
|
|
113
|
+
function expand(config) {
|
|
114
|
+
const roots = rootFiles(config, props.binary, props.env);
|
|
115
|
+
props.expansions?.set(config, roots);
|
|
116
|
+
return roots;
|
|
106
117
|
}
|
|
107
118
|
return (0, selectReferencedProject_1.selectReferencedProject)(discovered, discoveredReferences, {
|
|
108
119
|
identity: (config) => identities.resolve(config).key,
|
|
@@ -169,14 +180,15 @@ function readReferences(config, onConfig) {
|
|
|
169
180
|
* include approximation or permanent failed answer substitutes for compiler
|
|
170
181
|
* behavior.
|
|
171
182
|
*/
|
|
172
|
-
function rootFiles(config, binary) {
|
|
183
|
+
function rootFiles(config, binary, env) {
|
|
173
184
|
const takenAt = Date.now();
|
|
174
185
|
let files = [];
|
|
175
186
|
try {
|
|
176
187
|
const directory = node_path_1.default.dirname(config);
|
|
177
|
-
const tsgo = (0, resolveTsgo_1.resolveTsgo)({ binary, cwd: directory });
|
|
188
|
+
const tsgo = (0, resolveTsgo_1.resolveTsgo)({ binary, cwd: directory, env });
|
|
178
189
|
const result = (0, spawnNative_1.spawnNative)(tsgo.binary, ["-p", config, "--showConfig"], {
|
|
179
190
|
cwd: directory,
|
|
191
|
+
env,
|
|
180
192
|
encoding: "utf8",
|
|
181
193
|
});
|
|
182
194
|
if (result.status === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveOwningProjectConfig.js","sourceRoot":"","sources":["../../../../src/compiler/internal/project/resolveOwningProjectConfig.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,4HAAyH;AACzH,8CAA2C;AAC3C,gDAA6C;AAC7C,gDAA6C;AAC7C,mDAAgD;AAChD,uEAAoE;AAEpE
|
|
1
|
+
{"version":3,"file":"resolveOwningProjectConfig.js","sourceRoot":"","sources":["../../../../src/compiler/internal/project/resolveOwningProjectConfig.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,4HAAyH;AACzH,8CAA2C;AAC3C,gDAA6C;AAC7C,gDAA6C;AAC7C,mDAAgD;AAChD,uEAAoE;AAEpE;;;;;;;;;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IAAI,CAAC,CAAC,CAAC;YAClD,CAAC;QACH,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,KAAK,GAAG,EAAE,CAAC;IACb,CAAC;IACD,MAAM,KAAK,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;IACjC,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAS,YAAY,CAAC,IAAY,EAAE,IAAY;IAC9C,IAAI,CAAC;QACH,OAAO,iBAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,IAAI,IAAI,CAAC;IAC3C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,WAAW,CAAC,QAAgB;IACnC,IAAI,CAAC;QACH,OAAO,iBAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,MAAM,CAAC,QAAgB;IAC9B,IAAI,CAAC;QACH,OAAO,iBAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;IACxC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -77,7 +77,7 @@ function readEffectiveCompilerOptions(project, passthrough = [], binary, env, co
|
|
|
77
77
|
catch {
|
|
78
78
|
return null;
|
|
79
79
|
}
|
|
80
|
-
const tsgo = (0, resolveTsgo_1.resolveTsgo)({ cwd: project.root, binary });
|
|
80
|
+
const tsgo = (0, resolveTsgo_1.resolveTsgo)({ cwd: project.root, binary, env });
|
|
81
81
|
const result = (0, spawnNative_1.spawnNative)(tsgo.binary, ["-p", project.path, ...passthrough, "-p", project.path, "--showConfig"], { cwd: compilerArgsCwd, env, encoding: "utf8" });
|
|
82
82
|
if (result.status !== 0)
|
|
83
83
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readEffectiveCompilerOptions.js","sourceRoot":"","sources":["../../../src/compiler/internal/readEffectiveCompilerOptions.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,uFAAoF;AACpF,mFAAgF;AAEhF,+EAA4E;AAC5E,6CAA0C;AAC1C,+CAA4C;AAC5C,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,sCACE,OAAiC,EACjC,WAAW,GAAsB,EAAE,EACnC,MAAe,EACf,GAAuB,EACvB,eAAe,GAAW,OAAO,CAAC,IAAI;IAEtC,MAAM,SAAS,GAAG,IAAA,mDAAwB,EAAC,WAAW,CAAC,CAAC;IACxD,IAAI,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC;IACnC,IAAI,KAA0C,CAAC;IAC/C,IAAI,SAAS,CAAC,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzC,IAAI,YAAyC,CAAC;QAC9C,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,yDAA2B,CAAC,OAAO,CACnD,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,WAAW,CAAC,EACpC,eAAe,CAChB,CAAC;YACF,YAAY,GAAG,SAAS,CAAC,YAAY,CAAC;YACtC,WAAW,GAAG,IAAA,mDAAwB,EAAC,SAAS,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;YAC9D,KAAK,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,SAAS,CAAC,YAAY;gBACtD,IAAI,yDAA2B,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,WAAW;oBACpE,OAAO,IAAI,CAAC;QAClB,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,IAAI,GAAG,IAAA,yBAAW,EAAC,EAAE,GAAG,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"readEffectiveCompilerOptions.js","sourceRoot":"","sources":["../../../src/compiler/internal/readEffectiveCompilerOptions.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,uFAAoF;AACpF,mFAAgF;AAEhF,+EAA4E;AAC5E,6CAA0C;AAC1C,+CAA4C;AAC5C,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,sCACE,OAAiC,EACjC,WAAW,GAAsB,EAAE,EACnC,MAAe,EACf,GAAuB,EACvB,eAAe,GAAW,OAAO,CAAC,IAAI;IAEtC,MAAM,SAAS,GAAG,IAAA,mDAAwB,EAAC,WAAW,CAAC,CAAC;IACxD,IAAI,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC;IACnC,IAAI,KAA0C,CAAC;IAC/C,IAAI,SAAS,CAAC,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzC,IAAI,YAAyC,CAAC;QAC9C,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,yDAA2B,CAAC,OAAO,CACnD,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,WAAW,CAAC,EACpC,eAAe,CAChB,CAAC;YACF,YAAY,GAAG,SAAS,CAAC,YAAY,CAAC;YACtC,WAAW,GAAG,IAAA,mDAAwB,EAAC,SAAS,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;YAC9D,KAAK,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,SAAS,CAAC,YAAY;gBACtD,IAAI,yDAA2B,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,WAAW;oBACpE,OAAO,IAAI,CAAC;QAClB,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,IAAI,GAAG,IAAA,y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C,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC;gBACxD,OAAO,KAAK,CAAC,SAAS,CAAC,CAAC;YAC1B,oEAAoE;YACpE,uEAAuE;YACvE,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS;gBAAE,OAAO,SAAS,CAAC;YAC/C,IAAI,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC;gBAAE,OAAO,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAClE,MAAM,UAAU,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;YAC9C,OAAO,OAAO,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;QAClE,CAAC;QACD,IAAI,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC;YAAE,OAAO,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAClE,MAAM,UAAU,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;QAC9C,OAAO,IAAI,EAAE,IAAI,KAAK,MAAM,IAAI,OAAO,UAAU,KAAK,QAAQ;YAC5D,CAAC,CAAC,IAAA,uDAA0B,EAAC,UAAU,EAAE,MAAM,CAAC;YAChD,CAAC,CAAC,UAAU,CAAC;IACjB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -24,5 +24,6 @@
|
|
|
24
24
|
* @evidenceExclude contracts/performance.md#bound-retention-and-release-resources Resolution owns no persistent map, descriptor or task and returns only the selected path spelling.
|
|
25
25
|
*/
|
|
26
26
|
export declare function resolveBinary(opts?: {
|
|
27
|
+
/** Complete selection environment; omission reads the current process. */
|
|
27
28
|
env?: NodeJS.ProcessEnv;
|
|
28
29
|
}): string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveBinary.js","sourceRoot":"","sources":["../../../src/compiler/internal/resolveBinary.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,wEAAqE;AAErE;;;;;;;;;;;;;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CAAC,CAAC,CAAC,IAAI,CAAC;AACrD,CAAC;AAED;;;GAGG;AACH,SAAS,cAAc;IACrB,MAAM,SAAS,GAAG,mBAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACtD,OAAO,iBAAE,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,IAAI,iBAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -33,6 +33,12 @@ export declare function resolveTsgo(opts?: {
|
|
|
33
33
|
binary?: string;
|
|
34
34
|
/** Directory from which to discover `typescript`. */
|
|
35
35
|
cwd?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Complete environment for executable selection; omission reads the current
|
|
38
|
+
* process environment. Public compiler owners merge caller overrides before
|
|
39
|
+
* invoking this resolver, retaining their original overlay for channel
|
|
40
|
+
* ownership.
|
|
41
|
+
*/
|
|
36
42
|
env?: NodeJS.ProcessEnv;
|
|
37
43
|
/**
|
|
38
44
|
* Absolute filename used to anchor fallback resolution when the package is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveTsgo.js","sourceRoot":"","sources":["../../../src/compiler/internal/resolveTsgo.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,6CAA4C;AAC5C,0DAA6B;AAE7B,wEAAqE;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBACE,IAAI,
|
|
1
|
+
{"version":3,"file":"resolveTsgo.js","sourceRoot":"","sources":["../../../src/compiler/internal/resolveTsgo.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,6CAA4C;AAC5C,0DAA6B;AAE7B,wEAAqE;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBACE,IAAI,GAoBA,EAAE;IAEN,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;IACpC,M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P,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,iEAAiE;AACjE,SAAS,eAAe,CAAC,IAAY;IACnC,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAA4B,CAAC;AAC9E,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TtscSingleFileEmitOptions } from "../../structures/internal/TtscSingleFileEmitOptions";
|
|
2
|
+
import { WatchInputPublication } from "./build/WatchInputPublication";
|
|
2
3
|
import { CompilerProjectSelection } from "./project/CompilerProjectSelection";
|
|
3
4
|
/**
|
|
4
5
|
* Emit one source file by building its project into a temporary directory.
|
|
@@ -11,10 +12,12 @@ import { CompilerProjectSelection } from "./project/CompilerProjectSelection";
|
|
|
11
12
|
* failure propagates on success and is aggregated with an earlier operation
|
|
12
13
|
* failure rather than replacing it.
|
|
13
14
|
*
|
|
14
|
-
* A launcher-supplied selection shares its project and original compiler
|
|
15
|
-
* cwd with public output planning. Response freshness is checked
|
|
16
|
-
* work and publication; these sequential checks do not pin bytes
|
|
17
|
-
* Callers without that record retain explicit config/nearest-file
|
|
15
|
+
* A launcher-supplied selection shares its project and original compiler
|
|
16
|
+
* argument cwd with public output planning. Response freshness is checked
|
|
17
|
+
* before native work and publication; these sequential checks do not pin bytes
|
|
18
|
+
* atomically. Callers without that record retain explicit config/nearest-file
|
|
19
|
+
* discovery. Watch-input handlers must complete synchronously; use
|
|
20
|
+
* {@link runSingleFileEmit.async} for promise-returning handlers.
|
|
18
21
|
*
|
|
19
22
|
* @returns The transformed JavaScript source text.
|
|
20
23
|
* @throws When the build exits non-zero, proves no JavaScript for the requested
|
|
@@ -31,3 +34,28 @@ import { CompilerProjectSelection } from "./project/CompilerProjectSelection";
|
|
|
31
34
|
* @evidence contracts/portability.md#os-neutral-implementation Native paths and filesystem identities use Node APIs, child execution uses argument arrays, and optional output targets resolve from the invocation cwd on each supported host.
|
|
32
35
|
*/
|
|
33
36
|
export declare function runSingleFileEmit(options: TtscSingleFileEmitOptions, selection?: ReturnType<typeof CompilerProjectSelection.read>): string;
|
|
37
|
+
/**
|
|
38
|
+
* Keep synchronous and awaited single-file emission on one temporary lifetime.
|
|
39
|
+
*
|
|
40
|
+
* @evidence contracts/common.md#principled-implementation Both entries share project/root selection, producing build, response freshness, provenance lookup and temporary-output cleanup; awaited completion joins every nested publication before compilation and output selection.
|
|
41
|
+
* @evidence contracts/common.md#clear-and-simple-design One generator owns project emission, optional public output and cleanup for both completion modes; the companion adds a runner without another output-selection implementation.
|
|
42
|
+
* @evidence contracts/common.md#prohibited-implementation-shortcuts Pending registration cannot authorize a build, and rejected publication reaches the same temporary cleanup path. Completion mode preserves response checks and provenance instead of reconstructing source ownership from filenames.
|
|
43
|
+
* @evidence contracts/common.md#meaningful-documentation Each entry states completion mode and the shared temporary lifetime; sequence prose requires rejection delivery into its finally path, while the primary entry documents output selection and cleanup failures.
|
|
44
|
+
* @evidence contracts/portability.md#os-neutral-implementation The shared sequence retains existing native source/output identity, cwd bases and private-directory handling across suspension without another native boundary.
|
|
45
|
+
* @evidence contracts/performance.md#efficient-algorithms One project selection and full-project build serve one provenance lookup; each handoff is awaited once with no additional source or output traversal.
|
|
46
|
+
* @evidenceExclude contracts/performance.md#reuse-equivalent-work Each sequence owns fresh compiler effects rather than an output cache or shared generation; higher-level owners decide equivalent build reuse.
|
|
47
|
+
* @evidence contracts/performance.md#bound-retention-and-release-resources One accepted private output directory spans nested handoff and build work, and the existing finally path removes it on success or failure and preserves cleanup error aggregation.
|
|
48
|
+
*/
|
|
49
|
+
export declare namespace runSingleFileEmit {
|
|
50
|
+
/**
|
|
51
|
+
* Await watch-input registration before emitting and selecting one source's
|
|
52
|
+
* JavaScript. Rejected publication follows the same temporary cleanup path.
|
|
53
|
+
*/
|
|
54
|
+
function async(options: TtscSingleFileEmitOptions, selection?: ReturnType<typeof CompilerProjectSelection.read>): Promise<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Emit through one selected project while suspending at watch handoffs.
|
|
57
|
+
* Internal completion runners must deliver rejection into this sequence so
|
|
58
|
+
* its finally block retains temporary-output cleanup ownership.
|
|
59
|
+
*/
|
|
60
|
+
function steps(options: TtscSingleFileEmitOptions, selection?: ReturnType<typeof CompilerProjectSelection.read>): WatchInputPublication.Sequence<string>;
|
|
61
|
+
}
|