mirror of
https://gitee.com/openharmony/third_party_typescript
synced 2025-02-17 10:10:41 +00:00
Fix incremental building failure when package with sourceRoots changes version
Issue: Fix incremental building failure when package with sourceRoots changes version Test: npm run test, application test Signed-off-by: huangyu <huangyu76@huawei.com> Change-Id: I9be40caacf90eddeb942226d61ab4644bb7c95d7
This commit is contained in:
parent
7441519282
commit
e0fe905754
@ -142190,6 +142190,10 @@ var ts;
|
||||
return str + "}";
|
||||
}
|
||||
function getKeyForCompilationSettings(settings) {
|
||||
if (settings.skipPathsInKeyForCompilationSettings) {
|
||||
return ts.sourceFileAffectingCompilerOptions.map(function (option) { return (option.name !== "paths" ? compilerOptionValueToString(ts.getCompilerOptionValue(settings, option)) : "paths"); }).join("|") +
|
||||
(settings.pathsBasePath ? "|".concat(settings.pathsBasePath) : undefined);
|
||||
}
|
||||
return ts.sourceFileAffectingCompilerOptions.map(function (option) { return compilerOptionValueToString(ts.getCompilerOptionValue(settings, option)); }).join("|") + (settings.pathsBasePath ? "|".concat(settings.pathsBasePath) : undefined);
|
||||
}
|
||||
function getDocumentRegistryBucketKeyWithMode(key, mode) {
|
||||
|
1
lib/tsserverlibrary.d.ts
vendored
1
lib/tsserverlibrary.d.ts
vendored
@ -3169,6 +3169,7 @@ declare namespace ts {
|
||||
emitNodeModulesFiles?: boolean;
|
||||
etsLoaderPath?: string;
|
||||
tsImportSendableEnable?: boolean;
|
||||
skipPathsInKeyForCompilationSettings?: boolean;
|
||||
[option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
|
||||
}
|
||||
export interface EtsOptions {
|
||||
|
@ -142609,6 +142609,10 @@ var ts;
|
||||
return str + "}";
|
||||
}
|
||||
function getKeyForCompilationSettings(settings) {
|
||||
if (settings.skipPathsInKeyForCompilationSettings) {
|
||||
return ts.sourceFileAffectingCompilerOptions.map(function (option) { return (option.name !== "paths" ? compilerOptionValueToString(ts.getCompilerOptionValue(settings, option)) : "paths"); }).join("|") +
|
||||
(settings.pathsBasePath ? "|".concat(settings.pathsBasePath) : undefined);
|
||||
}
|
||||
return ts.sourceFileAffectingCompilerOptions.map(function (option) { return compilerOptionValueToString(ts.getCompilerOptionValue(settings, option)); }).join("|") + (settings.pathsBasePath ? "|".concat(settings.pathsBasePath) : undefined);
|
||||
}
|
||||
function getDocumentRegistryBucketKeyWithMode(key, mode) {
|
||||
|
1
lib/typescript.d.ts
vendored
1
lib/typescript.d.ts
vendored
@ -3169,6 +3169,7 @@ declare namespace ts {
|
||||
emitNodeModulesFiles?: boolean;
|
||||
etsLoaderPath?: string;
|
||||
tsImportSendableEnable?: boolean;
|
||||
skipPathsInKeyForCompilationSettings?: boolean;
|
||||
[option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
|
||||
}
|
||||
export interface EtsOptions {
|
||||
|
@ -142600,6 +142600,10 @@ var ts;
|
||||
return str + "}";
|
||||
}
|
||||
function getKeyForCompilationSettings(settings) {
|
||||
if (settings.skipPathsInKeyForCompilationSettings) {
|
||||
return ts.sourceFileAffectingCompilerOptions.map(function (option) { return (option.name !== "paths" ? compilerOptionValueToString(ts.getCompilerOptionValue(settings, option)) : "paths"); }).join("|") +
|
||||
(settings.pathsBasePath ? "|".concat(settings.pathsBasePath) : undefined);
|
||||
}
|
||||
return ts.sourceFileAffectingCompilerOptions.map(function (option) { return compilerOptionValueToString(ts.getCompilerOptionValue(settings, option)); }).join("|") + (settings.pathsBasePath ? "|".concat(settings.pathsBasePath) : undefined);
|
||||
}
|
||||
function getDocumentRegistryBucketKeyWithMode(key, mode) {
|
||||
|
1
lib/typescriptServices.d.ts
vendored
1
lib/typescriptServices.d.ts
vendored
@ -3169,6 +3169,7 @@ declare namespace ts {
|
||||
emitNodeModulesFiles?: boolean;
|
||||
etsLoaderPath?: string;
|
||||
tsImportSendableEnable?: boolean;
|
||||
skipPathsInKeyForCompilationSettings?: boolean;
|
||||
[option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
|
||||
}
|
||||
export interface EtsOptions {
|
||||
|
@ -142600,6 +142600,10 @@ var ts;
|
||||
return str + "}";
|
||||
}
|
||||
function getKeyForCompilationSettings(settings) {
|
||||
if (settings.skipPathsInKeyForCompilationSettings) {
|
||||
return ts.sourceFileAffectingCompilerOptions.map(function (option) { return (option.name !== "paths" ? compilerOptionValueToString(ts.getCompilerOptionValue(settings, option)) : "paths"); }).join("|") +
|
||||
(settings.pathsBasePath ? "|".concat(settings.pathsBasePath) : undefined);
|
||||
}
|
||||
return ts.sourceFileAffectingCompilerOptions.map(function (option) { return compilerOptionValueToString(ts.getCompilerOptionValue(settings, option)); }).join("|") + (settings.pathsBasePath ? "|".concat(settings.pathsBasePath) : undefined);
|
||||
}
|
||||
function getDocumentRegistryBucketKeyWithMode(key, mode) {
|
||||
|
@ -6751,6 +6751,7 @@ namespace ts {
|
||||
emitNodeModulesFiles?: boolean;
|
||||
etsLoaderPath?: string;
|
||||
tsImportSendableEnable?: boolean;
|
||||
skipPathsInKeyForCompilationSettings?: boolean;
|
||||
[option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
|
||||
}
|
||||
|
||||
|
@ -391,6 +391,11 @@ namespace ts {
|
||||
}
|
||||
|
||||
function getKeyForCompilationSettings(settings: CompilerOptions): DocumentRegistryBucketKey {
|
||||
if (settings.skipPathsInKeyForCompilationSettings) {
|
||||
return sourceFileAffectingCompilerOptions.map(
|
||||
option => (option.name !== "paths" ? compilerOptionValueToString(getCompilerOptionValue(settings, option)) : "paths")).join("|") +
|
||||
(settings.pathsBasePath ? `|${settings.pathsBasePath}` : undefined) as DocumentRegistryBucketKey;
|
||||
}
|
||||
return sourceFileAffectingCompilerOptions.map(option => compilerOptionValueToString(getCompilerOptionValue(settings, option))).join("|") + (settings.pathsBasePath ? `|${settings.pathsBasePath}` : undefined) as DocumentRegistryBucketKey;
|
||||
}
|
||||
|
||||
|
@ -3169,6 +3169,7 @@ declare namespace ts {
|
||||
emitNodeModulesFiles?: boolean;
|
||||
etsLoaderPath?: string;
|
||||
tsImportSendableEnable?: boolean;
|
||||
skipPathsInKeyForCompilationSettings?: boolean;
|
||||
[option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
|
||||
}
|
||||
export interface EtsOptions {
|
||||
|
@ -3169,6 +3169,7 @@ declare namespace ts {
|
||||
emitNodeModulesFiles?: boolean;
|
||||
etsLoaderPath?: string;
|
||||
tsImportSendableEnable?: boolean;
|
||||
skipPathsInKeyForCompilationSettings?: boolean;
|
||||
[option: string]: CompilerOptionsValue | TsConfigSourceFile | undefined;
|
||||
}
|
||||
export interface EtsOptions {
|
||||
|
Loading…
x
Reference in New Issue
Block a user