mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-18 12:21:37 -06:00
Simplify verification of emit file paths using utility to iterate over each emit file
This also makes sure we dont emit --out or --outFile if there are no files that can go in that file(non module and non declaration files)
This commit is contained in:
parent
a0318c7b63
commit
c6d54d6ae6
@ -1258,46 +1258,31 @@ namespace ts {
|
||||
|
||||
if (!options.noEmit) {
|
||||
let emitHost = getEmitHost();
|
||||
let emitFilesSeen: Map<SourceFile[]> = {};
|
||||
let emitFilesSeen: Map<boolean> = {};
|
||||
forEachExpectedEmitFile(emitHost, (emitFileNames, sourceFiles, isBundledEmit) => {
|
||||
verifyEmitFilePath(emitFileNames.jsFilePath, emitFilesSeen);
|
||||
verifyEmitFilePath(emitFileNames.declarationFilePath, emitFilesSeen);
|
||||
});
|
||||
}
|
||||
|
||||
// Build map of files seen
|
||||
for (let file of files) {
|
||||
let { jsFilePath, declarationFilePath } = getEmitFileNames(file, emitHost);
|
||||
if (jsFilePath) {
|
||||
let filesEmittingJsFilePath = lookUp(emitFilesSeen, jsFilePath);
|
||||
if (!filesEmittingJsFilePath) {
|
||||
emitFilesSeen[jsFilePath] = [file];
|
||||
if (declarationFilePath) {
|
||||
emitFilesSeen[declarationFilePath] = [file];
|
||||
}
|
||||
}
|
||||
else {
|
||||
filesEmittingJsFilePath.push(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Verify that all the emit files are unique and dont overwrite input files
|
||||
forEachKey(emitFilesSeen, emitFilePath => {
|
||||
// Verify that all the emit files are unique and dont overwrite input files
|
||||
function verifyEmitFilePath(emitFilePath: string, emitFilesSeen: Map<boolean>) {
|
||||
if (emitFilePath) {
|
||||
// Report error if the output overwrites input file
|
||||
if (hasFile(files, emitFilePath)) {
|
||||
createEmitBlockingDiagnostics(emitFilePath, Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file);
|
||||
}
|
||||
|
||||
// Report error if multiple files write into same file (except if specified by --out or --outFile)
|
||||
if (emitFilePath !== (options.outFile || options.out)) {
|
||||
// Not --out or --outFile emit, There should be single file emitting to this file
|
||||
if (emitFilesSeen[emitFilePath].length > 1) {
|
||||
createEmitBlockingDiagnostics(emitFilePath, Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files);
|
||||
}
|
||||
// Report error if multiple files write into same file
|
||||
let filesEmittingJsFilePath = lookUp(emitFilesSeen, emitFilePath);
|
||||
if (filesEmittingJsFilePath) {
|
||||
// Already seen the same emit file - report error
|
||||
createEmitBlockingDiagnostics(emitFilePath, Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files);
|
||||
}
|
||||
else {
|
||||
// --out or --outFile, error if there exist file emitting to single file colliding with --out
|
||||
if (forEach(emitFilesSeen[emitFilePath], sourceFile => shouldEmitToOwnFile(sourceFile, options))) {
|
||||
createEmitBlockingDiagnostics(emitFilePath, Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files);
|
||||
}
|
||||
emitFilesSeen[emitFilePath] = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1826,8 +1826,6 @@ namespace ts {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
function getSourceMapFilePath(jsFilePath: string, options: CompilerOptions) {
|
||||
return options.sourceMap ? jsFilePath + ".map" : undefined;
|
||||
}
|
||||
@ -1841,30 +1839,37 @@ namespace ts {
|
||||
targetSourceFile?: SourceFile) {
|
||||
let options = host.getCompilerOptions();
|
||||
if (targetSourceFile === undefined) {
|
||||
// Emit on each source file
|
||||
forEach(host.getSourceFiles(), sourceFile => {
|
||||
if (shouldEmitToOwnFile(sourceFile, options)) {
|
||||
action(getEmitFileNames(sourceFile, host), [sourceFile], /*isBundledEmit*/false);
|
||||
onSingleFileEmit(host, sourceFile);
|
||||
}
|
||||
});
|
||||
|
||||
if (options.outFile || options.out) {
|
||||
action(getBundledEmitFileNames(options), getBundledEmitSourceFiles(host), /*isBundledEmit*/true);
|
||||
onBundledEmit(host);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// targetSourceFile is specified (e.g calling emitter from language service or calling getSemanticDiagnostic from language service)
|
||||
if (shouldEmitToOwnFile(targetSourceFile, options)) {
|
||||
action(getEmitFileNames(targetSourceFile, host), [targetSourceFile], /*isBundledEmit*/false);
|
||||
onSingleFileEmit(host, targetSourceFile);
|
||||
}
|
||||
else if (!isDeclarationFile(targetSourceFile) &&
|
||||
(options.outFile || options.out)) {
|
||||
action(getBundledEmitFileNames(options), getBundledEmitSourceFiles(host), /*isBundledEmit*/true);
|
||||
onBundledEmit(host);
|
||||
}
|
||||
}
|
||||
|
||||
function getBundledEmitSourceFiles(host: EmitHost): SourceFile[] {
|
||||
return filter(host.getSourceFiles(),
|
||||
function onSingleFileEmit(host: EmitHost, sourceFile: SourceFile) {
|
||||
action(getEmitFileNames(sourceFile, host), [sourceFile], /*isBundledEmit*/false);
|
||||
}
|
||||
|
||||
function onBundledEmit(host: EmitHost) {
|
||||
let bundledSources = filter(host.getSourceFiles(),
|
||||
sourceFile => !shouldEmitToOwnFile(sourceFile, host.getCompilerOptions()) && !isDeclarationFile(sourceFile));
|
||||
if (bundledSources.length) {
|
||||
action(getBundledEmitFileNames(options), bundledSources, /*isBundledEmit*/true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -25,9 +25,6 @@
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -567,10 +567,4 @@ sourceFile:../../test.ts
|
||||
7 >Emitted(15, 27) Source(14, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>});
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -25,9 +25,6 @@
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -611,10 +611,4 @@ sourceFile:../../test.ts
|
||||
6 >Emitted(16, 22) Source(14, 25) + SourceIndex(0)
|
||||
7 >Emitted(16, 23) Source(14, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: /tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/test.js.map
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_multifolder/mapFiles/outputdir_module_multifolder/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=/tests/cases/projects/outputdir_module_simple/mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -21,9 +21,6 @@
|
||||
"m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -369,10 +369,4 @@ sourceFile:../test.ts
|
||||
7 >Emitted(14, 27) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>});
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_simple/mapFiles/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: /tests/cases/projects/outputdir_module_simple/mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_simple/mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=/tests/cases/projects/outputdir_module_simple/mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -21,9 +21,6 @@
|
||||
"m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -390,10 +390,4 @@ sourceFile:../test.ts
|
||||
6 >Emitted(14, 22) Source(12, 25) + SourceIndex(0)
|
||||
7 >Emitted(14, 23) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_simple/mapFiles/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: /tests/cases/projects/outputdir_module_simple/mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_simple/mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=/tests/cases/projects/outputdir_module_subfolder/mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -21,9 +21,6 @@
|
||||
"ref/m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -369,10 +369,4 @@ sourceFile:../test.ts
|
||||
7 >Emitted(14, 27) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>});
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_subfolder/mapFiles/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: /tests/cases/projects/outputdir_module_subfolder/mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_subfolder/mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=/tests/cases/projects/outputdir_module_subfolder/mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -21,9 +21,6 @@
|
||||
"ref/m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -390,10 +390,4 @@ sourceFile:../test.ts
|
||||
6 >Emitted(14, 22) Source(12, 25) + SourceIndex(0)
|
||||
7 >Emitted(14, 23) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_subfolder/mapFiles/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: /tests/cases/projects/outputdir_module_subfolder/mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=/tests/cases/projects/outputdir_module_subfolder/mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=../../../mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -24,9 +24,6 @@
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -567,10 +567,4 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts
|
||||
7 >Emitted(15, 27) Source(14, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>});
|
||||
>>>//# sourceMappingURL=../../mapFiles/outputdir_module_multifolder/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: ../../../mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=../../../mapFiles/test.js.map
|
||||
>>>//# sourceMappingURL=../../mapFiles/outputdir_module_multifolder/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=../../../mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -24,9 +24,6 @@
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -611,10 +611,4 @@ sourceFile:../../projects/outputdir_module_multifolder/test.ts
|
||||
6 >Emitted(16, 22) Source(14, 25) + SourceIndex(0)
|
||||
7 >Emitted(16, 23) Source(14, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>//# sourceMappingURL=../../mapFiles/outputdir_module_multifolder/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: ../../../mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=../../../mapFiles/test.js.map
|
||||
>>>//# sourceMappingURL=../../mapFiles/outputdir_module_multifolder/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=../../mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -20,9 +20,6 @@
|
||||
"m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -369,10 +369,4 @@ sourceFile:../outputdir_module_simple/test.ts
|
||||
7 >Emitted(14, 27) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>});
|
||||
>>>//# sourceMappingURL=../mapFiles/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: ../../mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=../../mapFiles/test.js.map
|
||||
>>>//# sourceMappingURL=../mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=../../mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -20,9 +20,6 @@
|
||||
"m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -390,10 +390,4 @@ sourceFile:../outputdir_module_simple/test.ts
|
||||
6 >Emitted(14, 22) Source(12, 25) + SourceIndex(0)
|
||||
7 >Emitted(14, 23) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>//# sourceMappingURL=../mapFiles/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: ../../mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=../../mapFiles/test.js.map
|
||||
>>>//# sourceMappingURL=../mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=../../mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -20,9 +20,6 @@
|
||||
"ref/m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -369,10 +369,4 @@ sourceFile:../outputdir_module_subfolder/test.ts
|
||||
7 >Emitted(14, 27) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>});
|
||||
>>>//# sourceMappingURL=../mapFiles/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: ../../mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=../../mapFiles/test.js.map
|
||||
>>>//# sourceMappingURL=../mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=../../mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -20,9 +20,6 @@
|
||||
"ref/m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -390,10 +390,4 @@ sourceFile:../outputdir_module_subfolder/test.ts
|
||||
6 >Emitted(14, 22) Source(12, 25) + SourceIndex(0)
|
||||
7 >Emitted(14, 23) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>//# sourceMappingURL=../mapFiles/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: ../../mapFiles/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=../../mapFiles/test.js.map
|
||||
>>>//# sourceMappingURL=../mapFiles/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -24,9 +24,6 @@
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -567,10 +567,4 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts
|
||||
7 >Emitted(15, 27) Source(14, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>});
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_module_multifolder/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: http://www.typescriptlang.org/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_module_multifolder/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -24,9 +24,6 @@
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -611,10 +611,4 @@ sourceFile:file:///tests/cases/projects/outputdir_module_multifolder/test.ts
|
||||
6 >Emitted(16, 22) Source(14, 25) + SourceIndex(0)
|
||||
7 >Emitted(16, 23) Source(14, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_module_multifolder/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: http://www.typescriptlang.org/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_module_multifolder/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -20,9 +20,6 @@
|
||||
"m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -369,10 +369,4 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts
|
||||
7 >Emitted(14, 27) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>});
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: http://www.typescriptlang.org/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -20,9 +20,6 @@
|
||||
"m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -390,10 +390,4 @@ sourceFile:file:///tests/cases/projects/outputdir_module_simple/test.ts
|
||||
6 >Emitted(14, 22) Source(12, 25) + SourceIndex(0)
|
||||
7 >Emitted(14, 23) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: http://www.typescriptlang.org/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -20,9 +20,6 @@
|
||||
"ref/m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -369,10 +369,4 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts
|
||||
7 >Emitted(14, 27) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>});
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: http://www.typescriptlang.org/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"","sources":[],"names":[],"mappings":""}
|
||||
@ -20,9 +20,6 @@
|
||||
"ref/m1.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -390,10 +390,4 @@ sourceFile:file:///tests/cases/projects/outputdir_module_subfolder/test.ts
|
||||
6 >Emitted(14, 22) Source(12, 25) + SourceIndex(0)
|
||||
7 >Emitted(14, 23) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: http://www.typescriptlang.org/test.js.map
|
||||
sourceRoot:
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":[],"names":[],"mappings":""}
|
||||
@ -25,9 +25,6 @@
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
@ -567,10 +567,4 @@ sourceFile:outputdir_module_multifolder/test.ts
|
||||
7 >Emitted(15, 27) Source(14, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>});
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_module_multifolder/test.js.map===================================================================
|
||||
JsFile: test.js
|
||||
mapUrl: http://www.typescriptlang.org/test.js.map
|
||||
sourceRoot: http://typescript.codeplex.com/
|
||||
sources:
|
||||
===================================================================
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
>>>//# sourceMappingURL=http://www.typescriptlang.org/outputdir_module_multifolder/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
//# sourceMappingURL=http://www.typescriptlang.org/test.js.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"test.js","sourceRoot":"http://typescript.codeplex.com/","sources":[],"names":[],"mappings":""}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user