diff --git a/.gitignore b/.gitignore index 560f60038..6ee11d3cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /*.js !index.js /src/*.js +/src/.vscode /*.d.ts /*.log *.js.map @@ -10,11 +11,13 @@ npm-debug.log /test/execution-tests/**/typings !/test/**/expectedOutput-*/** /**/node_modules -/**/dist +/dist +/test/execution-tests/**/dist /**/.happypack /**/.cache-loader !build.js /**/debug.log .pnp .pnp.js -!.eslintrc.js \ No newline at end of file +!.eslintrc.js +.vs/** \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index c93dcde10..e4b16bbf0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,16 +18,4 @@ env: - TYPESCRIPT=typescript@3.8.2 - TYPESCRIPT=typescript@3.7.4 - TYPESCRIPT=typescript@3.6.3 - - TYPESCRIPT=typescript@3.5.1 - - TYPESCRIPT=typescript@3.4.4 - - TYPESCRIPT=typescript@3.3.3 - - TYPESCRIPT=typescript@3.2.1 - - TYPESCRIPT=typescript@3.1.1 - - TYPESCRIPT=typescript@3.0.1 - - TYPESCRIPT=typescript@2.9.2 - - TYPESCRIPT=typescript@2.8.1 - - TYPESCRIPT=typescript@2.7.1 - - TYPESCRIPT=typescript@2.6.1 - - TYPESCRIPT=typescript@2.5.2 - - TYPESCRIPT=typescript@2.4.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 44198ccf6..120cd7eff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v8.0.0 +* [Support for symlinks in project references](https://github.com/TypeStrong/ts-loader/pull/1136) - thanks @sheetalkamat! +* `ts-loader` now supports TypeScript 3.6 and greater **BREAKING CHANGE** + ## v7.0.5 * [Add a delay before starting the comparison tests to avoid failures under WSL](https://github.com/TypeStrong/ts-loader/pull/1109) - thanks @appzuka * [Apply other loaders when updating files in watch mode](https://github.com/TypeStrong/ts-loader/pull/1115) - thanks @iorate diff --git a/appveyor.yml b/appveyor.yml index c1e7e03a5..f7427980b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,18 +8,7 @@ environment: - TYPESCRIPT: typescript@3.8.2 - TYPESCRIPT: typescript@3.7.4 - TYPESCRIPT: typescript@3.6.3 - - TYPESCRIPT: typescript@3.5.1 - - TYPESCRIPT: typescript@3.4.4 - - TYPESCRIPT: typescript@3.3.3 - - TYPESCRIPT: typescript@3.2.1 - - TYPESCRIPT: typescript@3.1.1 - - TYPESCRIPT: typescript@3.0.1 - - TYPESCRIPT: typescript@2.9.2 - - TYPESCRIPT: typescript@2.8.1 - - TYPESCRIPT: typescript@2.7.1 - - TYPESCRIPT: typescript@2.6.1 - - TYPESCRIPT: typescript@2.5.2 - - TYPESCRIPT: typescript@2.4.1 + install: - ps: Install-Product node $env:nodejs_version - yarn install diff --git a/package.json b/package.json index 4da50ebe0..a4684059f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-loader", - "version": "7.0.5", + "version": "8.0.0", "description": "TypeScript loader for webpack", "main": "index.js", "types": "dist", diff --git a/src/after-compile.ts b/src/after-compile.ts index fb2b5efc1..1edefc4af 100644 --- a/src/after-compile.ts +++ b/src/after-compile.ts @@ -3,23 +3,21 @@ import * as ts from 'typescript'; import * as webpack from 'webpack'; import * as constants from './constants'; +import { getEmitFromWatchHost, getEmitOutput } from './instances'; import { - getEmitFromWatchHost, - getEmitOutput, - isReferencedFile, -} from './instances'; -import { - TSFile, + FilePathKey, TSFiles, TSInstance, WebpackError, WebpackModule, + TSFile, } from './interfaces'; import { collectAllDependants, ensureProgram, formatErrors, - isUsingProjectReferences, + isReferencedFile, + populateReverseDependencyGraph, } from './utils'; export function makeAfterCompile( @@ -55,7 +53,7 @@ export function makeAfterCompile( ); getCompilerOptionDiagnostics = false; - const modules = determineModules(compilation); + const modules = determineModules(compilation, instance); const filesToCheckForErrors = determineFilesToCheckForErrors( checkAllFilesForErrors, @@ -63,7 +61,7 @@ export function makeAfterCompile( ); checkAllFilesForErrors = false; - const filesWithErrors: TSFiles = new Map(); + const filesWithErrors: TSFiles = new Map(); provideErrorsToWebpack( filesToCheckForErrors, filesWithErrors, @@ -119,11 +117,14 @@ function provideCompilerOptionDiagnosticErrorsToWebpack( * this is used for quick-lookup when trying to find modules * based on filepath */ -function determineModules(compilation: webpack.compilation.Compilation) { - return compilation.modules.reduce>( +function determineModules( + compilation: webpack.compilation.Compilation, + { filePathKeyMapper }: TSInstance +) { + return compilation.modules.reduce>( (modules, module) => { if (module.resource) { - const modulePath = path.normalize(module.resource); + const modulePath = filePathKeyMapper(module.resource); const existingModules = modules.get(modulePath); if (existingModules !== undefined) { if (existingModules.indexOf(module) === -1) { @@ -136,7 +137,7 @@ function determineModules(compilation: webpack.compilation.Compilation) { return modules; }, - new Map() + new Map() ); } @@ -146,43 +147,54 @@ function determineFilesToCheckForErrors( ) { const { files, modifiedFiles, filesWithErrors, otherFiles } = instance; // calculate array of files to check - const filesToCheckForErrors: TSFiles = new Map(); + const filesToCheckForErrors: TSFiles = new Map(); if (checkAllFilesForErrors) { // check all files on initial run for (const [filePath, file] of files) { - filesToCheckForErrors.set(filePath, file); + addFileToCheckForErrors(filePath, file); } for (const [filePath, file] of otherFiles) { - filesToCheckForErrors.set(filePath, file); + addFileToCheckForErrors(filePath, file); } - } else if (modifiedFiles !== null && modifiedFiles !== undefined) { + } else if ( + modifiedFiles !== null && + modifiedFiles !== undefined && + modifiedFiles.size + ) { + const reverseDependencyGraph = populateReverseDependencyGraph(instance); // check all modified files, and all dependants for (const modifiedFileName of modifiedFiles.keys()) { - collectAllDependants( - instance.reverseDependencyGraph, + for (const fileName of collectAllDependants( + reverseDependencyGraph, modifiedFileName - ).forEach(fileName => { + ).keys()) { const fileToCheckForErrors = files.get(fileName) || otherFiles.get(fileName); - filesToCheckForErrors.set(fileName, fileToCheckForErrors!); - }); + addFileToCheckForErrors(fileName, fileToCheckForErrors!); + } } } // re-check files with errors from previous build if (filesWithErrors !== undefined) { for (const [fileWithErrorName, fileWithErrors] of filesWithErrors) { - filesToCheckForErrors.set(fileWithErrorName, fileWithErrors); + addFileToCheckForErrors(fileWithErrorName, fileWithErrors); } } return filesToCheckForErrors; + + function addFileToCheckForErrors(filePath: FilePathKey, file: TSFile) { + if (!isReferencedFile(instance, filePath)) { + filesToCheckForErrors.set(filePath, file); + } + } } function provideErrorsToWebpack( filesToCheckForErrors: TSFiles, filesWithErrors: TSFiles, compilation: webpack.compilation.Compilation, - modules: Map, + modules: Map, instance: TSInstance ) { const { @@ -200,20 +212,12 @@ function provideErrorsToWebpack( // I’m pretty sure this will never be undefined here const program = ensureProgram(instance); - for (const filePath of filesToCheckForErrors.keys()) { - if (filePath.match(filePathRegex) === null) { - continue; - } - - const sourceFile = program && program.getSourceFile(filePath); - // If the source file is undefined, that probably means it’s actually part of an unbuilt project reference, - // which will have already produced a more useful error than the one we would get by proceeding here. - // If it’s undefined and we’re not using project references at all, I guess carry on so the user will - // get a useful error about which file was unexpectedly missing. - if (isUsingProjectReferences(instance) && sourceFile === undefined) { + for (const [filePath, { fileName }] of filesToCheckForErrors.entries()) { + if (fileName.match(filePathRegex) === null) { continue; } + const sourceFile = program && program.getSourceFile(fileName); const errors: ts.Diagnostic[] = []; if (program && sourceFile) { errors.push( @@ -231,7 +235,7 @@ function provideErrorsToWebpack( } // if we have access to a webpack module, use that - const associatedModules = modules.get(filePath); + const associatedModules = modules.get(instance.filePathKeyMapper(fileName)); if (associatedModules !== undefined) { associatedModules.forEach(module => { // remove any existing errors @@ -257,7 +261,7 @@ function provideErrorsToWebpack( loaderOptions, instance.colors, compiler, - { file: filePath }, + { file: fileName }, compilation.compiler.context ); @@ -268,7 +272,7 @@ function provideErrorsToWebpack( function provideSolutionErrorsToWebpack( compilation: webpack.compilation.Compilation, - modules: Map, + modules: Map, instance: TSInstance ) { if ( @@ -315,7 +319,7 @@ function provideSolutionErrorsToWebpack( loaderOptions, instance.colors, compiler, - { file: filePath }, + { file: path.resolve(perFileDiagnostics[0].file!.fileName) }, compilation.compiler.context ); @@ -344,17 +348,12 @@ function provideDeclarationFilesToWebpack( instance: TSInstance, compilation: webpack.compilation.Compilation ) { - for (const filePath of filesToCheckForErrors.keys()) { - if (filePath.match(constants.tsTsxRegex) === null) { + for (const { fileName } of filesToCheckForErrors.values()) { + if (fileName.match(constants.tsTsxRegex) === null) { continue; } - if (!isReferencedFile(instance, filePath)) { - addDeclarationFilesAsAsset( - getEmitOutput(instance, filePath), - compilation - ); - } + addDeclarationFilesAsAsset(getEmitOutput(instance, fileName), compilation); } } diff --git a/src/compilerSetup.ts b/src/compilerSetup.ts index 8853aed92..3b53cc11c 100644 --- a/src/compilerSetup.ts +++ b/src/compilerSetup.ts @@ -27,7 +27,7 @@ export function getCompiler(loaderOptions: LoaderOptions, log: logger.Logger) { if (loaderOptions.compiler === 'typescript') { if ( compiler!.version !== undefined && - semver.gte(compiler!.version, '2.4.1') + semver.gte(compiler!.version, '3.6.3') ) { // don't log yet in this case, if a tsconfig.json exists we want to combine the message compilerCompatible = true; diff --git a/src/config.ts b/src/config.ts index fed977e38..caeb6bf0e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,13 +1,12 @@ import { Chalk } from 'chalk'; import * as path from 'path'; -import * as semver from 'semver'; import * as typescript from 'typescript'; import * as webpack from 'webpack'; import { getCompilerOptions } from './compilerSetup'; import { LoaderOptions, WebpackError } from './interfaces'; import * as logger from './logger'; -import { formatErrors } from './utils'; +import { formatErrors, useCaseSensitiveFileNames } from './utils'; interface ConfigFile { config?: any; @@ -66,8 +65,7 @@ export function getConfigFile( if (configFileError === undefined) { configFile.config.compilerOptions = Object.assign( {}, - configFile.config.compilerOptions, - loaderOptions.compilerOptions + configFile.config.compilerOptions ); } @@ -129,24 +127,34 @@ export function getConfigParseResult( configFile: ConfigFile, basePath: string, configFilePath: string | undefined, - enableProjectReferences: boolean + loaderOptions: LoaderOptions ) { const configParseResult = compiler.parseJsonConfigFileContent( configFile.config, - compiler.sys, - basePath + { + ...compiler.sys, + useCaseSensitiveFileNames: useCaseSensitiveFileNames( + compiler, + loaderOptions + ), + }, + basePath, + getCompilerOptionsToExtend( + compiler, + loaderOptions, + basePath, + configFilePath || 'tsconfig.json' + ) ); - if (!enableProjectReferences) { + if (!loaderOptions.projectReferences) { configParseResult.projectReferences = undefined; } - if (semver.gte(compiler.version, '3.5.0')) { - // set internal options.configFilePath flag on options to denote that we read this from a file - configParseResult.options = Object.assign({}, configParseResult.options, { - configFilePath, - }); - } + // set internal options.configFilePath flag on options to denote that we read this from a file + configParseResult.options = Object.assign({}, configParseResult.options, { + configFilePath, + }); return configParseResult; } @@ -161,9 +169,18 @@ export function getParsedCommandLine( ): typescript.ParsedCommandLine | undefined { const result = compiler.getParsedCommandLineOfConfigFile( configFilePath, - loaderOptions.compilerOptions, + getCompilerOptionsToExtend( + compiler, + loaderOptions, + path.dirname(configFilePath), + configFilePath + ), { ...compiler.sys, + useCaseSensitiveFileNames: useCaseSensitiveFileNames( + compiler, + loaderOptions + ), // eslint-disable-next-line @typescript-eslint/no-empty-function onUnRecoverableConfigFileDiagnostic: () => {}, }, @@ -174,3 +191,16 @@ export function getParsedCommandLine( } return result; } + +function getCompilerOptionsToExtend( + compiler: typeof typescript, + loaderOptions: LoaderOptions, + basePath: string, + configFileName: string +) { + return compiler.convertCompilerOptionsFromJson( + loaderOptions.compilerOptions, + basePath, + configFileName + ).options; +} diff --git a/src/index.ts b/src/index.ts index 14746753d..b218a4611 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,23 +11,20 @@ import { getInputFileNameFromOutput, getTypeScriptInstance, initializeInstance, - isReferencedFile, reportTranspileErrors, } from './instances'; import { + FilePathKey, LoaderOptions, LoaderOptionsCache, LogLevel, - TSFile, TSInstance, } from './interfaces'; import { appendSuffixesIfMatch, arrify, formatErrors, - getAndCacheOutputJSFileName, - getAndCacheProjectReference, - validateSourceMapOncePerProject, + isReferencedFile, } from './utils'; const webpackInstances: webpack.Compiler[] = []; @@ -79,85 +76,20 @@ function successLoader( contents, instance ); - const referencedProject = getAndCacheProjectReference(filePath, instance); - if (referencedProject !== undefined) { - const [relativeProjectConfigPath, relativeFilePath] = [ - path.relative( - loaderContext.rootContext, - referencedProject.sourceFile.fileName - ), - path.relative(loaderContext.rootContext, filePath), - ]; - if (referencedProject.commandLine.options.outFile !== undefined) { - throw new Error( - `The referenced project at ${relativeProjectConfigPath} is using ` + - `the outFile' option, which is not supported with ts-loader.` - ); - } - - const jsFileName = getAndCacheOutputJSFileName( - filePath, - referencedProject, - instance - ); - - const relativeJSFileName = path.relative( - loaderContext.rootContext, - jsFileName - ); - if (!instance.compiler.sys.fileExists(jsFileName)) { - throw new Error( - `Could not find output JavaScript file for input ` + - `${relativeFilePath} (looked at ${relativeJSFileName}).\n` + - `The input file is part of a project reference located at ` + - `${relativeProjectConfigPath}, so ts-loader is looking for the ` + - 'project’s pre-built output on disk. Try running `tsc --build` ' + - 'to build project references.' - ); - } - - // Since the output JS file is being read from disk instead of using the - // input TS file, we need to tell the loader that the compilation doesn’t - // actually depend on the current file, but depends on the JS file instead. - loaderContext.clearDependencies(); - loaderContext.addDependency(jsFileName); - - validateSourceMapOncePerProject( - instance, - loaderContext, - jsFileName, - referencedProject - ); - - const mapFileName = jsFileName + '.map'; - const outputText = instance.compiler.sys.readFile(jsFileName); - const sourceMapText = instance.compiler.sys.readFile(mapFileName); - makeSourceMapAndFinish( - sourceMapText, - outputText, - filePath, - contents, - loaderContext, - fileVersion, - callback, - instance - ); - } else { - const { outputText, sourceMapText } = instance.loaderOptions.transpileOnly - ? getTranspilationEmit(filePath, contents, instance, loaderContext) - : getEmit(rawFilePath, filePath, instance, loaderContext); + const { outputText, sourceMapText } = instance.loaderOptions.transpileOnly + ? getTranspilationEmit(filePath, contents, instance, loaderContext) + : getEmit(rawFilePath, filePath, instance, loaderContext); - makeSourceMapAndFinish( - sourceMapText, - outputText, - filePath, - contents, - loaderContext, - fileVersion, - callback, - instance - ); - } + makeSourceMapAndFinish( + sourceMapText, + outputText, + filePath, + contents, + loaderContext, + fileVersion, + callback, + instance + ); } function makeSourceMapAndFinish( @@ -303,6 +235,7 @@ const validLoaderOptions: ValidLoaderOptions[] = [ 'projectReferences', 'resolveModuleName', 'resolveTypeReferenceDirective', + 'useCaseSensitiveFileNames', ]; /** @@ -384,13 +317,14 @@ function updateFileInCache( ) { let fileWatcherEventKind: typescript.FileWatcherEventKind | undefined; // Update file contents - let file = instance.files.get(filePath); + const key = instance.filePathKeyMapper(filePath); + let file = instance.files.get(key); if (file === undefined) { - file = instance.otherFiles.get(filePath); + file = instance.otherFiles.get(key); if (file !== undefined) { if (!isReferencedFile(instance, filePath)) { - instance.otherFiles.delete(filePath); - instance.files.set(filePath, file); + instance.otherFiles.delete(key); + instance.files.set(key, file); instance.changedFilesList = true; } } else { @@ -400,12 +334,12 @@ function updateFileInCache( ) { fileWatcherEventKind = instance.compiler.FileWatcherEventKind.Created; } - file = { version: 0 }; + file = { fileName: filePath, version: 0 }; if (!isReferencedFile(instance, filePath)) { - instance.files.set(filePath, file); + instance.files.set(key, file); instance.changedFilesList = true; } else { - instance.otherFiles.set(filePath, file); + instance.otherFiles.set(key, file); } } } @@ -450,9 +384,9 @@ function updateFileInCache( } if (instance.watchHost !== undefined && fileWatcherEventKind !== undefined) { - instance.hasUnaccountedModifiedFiles = true; - instance.watchHost.invokeFileWatcher(filePath, fileWatcherEventKind); - instance.watchHost.invokeDirectoryWatcher(path.dirname(filePath), filePath); + instance.hasUnaccountedModifiedFiles = + instance.watchHost.invokeFileWatcher(filePath, fileWatcherEventKind) || + instance.hasUnaccountedModifiedFiles; } if ( @@ -463,17 +397,13 @@ function updateFileInCache( filePath, fileWatcherEventKind ); - instance.solutionBuilderHost.invokeDirectoryWatcher( - path.dirname(filePath), - filePath - ); } // push this file to modified files hash. if (!instance.modifiedFiles) { - instance.modifiedFiles = new Map(); + instance.modifiedFiles = new Map(); } - instance.modifiedFiles.set(filePath, file); + instance.modifiedFiles.set(key, true); return file.version; } @@ -497,15 +427,15 @@ function getEmit( // Make this file dependent on *all* definition files in the program if (!isReferencedFile(instance, filePath)) { - for (const defFilePath of instance.files.keys()) { + for (const { fileName: defFilePath } of instance.files.values()) { if ( defFilePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) && // Remove the project reference d.ts as we are adding dependency for .ts later // This removed extra build pass (resulting in new stats object in initial build) (!instance.solutionBuilderHost || - instance.solutionBuilderHost.getOutputFileFromReferencedProject( + !instance.solutionBuilderHost.getOutputFileKeyFromReferencedProject( defFilePath - ) !== undefined) + )) ) { addDependency(defFilePath); } @@ -513,31 +443,17 @@ function getEmit( } // Additionally make this file dependent on all imported files - const fileDependencies = instance.dependencyGraph[filePath]; + const fileDependencies = instance.dependencyGraph.get( + instance.filePathKeyMapper(filePath) + ); if (fileDependencies) { for (const { resolvedFileName, originalFileName } of fileDependencies) { - const projectReference = getAndCacheProjectReference( - resolvedFileName, - instance - ); // In the case of dependencies that are part of a project reference, // the real dependency that webpack should watch is the JS output file. - if (projectReference !== undefined) { - addDependency( - getAndCacheOutputJSFileName( - resolvedFileName, - projectReference, - instance - ) - ); - } else { - addDependency( - getInputFileNameFromOutput( - instance, - path.resolve(resolvedFileName) - ) || originalFileName - ); - } + addDependency( + getInputFileNameFromOutput(instance, path.resolve(resolvedFileName)) || + originalFileName + ); } } @@ -548,8 +464,10 @@ function getEmit( path.relative(loaderContext.rootContext, defFilePath) + '@' + ( - instance.files.get(defFilePath) || - instance.otherFiles.get(defFilePath) || { version: '?' } + instance.files.get(instance.filePathKeyMapper(defFilePath)) || + instance.otherFiles.get(instance.filePathKeyMapper(defFilePath)) || { + version: '?', + } ).version ); @@ -582,16 +500,16 @@ function addDependenciesFromSolutionBuilder( } // Add all the input files from the references as - const resolvedFilePath = path.resolve(filePath); + const resolvedFilePath = instance.filePathKeyMapper(filePath); if (!isReferencedFile(instance, filePath)) { if ( instance.configParseResult.fileNames.some( - f => path.resolve(f) === resolvedFilePath + f => instance.filePathKeyMapper(f) === resolvedFilePath ) ) { addDependenciesFromProjectReferences( instance, - path.resolve(instance.configFilePath!), + instance.configFilePath!, instance.configParseResult.projectReferences, addDependency ); @@ -617,7 +535,7 @@ function addDependenciesFromSolutionBuilder( } } else if ( !configInfo.config.fileNames.some( - f => path.resolve(f) === resolvedFilePath + f => instance.filePathKeyMapper(f) === resolvedFilePath ) ) { continue; @@ -647,8 +565,8 @@ function addDependenciesFromProjectReferences( return; } // This is the config for the input file - const seenMap = new Map(); - seenMap.set(configFile, true); + const seenMap = new Map(); + seenMap.set(instance.filePathKeyMapper(configFile), true); // Add dependencies to all the input files from the project reference files since building them const queue = projectReferences.slice(); @@ -657,7 +575,7 @@ function addDependenciesFromProjectReferences( if (!currentRef) { break; } - const refConfigFile = path.resolve( + const refConfigFile = instance.filePathKeyMapper( instance.compiler.resolveProjectReferencePath(currentRef) ); if (seenMap.has(refConfigFile)) { diff --git a/src/instances.ts b/src/instances.ts index bccd1fe36..916f139b4 100644 --- a/src/instances.ts +++ b/src/instances.ts @@ -9,8 +9,8 @@ import { getCompiler, getCompilerOptions } from './compilerSetup'; import { getConfigFile, getConfigParseResult } from './config'; import { dtsDtsxOrDtsDtsxMapRegex, EOL, tsTsxRegex } from './constants'; import { + FilePathKey, LoaderOptions, - TSFile, TSFiles, TSInstance, TSInstances, @@ -27,9 +27,10 @@ import { appendSuffixesIfMatch, ensureProgram, formatErrors, - isUsingProjectReferences, + isReferencedFile, makeError, supportsSolutionBuild, + useCaseSensitiveFileNames, } from './utils'; import { makeWatchRun } from './watch-run'; @@ -73,6 +74,30 @@ export function getTypeScriptInstance( ); } +function createFilePathKeyMapper( + compiler: typeof typescript, + loaderOptions: LoaderOptions +) { + // FileName lowercasing copied from typescript + const fileNameLowerCaseRegExp = /[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g; + return useCaseSensitiveFileNames(compiler, loaderOptions) + ? pathResolve + : toFileNameLowerCase; + + function pathResolve(x: string) { + return path.resolve(x) as FilePathKey; + } + + function toFileNameLowerCase(x: string) { + const filePathKey = pathResolve(x); + return fileNameLowerCaseRegExp.test(filePathKey) + ? (filePathKey.replace(fileNameLowerCaseRegExp, ch => + ch.toLowerCase() + ) as FilePathKey) + : filePathKey; + } +} + function successfulTypeScriptInstance( loaderOptions: LoaderOptions, loader: webpack.loader.LoaderContext, @@ -109,7 +134,7 @@ function successfulTypeScriptInstance( configFile, basePath, configFilePath, - loaderOptions.projectReferences + loaderOptions ); if (configParseResult.errors.length > 0 && !loaderOptions.happyPackMode) { @@ -134,8 +159,8 @@ function successfulTypeScriptInstance( const compilerOptions = getCompilerOptions(configParseResult); const rootFileNames = new Set(); - const files: TSFiles = new Map(); - const otherFiles: TSFiles = new Map(); + const files: TSFiles = new Map(); + const otherFiles: TSFiles = new Map(); const appendTsTsxSuffixesIfRequired = loaderOptions.appendTsSuffixTo.length > 0 || @@ -149,6 +174,7 @@ function successfulTypeScriptInstance( filePath ) : (filePath: string) => filePath; + const filePathKeyMapper = createFilePathKeyMapper(compiler, loaderOptions); if (loaderOptions.transpileOnly) { // quick return for transpiling @@ -163,8 +189,7 @@ function successfulTypeScriptInstance( otherFiles, version: 0, program: undefined, // temporary, to be set later - dependencyGraph: {}, - reverseDependencyGraph: {}, + dependencyGraph: new Map(), transformers: {} as typescript.CustomTransformers, // this is only set temporarily, custom transformers are created further down colors, initialSetupPending: true, @@ -172,6 +197,7 @@ function successfulTypeScriptInstance( configFilePath, configParseResult, log, + filePathKeyMapper, }); return { instance: transpileInstance }; @@ -187,7 +213,8 @@ function successfulTypeScriptInstance( : configParseResult.fileNames; filesToLoad.forEach(filePath => { normalizedFilePath = path.normalize(filePath); - files.set(normalizedFilePath, { + files.set(filePathKeyMapper(normalizedFilePath), { + fileName: normalizedFilePath, text: fs.readFileSync(normalizedFilePath, 'utf-8'), version: 0, }); @@ -215,13 +242,13 @@ function successfulTypeScriptInstance( languageService: null, version: 0, transformers: {} as typescript.CustomTransformers, // this is only set temporarily, custom transformers are created further down - dependencyGraph: {}, - reverseDependencyGraph: {}, + dependencyGraph: new Map(), colors, initialSetupPending: true, configFilePath, configParseResult, log, + filePathKeyMapper, }); return { instance }; @@ -291,10 +318,7 @@ export function initializeInstance( ); } - if ( - instance.loaderOptions.experimentalWatchApi && - instance.compiler.createWatchProgram - ) { + if (instance.loaderOptions.experimentalWatchApi) { instance.log.logInfo('Using watch api'); // If there is api available for watch, use it instead of language service @@ -316,22 +340,14 @@ export function initializeInstance( getScriptRegexp(instance), loader, instance, - instance.loaderOptions.experimentalFileCaching, instance.configParseResult.projectReferences ); instance.languageService = instance.compiler.createLanguageService( - instance.servicesHost.servicesHost, + instance.servicesHost, instance.compiler.createDocumentRegistry() ); - if (instance.servicesHost.clearCache !== null) { - loader._compiler.hooks.watchRun.tap( - 'ts-loader', - instance.servicesHost.clearCache - ); - } - instance.transformers = getCustomTransformers( instance.languageService!.getProgram() ); @@ -425,10 +441,11 @@ function ensureAllReferences(instance: TSInstance) { } // Load all the input files configInfo.config.fileNames.forEach(file => { - const resolvedFileName = path.resolve(file); + const resolvedFileName = instance.filePathKeyMapper(file); const existing = instance.otherFiles.get(resolvedFileName); if (!existing) { instance.otherFiles.set(resolvedFileName, { + fileName: path.resolve(file), version: 1, text: instance.compiler.sys.readFile(file), modifiedTime: instance.compiler.sys.getModifiedTime!(file), @@ -554,7 +571,10 @@ export function getOutputFileNames( configFile: typescript.ParsedCommandLine, inputFileName: string ): string[] { - const ignoreCase = !instance.compiler.sys.useCaseSensitiveFileNames; + const ignoreCase = !useCaseSensitiveFileNames( + instance.compiler, + instance.loaderOptions + ); if ((instance.compiler as any).getOutputFileNames) { return (instance.compiler as any).getOutputFileNames( configFile, @@ -627,19 +647,14 @@ export function getInputFileNameFromOutput( ); } -export function isReferencedFile(instance: TSInstance, filePath: string) { - return ( - !!instance.solutionBuilderHost && - !!instance.solutionBuilderHost.watchedFiles.get(filePath) - ); -} - export function getEmitFromWatchHost(instance: TSInstance, filePath?: string) { const program = ensureProgram(instance); const builderProgram = instance.builderProgram; if (builderProgram && program) { if (filePath) { - const existing = instance.watchHost!.outputFiles.get(filePath); + const existing = instance.watchHost!.outputFiles.get( + instance.filePathKeyMapper(filePath) + ); if (existing) { return existing; } @@ -676,7 +691,9 @@ export function getEmitFromWatchHost(instance: TSInstance, filePath?: string) { } if ((result.affected as typescript.SourceFile).fileName) { instance.watchHost!.outputFiles.set( - path.resolve((result.affected as typescript.SourceFile).fileName), + instance.filePathKeyMapper( + (result.affected as typescript.SourceFile).fileName + ), outputFiles.slice() ); } @@ -706,20 +723,17 @@ export function getEmitOutput(instance: TSInstance, filePath: string) { text: string, writeByteOrderMark: boolean ) => outputFiles.push({ name: fileName, writeByteOrderMark, text }); - // The source file will be undefined if it’s part of an unbuilt project reference - if (sourceFile !== undefined || !isUsingProjectReferences(instance)) { - const outputFilesFromWatch = getEmitFromWatchHost(instance, filePath); - if (outputFilesFromWatch) { - return outputFilesFromWatch; - } - program.emit( - sourceFile, - writeFile, - /*cancellationToken*/ undefined, - /*emitOnlyDtsFiles*/ false, - instance.transformers - ); + const outputFilesFromWatch = getEmitFromWatchHost(instance, filePath); + if (outputFilesFromWatch) { + return outputFilesFromWatch; } + program.emit( + sourceFile, + writeFile, + /*cancellationToken*/ undefined, + /*emitOnlyDtsFiles*/ false, + instance.transformers + ); return outputFiles; } else { // Emit Javascript diff --git a/src/interfaces.ts b/src/interfaces.ts index e873dedd7..ce44d98f9 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -1,4 +1,3 @@ -export { ModuleResolutionHost, FormatDiagnosticsHost } from 'typescript'; import * as typescript from 'typescript'; import { Chalk } from 'chalk'; @@ -40,26 +39,62 @@ export type ResolveSync = ( export type Action = () => void; -export interface ServiceHostWhichMayBeCacheable { - servicesHost: typescript.LanguageServiceHost; - clearCache: Action | null; +export interface HostMayBeCacheable { + clearCache?: Action; } +export interface CacheableHost extends HostMayBeCacheable { + fileExists: typescript.ModuleResolutionHost['fileExists']; + directoryExists: NonNullable< + typescript.ModuleResolutionHost['directoryExists'] + >; + realpath?: typescript.ModuleResolutionHost['realpath']; +} + +export interface ModuleResolutionHostMayBeCacheable + extends typescript.ModuleResolutionHost, + HostMayBeCacheable { + readFile(filePath: string, encoding?: string): string | undefined; + trace: NonNullable; + directoryExists: NonNullable< + typescript.ModuleResolutionHost['directoryExists'] + >; + getCurrentDirectory: NonNullable< + typescript.ModuleResolutionHost['getCurrentDirectory'] + >; + getDirectories: NonNullable< + typescript.ModuleResolutionHost['getDirectories'] + >; + + // Other common methods between WatchHost and LanguageServiceHost + useCaseSensitiveFileNames: NonNullable< + typescript.LanguageServiceHost['useCaseSensitiveFileNames'] + >; + getNewLine: NonNullable; + getDefaultLibFileName: NonNullable< + typescript.LanguageServiceHost['getDefaultLibFileName'] + >; + readDirectory: NonNullable; +} + +export interface ServiceHostWhichMayBeCacheable + extends typescript.LanguageServiceHost, + HostMayBeCacheable {} + export interface WatchHost extends typescript.WatchCompilerHostOfFilesAndCompilerOptions< typescript.EmitAndSemanticDiagnosticsBuilderProgram > { - invokeFileWatcher( - fileName: string, - eventKind: typescript.FileWatcherEventKind - ): void; - invokeDirectoryWatcher(directory: string, fileAddedOrRemoved: string): void; + invokeFileWatcher: WatchFactory['invokeFileWatcher']; updateRootFileNames(): void; - outputFiles: Map; + outputFiles: Map; tsbuildinfo?: typescript.OutputFile; } -export type WatchCallbacks = Map; +export type WatchCallbacks = Map< + FilePathKey, + { fileName: string; callbacks: T[] } +>; export interface WatchFactory { watchedFiles: WatchCallbacks; watchedDirectories: WatchCallbacks; @@ -69,8 +104,7 @@ export interface WatchFactory { invokeFileWatcher( fileName: string, eventKind: typescript.FileWatcherEventKind - ): void; - invokeDirectoryWatcher(directory: string, fileAddedOrRemoved: string): void; + ): boolean; /** Used to watch changes in source files, missing files needed to update the program or config file */ watchFile: typescript.WatchHost['watchFile']; /** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */ @@ -79,10 +113,12 @@ export interface WatchFactory { export interface SolutionDiagnostics { global: typescript.Diagnostic[]; - perFile: Map; - transpileErrors: [string | undefined, typescript.Diagnostic[]][]; + perFile: Map; + transpileErrors: [FilePathKey | undefined, typescript.Diagnostic[]][]; } +export type FilePathKey = string & { __filePathKeyBrand: any }; + export interface SolutionBuilderWithWatchHost extends typescript.SolutionBuilderWithWatchHost< typescript.EmitAndSemanticDiagnosticsBuilderProgram @@ -90,19 +126,29 @@ export interface SolutionBuilderWithWatchHost WatchFactory { diagnostics: SolutionDiagnostics; writtenFiles: OutputFile[]; - configFileInfo: Map; - outputAffectingInstanceVersion: Map; + configFileInfo: Map; + outputAffectingInstanceVersion: Map; + getOutputFileKeyFromReferencedProject( + outputFileName: string + ): FilePathKey | undefined; getOutputFileFromReferencedProject( outputFileName: string ): OutputFile | false | undefined; + getOutputFileAndKeyFromReferencedProject( + oututFileName: string + ): { key: FilePathKey; outputFile: OutputFile | false } | undefined; getInputFileNameFromOutput(outputFileName: string): string | undefined; getOutputFilesFromReferencedProjectInput(inputFileName: string): OutputFile[]; buildReferences(): void; + clearCache(): void; } export interface ConfigFileInfo { config: typescript.ParsedCommandLine | undefined; - outputFileNames?: Map; + outputFileNames?: Map< + FilePathKey, + { inputFileName: string; outputNames: FilePathKey[] } + >; tsbuildInfoFile?: string; dtsFiles?: string[]; } @@ -126,7 +172,7 @@ export interface TSInstance { /** * contains the modified files - cleared each time after-compile is called */ - modifiedFiles?: TSFiles; + modifiedFiles?: Map; /** * Paths to project references that are missing source maps. * Cleared each time after-compile is called. Used to dedupe @@ -137,7 +183,6 @@ export interface TSInstance { languageService?: typescript.LanguageService | null; version: number; dependencyGraph: DependencyGraph; - reverseDependencyGraph: ReverseDependencyGraph; filesWithErrors?: TSFiles; transformers: typescript.CustomTransformers; colors: Chalk; @@ -159,6 +204,8 @@ export interface TSInstance { >; configFilePath: string | undefined; + filePathKeyMapper: (fileName: string) => FilePathKey; + initialSetupPending: boolean; configParseResult: typescript.ParsedCommandLine; log: logger.Logger; @@ -171,18 +218,8 @@ export interface LoaderOptionsCache { export interface TSInstances { [name: string]: TSInstance; } - -export interface DependencyGraph { - [file: string]: ResolvedModule[] | undefined; -} - -export interface ReverseDependencyGraph { - [file: string]: - | { - [file: string]: boolean; - } - | undefined; -} +export type DependencyGraph = Map; +export type ReverseDependencyGraph = Map>; export type LogLevel = 'INFO' | 'WARN' | 'ERROR'; @@ -238,9 +275,11 @@ export interface LoaderOptions { projectReferences: boolean; resolveModuleName: CustomResolveModuleName; resolveTypeReferenceDirective: CustomResolveTypeReferenceDirective; + useCaseSensitiveFileNames?: boolean; } export interface TSFile { + fileName: string; text?: string; version: number; modifiedTime?: Date; @@ -255,7 +294,7 @@ export interface TSFile { } /** where key is filepath */ -export type TSFiles = Map; +export type TSFiles = Map; export interface ResolvedModule { originalFileName: string; diff --git a/src/servicesHost.ts b/src/servicesHost.ts index f45a77b70..9ecf3a6dd 100644 --- a/src/servicesHost.ts +++ b/src/servicesHost.ts @@ -1,17 +1,17 @@ import * as path from 'path'; import * as typescript from 'typescript'; import * as webpack from 'webpack'; - import { getParsedCommandLine } from './config'; import * as constants from './constants'; import { getOutputFileNames } from './instances'; import { Action, + CacheableHost, ConfigFileInfo, CustomResolveModuleName, CustomResolveTypeReferenceDirective, - FormatDiagnosticsHost, - ModuleResolutionHost, + FilePathKey, + ModuleResolutionHostMayBeCacheable, OutputFile, ResolvedModule, ResolveSync, @@ -26,42 +26,26 @@ import { WebpackError, } from './interfaces'; import { makeResolver } from './resolver'; -import { formatErrors, readFile, unorderedRemoveItem } from './utils'; - -function readFileWithInstance( - instance: TSInstance, - filePath: string, - encoding?: string | undefined -): string | undefined { - if (instance.solutionBuilderHost) { - const outputFile = instance.solutionBuilderHost.getOutputFileFromReferencedProject( - filePath - ); - if (outputFile !== undefined) { - return outputFile ? outputFile.text : undefined; - } - } - return ( - instance.compiler.sys.readFile(filePath, encoding) || - readFile(filePath, encoding) - ); -} - -/** - * Create the TypeScript language service - */ -export function makeServicesHost( +import { + ensureTrailingDirectorySeparator, + formatErrors, + fsReadFile, + populateDependencyGraph, + unorderedRemoveItem, + useCaseSensitiveFileNames, +} from './utils'; + +function makeResolversHandlingProjectReferences( scriptRegex: RegExp, loader: webpack.loader.LoaderContext, instance: TSInstance, - enableFileCaching: boolean, - projectReferences?: ReadonlyArray -): ServiceHostWhichMayBeCacheable { + originalFileExists: (fileName: string) => boolean, + enableFileCaching: boolean +) { const { compiler, compilerOptions, appendTsTsxSuffixesIfRequired, - files, loaderOptions: { resolveModuleName: customResolveModuleName, resolveTypeReferenceDirective: customResolveTypeReferenceDirective, @@ -75,49 +59,33 @@ export function makeServicesHost( ? constants.LineFeed : constants.EOL; + // loader.context seems to work fine on Linux / Mac regardless causes problems for @types resolution on Windows for TypeScript < 2.3 + const getCurrentDirectory = () => loader.context; + // make a (sync) resolver that follows webpack's rules const resolveSync = makeResolver(loader._compiler.options); - const readFileWithFallback = ( - filePath: string, - encoding?: string | undefined - ): string | undefined => readFileWithInstance(instance, filePath, encoding); - - const fileExists = (filePathToCheck: string) => { - if (instance.solutionBuilderHost) { - const outputFile = instance.solutionBuilderHost.getOutputFileFromReferencedProject( - filePathToCheck - ); - if (outputFile !== undefined) { - return !!outputFile; - } - } - return ( - compiler.sys.fileExists(filePathToCheck) || - readFile(filePathToCheck) !== undefined - ); - }; - - let clearCache: Action | null = null; - let moduleResolutionHost: ModuleResolutionHost = { + const moduleResolutionHost: ModuleResolutionHostMayBeCacheable = { + trace: logData => instance.log.log(logData), fileExists, - readFile: readFileWithFallback, - realpath: compiler.sys.realpath, - directoryExists: compiler.sys.directoryExists, - getCurrentDirectory: compiler.sys.getCurrentDirectory, - getDirectories: compiler.sys.getDirectories, + readFile, + realpath: compiler.sys.realpath && realpath, + directoryExists, + getCurrentDirectory, + getDirectories, + readDirectory, + + useCaseSensitiveFileNames: () => + useCaseSensitiveFileNames(compiler, instance.loaderOptions), + getNewLine: () => newLine, + getDefaultLibFileName: options => compiler.getDefaultLibFilePath(options), }; if (enableFileCaching) { - const cached = addCache(moduleResolutionHost); - clearCache = cached.clearCache; - moduleResolutionHost = cached.moduleResolutionHost; + addCache(moduleResolutionHost); } - // loader.context seems to work fine on Linux / Mac regardless causes problems for @types resolution on Windows for TypeScript < 2.3 - const getCurrentDirectory = () => loader.context; - - const resolvers = makeResolvers( + return makeResolvers( compiler, compilerOptions, moduleResolutionHost, @@ -129,52 +97,161 @@ export function makeServicesHost( instance ); - const servicesHost: typescript.LanguageServiceHost = { + function fileExists(filePathToCheck: string) { + const outputFile = instance.solutionBuilderHost?.getOutputFileFromReferencedProject( + filePathToCheck + ); + if (outputFile !== undefined) { + return !!outputFile; + } + return originalFileExists(filePathToCheck); + } + + function readFile( + filePath: string, + encoding?: string | undefined + ): string | undefined { + const outputFile = instance.solutionBuilderHost?.getOutputFileFromReferencedProject( + filePath + ); + if (outputFile !== undefined) { + return outputFile ? outputFile.text : undefined; + } + return ( + instance.compiler.sys.readFile(filePath, encoding) || + fsReadFile(filePath, encoding) + ); + } + + function directoryExists(directoryName: string) { + return instance.solutionBuilderHost + ? instance.solutionBuilderHost.directoryExists!(directoryName) + : compiler.sys.directoryExists(directoryName); + } + + function realpath(path: string) { + return instance.solutionBuilderHost + ? instance.solutionBuilderHost.realpath!(path) + : compiler.sys.realpath!(path); + } + + function getDirectories(path: string) { + return instance.solutionBuilderHost + ? instance.solutionBuilderHost.getDirectories!(path) + : compiler.sys.getDirectories(path); + } + + function readDirectory( + path: string, + extensions?: readonly string[], + exclude?: readonly string[], + include?: readonly string[], + depth?: number + ) { + return instance.solutionBuilderHost + ? instance.solutionBuilderHost.readDirectory!( + path, + extensions, + exclude, + include, + depth + ) + : compiler.sys.readDirectory(path, extensions, exclude, include, depth); + } +} + +/** + * Create the TypeScript language service + */ +export function makeServicesHost( + scriptRegex: RegExp, + loader: webpack.loader.LoaderContext, + instance: TSInstance, + projectReferences?: ReadonlyArray +): ServiceHostWhichMayBeCacheable { + const { compiler, compilerOptions, files, filePathKeyMapper } = instance; + + const { + moduleResolutionHost: { + fileExists, + readFile, + trace, + directoryExists, + realpath, + getCurrentDirectory, + getDirectories, + clearCache, + useCaseSensitiveFileNames, + getNewLine, + getDefaultLibFileName, + readDirectory, + }, + resolveModuleNames, + resolveTypeReferenceDirectives, + } = makeResolversHandlingProjectReferences( + scriptRegex, + loader, + instance, + filePathToCheck => + compiler.sys.fileExists(filePathToCheck) || + fsReadFile(filePathToCheck) !== undefined, + instance.loaderOptions.experimentalFileCaching + ); + + const servicesHost: ServiceHostWhichMayBeCacheable = { getProjectVersion: () => `${instance.version}`, getProjectReferences: () => projectReferences, getScriptFileNames: () => - [...files.keys()].filter(filePath => filePath.match(scriptRegex)), + [...files.values()] + .map(({ fileName }) => fileName) + .filter(filePath => filePath.match(scriptRegex)), getScriptVersion: (fileName: string) => { fileName = path.normalize(fileName); - const file = files.get(fileName); + const key = filePathKeyMapper(fileName); + const file = files.get(key); if (file) { return file.version.toString(); } - const outputFile = + const outputFileAndKey = instance.solutionBuilderHost && - instance.solutionBuilderHost.getOutputFileFromReferencedProject( + instance.solutionBuilderHost.getOutputFileAndKeyFromReferencedProject( fileName ); - if (outputFile !== undefined) { + if (outputFileAndKey !== undefined) { instance.solutionBuilderHost!.outputAffectingInstanceVersion.set( - path.resolve(fileName), + outputFileAndKey.key, true ); } - return outputFile ? outputFile.version.toString() : ''; + return outputFileAndKey && outputFileAndKey.outputFile + ? outputFileAndKey.outputFile.version.toString() + : ''; }, getScriptSnapshot: (fileName: string) => { // This is called any time TypeScript needs a file's text // We either load from memory or from disk fileName = path.normalize(fileName); - let file = files.get(fileName); + const key = filePathKeyMapper(fileName); + let file = files.get(key); if (file === undefined) { if (instance.solutionBuilderHost) { - const outputFile = instance.solutionBuilderHost.getOutputFileFromReferencedProject( + const outputFileAndKey = instance.solutionBuilderHost.getOutputFileAndKeyFromReferencedProject( fileName ); - if (outputFile !== undefined) { + if (outputFileAndKey !== undefined) { instance.solutionBuilderHost!.outputAffectingInstanceVersion.set( - path.resolve(fileName), + outputFileAndKey.key, true ); - return outputFile - ? compiler.ScriptSnapshot.fromString(outputFile.text) + return outputFileAndKey && outputFileAndKey.outputFile + ? compiler.ScriptSnapshot.fromString( + outputFileAndKey.outputFile.text + ) : undefined; } } @@ -184,8 +261,8 @@ export function makeServicesHost( return undefined; } - file = { version: 0, text }; - files.set(fileName, file); + file = { fileName, version: 0, text }; + files.set(key, file); } return compiler.ScriptSnapshot.fromString(file.text!); @@ -195,46 +272,46 @@ export function makeServicesHost( * getDirectories is also required for full import and type reference completions. * Without it defined, certain completions will not be provided */ - getDirectories: compiler.sys.getDirectories, + getDirectories, /** * For @types expansion, these two functions are needed. */ - directoryExists: moduleResolutionHost.directoryExists, + directoryExists, - useCaseSensitiveFileNames: () => compiler.sys.useCaseSensitiveFileNames, + useCaseSensitiveFileNames, - realpath: moduleResolutionHost.realpath, + realpath, // The following three methods are necessary for @types resolution from TS 2.4.1 onwards see: https://github.com/Microsoft/TypeScript/issues/16772 - fileExists: moduleResolutionHost.fileExists, - readFile: moduleResolutionHost.readFile, - readDirectory: compiler.sys.readDirectory, + fileExists, + readFile, + readDirectory, getCurrentDirectory, getCompilationSettings: () => compilerOptions, - getDefaultLibFileName: (options: typescript.CompilerOptions) => - compiler.getDefaultLibFilePath(options), - getNewLine: () => newLine, - trace: instance.log.log, - log: instance.log.log, + getDefaultLibFileName, + getNewLine, + trace, + log: trace, // used for (/// ) see https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/250#issuecomment-485061329 - resolveTypeReferenceDirectives: resolvers.resolveTypeReferenceDirectives, + resolveTypeReferenceDirectives, - resolveModuleNames: resolvers.resolveModuleNames, + resolveModuleNames, getCustomTransformers: () => instance.transformers, + clearCache, }; - return { servicesHost, clearCache }; + return servicesHost; } -function makeResolvers( +function makeResolvers( compiler: typeof typescript, compilerOptions: typescript.CompilerOptions, - moduleResolutionHost: typescript.ModuleResolutionHost, + moduleResolutionHost: T, customResolveTypeReferenceDirective: CustomResolveTypeReferenceDirective, customResolveModuleName: CustomResolveModuleName, resolveSync: ResolveSync, @@ -287,7 +364,7 @@ function makeResolvers( ) ); - populateDependencyGraphs(resolvedModules, instance, containingFile); + populateDependencyGraph(resolvedModules, instance, containingFile); return resolvedModules; }; @@ -295,10 +372,14 @@ function makeResolvers( return { resolveTypeReferenceDirectives, resolveModuleNames, + moduleResolutionHost, }; } -function createWatchFactory(): WatchFactory { +function createWatchFactory( + filePathKeyMapper: (fileName: string) => FilePathKey, + compiler: typeof typescript +): WatchFactory { const watchedFiles: WatchCallbacks = new Map(); const watchedDirectories: WatchCallbacks = new Map(); const watchedDirectoriesRecursive: WatchCallbacks = new Map(); @@ -308,20 +389,19 @@ function createWatchFactory(): WatchFactory { watchedDirectories, watchedDirectoriesRecursive, invokeFileWatcher, - invokeDirectoryWatcher, watchFile, watchDirectory, }; function invokeWatcherCallbacks( map: - | Map - | Map, + | WatchCallbacks + | WatchCallbacks, key: string, fileName: string, eventKind?: typescript.FileWatcherEventKind - ) { - const callbacks = map.get(key); + ): boolean { + const callbacks = map.get(filePathKeyMapper(key))?.callbacks; if (callbacks !== undefined && callbacks.length) { // The array copy is made to ensure that even if one of the callback removes the callbacks, // we dont miss any callbacks following it @@ -329,40 +409,49 @@ function createWatchFactory(): WatchFactory { for (const cb of cbs) { cb(fileName, eventKind as typescript.FileWatcherEventKind); } + return true; } + return false; } function invokeFileWatcher( fileName: string, eventKind: typescript.FileWatcherEventKind - ) { + ): boolean { fileName = path.normalize(fileName); - invokeWatcherCallbacks(watchedFiles, fileName, fileName, eventKind); - } - - function invokeDirectoryWatcher( - directory: string, - fileAddedOrRemoved: string - ) { - directory = path.normalize(directory); - invokeWatcherCallbacks(watchedDirectories, directory, fileAddedOrRemoved); - invokeRecursiveDirectoryWatcher(directory, fileAddedOrRemoved); + let result = invokeWatcherCallbacks( + watchedFiles, + fileName, + fileName, + eventKind + ); + if (eventKind !== compiler.FileWatcherEventKind.Changed) { + const directory = path.dirname(fileName); + result = + invokeWatcherCallbacks(watchedDirectories, directory, fileName) || + result; + result = invokeRecursiveDirectoryWatcher(directory, fileName) || result; + } + return result; } + ``; function invokeRecursiveDirectoryWatcher( directory: string, fileAddedOrRemoved: string - ) { + ): boolean { directory = path.normalize(directory); - invokeWatcherCallbacks( + let result = invokeWatcherCallbacks( watchedDirectoriesRecursive, directory, fileAddedOrRemoved ); const basePath = path.dirname(directory); if (directory !== basePath) { - invokeRecursiveDirectoryWatcher(basePath, fileAddedOrRemoved); + result = + invokeRecursiveDirectoryWatcher(basePath, fileAddedOrRemoved) || result; } + return result; } function createWatcher( @@ -370,20 +459,23 @@ function createWatchFactory(): WatchFactory { callbacks: WatchCallbacks, callback: T ): typescript.FileWatcher { - file = path.normalize(file); - const existing = callbacks.get(file); + const key = filePathKeyMapper(file); + const existing = callbacks.get(key); if (existing === undefined) { - callbacks.set(file, [callback]); + callbacks.set(key, { + fileName: path.normalize(file), + callbacks: [callback], + }); } else { - existing.push(callback); + existing.callbacks.push(callback); } return { close: () => { - const existing = callbacks.get(file); + const existing = callbacks.get(key); if (existing !== undefined) { - unorderedRemoveItem(existing, callback); - if (!existing.length) { - callbacks.delete(file); + unorderedRemoveItem(existing.callbacks, callback); + if (!existing.callbacks.length) { + callbacks.delete(key); } } }, @@ -413,12 +505,12 @@ function createWatchFactory(): WatchFactory { export function updateFileWithText( instance: TSInstance, + key: FilePathKey, filePath: string, text: (nFilePath: string) => string ) { const nFilePath = path.normalize(filePath); - const file = - instance.files.get(nFilePath) || instance.otherFiles.get(nFilePath); + const file = instance.files.get(key) || instance.otherFiles.get(key); if (file !== undefined) { const newText = text(nFilePath); if (newText !== file.text) { @@ -427,9 +519,9 @@ export function updateFileWithText( file.modifiedTime = new Date(); instance.version++; if (!instance.modifiedFiles) { - instance.modifiedFiles = new Map(); + instance.modifiedFiles = new Map(); } - instance.modifiedFiles.set(nFilePath, file); + instance.modifiedFiles.set(key, true); if (instance.watchHost !== undefined) { instance.watchHost.invokeFileWatcher( nFilePath, @@ -458,93 +550,88 @@ export function makeWatchHost( const { compiler, compilerOptions, - appendTsTsxSuffixesIfRequired, files, otherFiles, - loaderOptions: { - resolveModuleName: customResolveModuleName, - resolveTypeReferenceDirective: customResolveTypeReferenceDirective, - }, + filePathKeyMapper, } = instance; - const newLine = - compilerOptions.newLine === constants.CarriageReturnLineFeedCode - ? constants.CarriageReturnLineFeed - : compilerOptions.newLine === constants.LineFeedCode - ? constants.LineFeed - : constants.EOL; - - // make a (sync) resolver that follows webpack's rules - const resolveSync = makeResolver(loader._compiler.options); - - const readFileWithFallback = ( - filePath: string, - encoding?: string | undefined - ): string | undefined => readFileWithInstance(instance, filePath, encoding); - - const moduleResolutionHost: ModuleResolutionHost = { - fileExists, - readFile: readFileWithFallback, - realpath: compiler.sys.realpath, - }; - - // loader.context seems to work fine on Linux / Mac regardless causes problems for @types resolution on Windows for TypeScript < 2.3 - const getCurrentDirectory = () => loader.context; - + const { watchFile, watchDirectory, invokeFileWatcher } = createWatchFactory( + filePathKeyMapper, + compiler + ); const { - watchFile, - watchDirectory, - invokeFileWatcher, - invokeDirectoryWatcher, - } = createWatchFactory(); - const resolvers = makeResolvers( - compiler, - compilerOptions, - moduleResolutionHost, - customResolveTypeReferenceDirective, - customResolveModuleName, - resolveSync, - appendTsTsxSuffixesIfRequired, + moduleResolutionHost: { + fileExists, + readFile, + trace, + directoryExists, + realpath, + getCurrentDirectory, + getDirectories, + useCaseSensitiveFileNames, + getNewLine, + getDefaultLibFileName, + readDirectory, + }, + resolveModuleNames, + resolveTypeReferenceDirectives, + } = makeResolversHandlingProjectReferences( scriptRegex, - instance + loader, + instance, + (fileName: string) => { + const filePath = filePathKeyMapper(fileName); + return files.has(filePath) || compiler.sys.fileExists(filePath); + }, + /*enabledCaching*/ false ); const watchHost: WatchHost = { rootFiles: getRootFileNames(), options: compilerOptions, - useCaseSensitiveFileNames: () => compiler.sys.useCaseSensitiveFileNames, - getNewLine: () => newLine, + useCaseSensitiveFileNames, + getNewLine, getCurrentDirectory, - getDefaultLibFileName: options => compiler.getDefaultLibFilePath(options), + getDefaultLibFileName, fileExists, readFile: readFileWithCachingText, - directoryExists: dirPath => - compiler.sys.directoryExists(path.normalize(dirPath)), - getDirectories: dirPath => - compiler.sys.getDirectories(path.normalize(dirPath)), - readDirectory: (dirPath, extensions, exclude, include, depth) => - compiler.sys.readDirectory( - path.normalize(dirPath), - extensions, - exclude, - include, - depth - ), - realpath: dirPath => compiler.sys.resolvePath(path.normalize(dirPath)), - trace: logData => instance.log.log(logData), + directoryExists, + getDirectories, + readDirectory, + realpath, + trace, + + watchFile: (fileName, callback, pollingInterval, options) => { + const outputFileAndKey = instance.solutionBuilderHost?.getOutputFileAndKeyFromReferencedProject( + fileName + ); + if ( + !outputFileAndKey || + outputFileAndKey.key === filePathKeyMapper(fileName) + ) { + return watchFile(fileName, callback, pollingInterval, options); + } - watchFile, + // Handle symlink to outputFile + const outputFileName = instance.solutionBuilderHost!.realpath!(fileName); + const watcher = watchFile( + outputFileName, + (_fileName, eventKind) => callback(fileName, eventKind), + pollingInterval, + options + ); + + return { close: () => watcher.close() }; + }, watchDirectory, // used for (/// ) see https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/250#issuecomment-485061329 - resolveTypeReferenceDirectives: resolvers.resolveTypeReferenceDirectives, - - resolveModuleNames: resolvers.resolveModuleNames, + resolveTypeReferenceDirectives, + resolveModuleNames, invokeFileWatcher, - invokeDirectoryWatcher, updateRootFileNames: () => { instance.changedFilesList = false; if (instance.watchOfFilesAndCompilerOptions !== undefined) { @@ -563,28 +650,32 @@ export function makeWatchHost( return watchHost; function getRootFileNames() { - return [...files.keys()].filter(filePath => filePath.match(scriptRegex)); + return [...files.values()] + .map(({ fileName }) => fileName) + .filter(filePath => filePath.match(scriptRegex)); } function readFileWithCachingText(fileName: string, encoding?: string) { fileName = path.normalize(fileName); - const file = files.get(fileName) || otherFiles.get(fileName); + const key = filePathKeyMapper(fileName); + const file = files.get(key) || otherFiles.get(key); if (file !== undefined) { return file.text; } - const text = readFileWithFallback(fileName, encoding); + const text = readFile(fileName, encoding); if (text === undefined) { return undefined; } - otherFiles.set(fileName, { version: 0, text }); + if ( + !instance.solutionBuilderHost?.getOutputFileKeyFromReferencedProject( + fileName + ) + ) { + otherFiles.set(key, { fileName, version: 0, text }); + } return text; } - function fileExists(fileName: string) { - const filePath = path.normalize(fileName); - return files.has(filePath) || compiler.sys.fileExists(filePath); - } - function createBuilderProgramWithReferences( rootNames: ReadonlyArray | undefined, options: typescript.CompilerOptions | undefined, @@ -613,8 +704,8 @@ export function makeWatchHost( } } -function normalizeSlashes(file: string): string { - return file.replace(/\\/g, '/'); +function normalizeSlashes(file: T): T { + return file.replace(/\\/g, '/') as T; } /** @@ -634,13 +725,17 @@ export function makeSolutionBuilderHost( resolveTypeReferenceDirective: customResolveTypeReferenceDirective, transpileOnly, }, + filePathKeyMapper, } = instance; // loader.context seems to work fine on Linux / Mac regardless causes problems for @types resolution on Windows for TypeScript < 2.3 const getCurrentDirectory = () => loader.context; - const formatDiagnosticHost: FormatDiagnosticsHost = { + const formatDiagnosticHost: typescript.FormatDiagnosticsHost = { getCurrentDirectory: compiler.sys.getCurrentDirectory, - getCanonicalFileName: compiler.sys.useCaseSensitiveFileNames + getCanonicalFileName: useCaseSensitiveFileNames( + compiler, + instance.loaderOptions + ) ? s => s : s => s.toLowerCase(), getNewLine: () => compiler.sys.newLine, @@ -653,7 +748,7 @@ export function makeSolutionBuilderHost( }; const reportDiagnostic = (d: typescript.Diagnostic) => { if (transpileOnly) { - const filePath = d.file ? path.resolve(d.file.fileName) : undefined; + const filePath = d.file ? filePathKeyMapper(d.file.fileName) : undefined; const last = diagnostics.transpileErrors[diagnostics.transpileErrors.length - 1]; if (diagnostics.transpileErrors.length && last[0] === filePath) { @@ -662,7 +757,7 @@ export function makeSolutionBuilderHost( diagnostics.transpileErrors.push([filePath, [d]]); } } else if (d.file) { - const filePath = path.resolve(d.file.fileName); + const filePath = filePathKeyMapper(d.file.fileName); const existing = diagnostics.perFile.get(filePath); if (existing) { existing.push(d); @@ -688,12 +783,21 @@ export function makeSolutionBuilderHost( compiler.sys.newLine )}${newLine + newLine}` ); - const outputFiles = new Map(); + const outputFiles = new Map(); const writtenFiles: OutputFile[] = []; - const outputAffectingInstanceVersion = new Map(); + const outputAffectingInstanceVersion = new Map(); let timeoutId: [(...args: any[]) => void, any[]] | undefined; - const configFileInfo = new Map(); + const symlinkedDirectories = new Map(); + const symlinkedFiles = new Map(); + const cachedSys: CacheableHost = { + fileExists: fileName => compiler.sys.fileExists(fileName), + directoryExists: directory => compiler.sys.directoryExists(directory), + realpath: compiler.sys.realpath && (path => compiler.sys.realpath!(path)), + }; + addCache(cachedSys); + + const configFileInfo = new Map(); const solutionBuilderHost: SolutionBuilderWithWatchHost = { ...compiler.createSolutionBuilderWithWatchHost( compiler.sys, @@ -702,8 +806,10 @@ export function makeSolutionBuilderHost( reportSolutionBuilderStatus, reportWatchStatus ), + useCaseSensitiveFileNames: () => + useCaseSensitiveFileNames(compiler, instance.loaderOptions), diagnostics, - ...createWatchFactory(), + ...createWatchFactory(filePathKeyMapper, compiler), // Overrides getCurrentDirectory, // behave as if there is no tsbuild info on disk since we want to generate all outputs in memory and only use those @@ -716,9 +822,9 @@ export function makeSolutionBuilderHost( : readInputFile(fileName, encoding).text; }, writeFile: (name, text, writeByteOrderMark) => { - updateFileWithText(instance, name, () => text); - const resolvedFileName = path.resolve(name); - const existing = outputFiles.get(resolvedFileName); + const key = filePathKeyMapper(name); + updateFileWithText(instance, key, name, () => text); + const existing = outputFiles.get(key); const newOutputFile: OutputFile = { name, text, @@ -730,23 +836,43 @@ export function makeSolutionBuilderHost( : existing.version : 0, }; - outputFiles.set(resolvedFileName, newOutputFile); + outputFiles.set(key, newOutputFile); writtenFiles.push(newOutputFile); if ( - outputAffectingInstanceVersion.has(resolvedFileName) && + outputAffectingInstanceVersion.has(key) && (!existing || existing.text !== text) ) { instance.version++; } + if ( + instance.watchHost && + !instance.files.has(key) && + !instance.otherFiles.has(key) + ) { + // If file wasnt updated in files or other files of instance, let watch host know of the change + if (!existing) { + instance.hasUnaccountedModifiedFiles = + instance.watchHost.invokeFileWatcher( + name, + compiler.FileWatcherEventKind.Created + ) || instance.hasUnaccountedModifiedFiles; + } else if (existing.version !== newOutputFile.version) { + instance.hasUnaccountedModifiedFiles = + instance.watchHost.invokeFileWatcher( + name, + compiler.FileWatcherEventKind.Changed + ) || instance.hasUnaccountedModifiedFiles; + } + } + compiler.sys.writeFile(name, text, writeByteOrderMark); }, getModifiedTime: fileName => { const outputFile = ensureOutputFile(fileName); if (outputFile !== undefined) { return outputFile ? outputFile.time : undefined; } - const existing = - instance.files.get(path.resolve(fileName)) || - instance.otherFiles.get(path.resolve(fileName)); + const key = filePathKeyMapper(fileName); + const existing = instance.files.get(key) || instance.otherFiles.get(key); return existing ? existing.modifiedTime : compiler.sys.getModifiedTime!(fileName); @@ -759,9 +885,8 @@ export function makeSolutionBuilderHost( } } compiler.sys.setModifiedTime!(fileName, time); - const existing = - instance.files.get(path.resolve(fileName)) || - instance.otherFiles.get(path.resolve(fileName)); + const key = filePathKeyMapper(fileName); + const existing = instance.files.get(key) || instance.otherFiles.get(key); if (existing) { existing.modifiedTime = time; } @@ -771,25 +896,42 @@ export function makeSolutionBuilderHost( if (outputFile !== undefined) { return !!outputFile; } - const existing = - instance.files.get(path.resolve(fileName)) || - instance.otherFiles.get(path.resolve(fileName)); + const key = filePathKeyMapper(fileName); + const existing = instance.files.get(key) || instance.otherFiles.get(key); return existing ? existing.text !== undefined - : compiler.sys.fileExists(fileName); + : cachedSys.fileExists(fileName); }, directoryExists: directory => { - if (compiler.sys.directoryExists(directory)) { + if (cachedSys.directoryExists(directory)) { return true; } - const resolvedDirectory = normalizeSlashes(path.resolve(directory)) + '/'; + const resolvedDirectory = trailingDirectorySeparatorPathKey(directory); for (const outputFile of outputFiles.keys()) { if (normalizeSlashes(outputFile).startsWith(resolvedDirectory)) { return true; } } - return false; + + // see if this is symlink to in memory files's directory + const ancestor = findExistingAncestor(directory); + const ancestorRealpath = getRealpathOfExistingDirectory(ancestor); + + return ancestorRealpath + ? solutionBuilderHost.directoryExists!( + path.resolve(ancestorRealpath, path.relative(ancestor, directory)) + ) + : false; }, + getDirectories: directory => + cachedSys.directoryExists(directory) + ? compiler.sys.getDirectories(directory) + : [], // Fake for non present directories, + readDirectory: (path, extensions, exclude, include, depth) => + cachedSys.directoryExists(path) + ? compiler.sys.readDirectory(path, extensions, exclude, include, depth) + : [], // Fake for non present directories, + realpath: cachedSys.realpath && (file => getRealpathOfFile(file) || file), afterProgramEmitAndDiagnostics: transpileOnly ? undefined : storeDtsFiles, setTimeout: (callback, _time, ...args) => { timeoutId = [callback, args]; @@ -801,18 +943,21 @@ export function makeSolutionBuilderHost( writtenFiles, configFileInfo, outputAffectingInstanceVersion, + getOutputFileKeyFromReferencedProject, getOutputFileFromReferencedProject, + getOutputFileAndKeyFromReferencedProject, getInputFileNameFromOutput: fileName => { const result = getInputFileNameFromOutput(fileName); return typeof result === 'string' ? result : undefined; }, getOutputFilesFromReferencedProjectInput, buildReferences, + clearCache, }; solutionBuilderHost.trace = logData => instance.log.logInfo(logData); solutionBuilderHost.getParsedCommandLine = file => { const config = getParsedCommandLine(compiler, instance.loaderOptions, file); - configFileInfo.set(path.resolve(file), { config }); + configFileInfo.set(filePathKeyMapper(file), { config }); return config; }; @@ -836,6 +981,77 @@ export function makeSolutionBuilderHost( return solutionBuilderHost; + function trailingDirectorySeparatorPathKey(directory: string) { + return ensureTrailingDirectorySeparator( + normalizeSlashes(filePathKeyMapper(directory)) + ); + } + + function clearCache() { + cachedSys.clearCache!(); + symlinkedDirectories.clear(); + symlinkedFiles.clear(); + } + + function findExistingAncestor(fileOrDirectory: string) { + let ancestor = path.dirname(fileOrDirectory); + while (ancestor !== path.dirname(ancestor)) { + if (cachedSys.directoryExists(ancestor)) return ancestor; + ancestor = path.dirname(ancestor); + } + // Root should always be present + return ancestor; + } + + function getRealpathOfExistingDirectory( + directory: string + ): string | undefined { + return getRealpath(directory, symlinkedDirectories, () => + cachedSys.realpath!(directory) + ); + } + + function getRealpathOfFile(file: string): string | undefined { + return getRealpath(file, symlinkedFiles, () => { + if (cachedSys.fileExists(file)) return cachedSys.realpath!(file); + + // see if this is symlink to in memory file + const ancestor = findExistingAncestor(file); + const ancestorRealpath = getRealpathOfExistingDirectory(ancestor); + if (!ancestorRealpath) return file; + + const newFile = path.resolve( + ancestorRealpath, + path.relative(ancestor, file) + ); + return getRealpathOfFile(newFile) || newFile; + }); + } + + function getRealpath( + fileOrDirectory: string, + symlinked: Map, + realpath: () => string + ): string | undefined { + if (!cachedSys.realpath) return undefined; + const fileOrDirectoryKey = filePathKeyMapper(fileOrDirectory); + const existing = symlinked.get(fileOrDirectoryKey); + if (existing !== undefined) return existing || undefined; + + const real = realpath(); + if ( + real === fileOrDirectory || + filePathKeyMapper(real) === fileOrDirectoryKey + ) { + // not symlinked + symlinked.set(fileOrDirectoryKey, false); + return undefined; + } + + symlinked.set(fileOrDirectoryKey, real); + return real; + } + function buildReferences() { if (!timeoutId) { return; @@ -875,27 +1091,31 @@ export function makeSolutionBuilderHost( function getInputFileNameFromOutput( outputFileName: string ): string | true | undefined { - const resolvedFileName = path.resolve(outputFileName); + const resolvedFileName = filePathKeyMapper(outputFileName); for (const configInfo of configFileInfo.values()) { ensureInputOutputInfo(configInfo); if (configInfo.outputFileNames) { - for (const [ + for (const { inputFileName, - outputFilesOfInput, - ] of configInfo.outputFileNames.entries()) { - if (outputFilesOfInput.indexOf(resolvedFileName) !== -1) { + outputNames, + } of configInfo.outputFileNames.values()) { + if (outputNames.indexOf(resolvedFileName) !== -1) { return inputFileName; } } } if ( configInfo.tsbuildInfoFile && - path.resolve(configInfo.tsbuildInfoFile) === resolvedFileName + filePathKeyMapper(configInfo.tsbuildInfoFile) === resolvedFileName ) { return true; } } - return undefined; + + const symlinkedOutputFileName = getRealpathOfFile(outputFileName); + return symlinkedOutputFileName + ? getInputFileNameFromOutput(symlinkedOutputFileName) + : undefined; } function ensureInputOutputInfo(configInfo: ConfigFileInfo) { @@ -904,14 +1124,14 @@ export function makeSolutionBuilderHost( } configInfo.outputFileNames = new Map(); configInfo.config.fileNames.forEach(inputFile => - configInfo.outputFileNames!.set( - path.resolve(inputFile), - getOutputFileNames( + configInfo.outputFileNames!.set(filePathKeyMapper(inputFile), { + inputFileName: path.resolve(inputFile), + outputNames: getOutputFileNames( instance, configInfo.config!, inputFile - ).map(output => path.resolve(output)) - ) + ).map(filePathKeyMapper), + }) ); configInfo.tsbuildInfoFile = instance.compiler @@ -925,11 +1145,31 @@ export function makeSolutionBuilderHost( ); } + function getOutputFileAndKeyFromReferencedProject( + outputFileName: string + ): { key: FilePathKey; outputFile: OutputFile | false } | undefined { + const key = getOutputFileKeyFromReferencedProject(outputFileName); + return key && { key, outputFile: outputFiles.get(key)! }; + } + function getOutputFileFromReferencedProject( outputFileName: string ): OutputFile | false | undefined { - const resolvedFileName = path.resolve(outputFileName); - return outputFiles.get(resolvedFileName); + const key = getOutputFileKeyFromReferencedProject(outputFileName); + return key && outputFiles.get(key); + } + + function getOutputFileKeyFromReferencedProject( + outputFileName: string + ): FilePathKey | undefined { + const key = filePathKeyMapper(outputFileName); + const result = outputFiles.has(key); + if (result) return key; + + const symlinkedOutputFileName = getRealpathOfFile(outputFileName); + return symlinkedOutputFileName + ? getOutputFileKeyFromReferencedProject(symlinkedOutputFileName) + : undefined; } function ensureOutputFile( @@ -943,10 +1183,12 @@ export function makeSolutionBuilderHost( if (!getInputFileNameFromOutput(outputFileName)) { return undefined; } - const resolvedFileName = path.resolve(outputFileName); + + outputFileName = getRealpathOfFile(outputFileName) || outputFileName; + const key = filePathKeyMapper(outputFileName); const text = compiler.sys.readFile(outputFileName, encoding); if (text === undefined) { - outputFiles.set(resolvedFileName, false); + outputFiles.set(key, false); return false; } const newOutputFile: OutputFile = { @@ -956,18 +1198,18 @@ export function makeSolutionBuilderHost( time: compiler.sys.getModifiedTime!(outputFileName)!, version: 0, }; - outputFiles.set(resolvedFileName, newOutputFile); + outputFiles.set(key, newOutputFile); return newOutputFile; } function getOutputFilesFromReferencedProjectInput(inputFileName: string) { - const resolvedFileName = path.resolve(inputFileName); + const resolvedFileName = filePathKeyMapper(inputFileName); for (const configInfo of configFileInfo.values()) { ensureInputOutputInfo(configInfo); if (configInfo.outputFileNames) { const result = configInfo.outputFileNames.get(resolvedFileName); if (result) { - return result + return result.outputNames .map(outputFile => outputFiles.get(outputFile)!) .filter(output => !!output) as OutputFile[]; } @@ -977,12 +1219,14 @@ export function makeSolutionBuilderHost( } function readInputFile(inputFileName: string, encoding: string | undefined) { - const resolvedFileName = path.resolve(inputFileName); + const resolvedFileName = filePathKeyMapper(inputFileName); const existing = instance.otherFiles.get(resolvedFileName); if (existing) { return existing; } + inputFileName = path.resolve(inputFileName); const tsFile: TSFile = { + fileName: inputFileName, version: 1, text: compiler.sys.readFile(inputFileName, encoding), modifiedTime: compiler.sys.getModifiedTime!(inputFileName), @@ -1024,7 +1268,7 @@ type ResolveTypeReferenceDirective = ( function makeResolveTypeReferenceDirective( compiler: typeof typescript, compilerOptions: typescript.CompilerOptions, - moduleResolutionHost: ModuleResolutionHost, + moduleResolutionHost: typescript.ModuleResolutionHost, customResolveTypeReferenceDirective: | CustomResolveTypeReferenceDirective | undefined @@ -1085,7 +1329,6 @@ function resolveModule( } catch (e) {} const tsResolution = resolveModuleName(moduleName, containingFile); - if (tsResolution.resolvedModule !== undefined) { const resolvedFileName = path.normalize( tsResolution.resolvedModule.resolvedFileName @@ -1115,7 +1358,7 @@ type ResolveModuleName = ( function makeResolveModuleName( compiler: typeof typescript, compilerOptions: typescript.CompilerOptions, - moduleResolutionHost: ModuleResolutionHost, + moduleResolutionHost: typescript.ModuleResolutionHost, customResolveModuleName: CustomResolveModuleName | undefined ): ResolveModuleName { if (customResolveModuleName === undefined) { @@ -1138,48 +1381,12 @@ function makeResolveModuleName( ); } -function populateDependencyGraphs( - resolvedModules: ResolvedModule[], - instance: TSInstance, - containingFile: string -) { - resolvedModules = resolvedModules.filter( - mod => mod !== null && mod !== undefined - ); - - instance.dependencyGraph[path.normalize(containingFile)] = resolvedModules; - - resolvedModules.forEach(resolvedModule => { - if ( - instance.reverseDependencyGraph[resolvedModule.resolvedFileName] === - undefined - ) { - instance.reverseDependencyGraph[resolvedModule.resolvedFileName] = {}; - } - instance.reverseDependencyGraph[resolvedModule.resolvedFileName]![ - path.normalize(containingFile) - ] = true; - }); -} - -function addCache( - servicesHost: typescript.ModuleResolutionHost -): { - moduleResolutionHost: typescript.ModuleResolutionHost; - clearCache: () => void; -} { +function addCache(host: CacheableHost): void { const clearCacheFunctions: Action[] = []; - return { - moduleResolutionHost: { - ...servicesHost, - fileExists: createCache(servicesHost.fileExists), - directoryExists: - servicesHost.directoryExists && - createCache(servicesHost.directoryExists), - realpath: servicesHost.realpath && createCache(servicesHost.realpath), - }, - clearCache: () => clearCacheFunctions.forEach(clear => clear()), - }; + host.fileExists = createCache(host.fileExists); + host.directoryExists = createCache(host.directoryExists); + host.realpath = host.realpath && createCache(host.realpath); + host.clearCache = () => clearCacheFunctions.forEach(clear => clear()); function createCache(originalFunction: (arg: string) => TOut) { const cache = new Map(); diff --git a/src/utils.ts b/src/utils.ts index e3809c636..7a03543dd 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -3,20 +3,20 @@ import * as fs from 'fs'; import * as micromatch from 'micromatch'; import * as path from 'path'; import * as typescript from 'typescript'; -import * as webpack from 'webpack'; import constants = require('./constants'); import { - DependencyGraph, ErrorInfo, + FilePathKey, LoaderOptions, + ResolvedModule, ReverseDependencyGraph, Severity, TSInstance, WebpackError, WebpackModule, } from './interfaces'; - +import { getInputFileNameFromOutput } from './instances'; /** * The default error formatter. */ @@ -111,7 +111,7 @@ export function formatErrors( }); } -export function readFile( +export function fsReadFile( fileName: string, encoding: string | undefined = 'utf8' ) { @@ -174,56 +174,65 @@ export function unorderedRemoveItem(array: T[], item: T): boolean { return false; } -/** - * Recursively collect all possible dependants of passed file - */ -export function collectAllDependants( - reverseDependencyGraph: ReverseDependencyGraph, - fileName: string, - collected: { [file: string]: boolean } = {} -): string[] { - const result = {}; - result[fileName] = true; - collected[fileName] = true; - const dependants = reverseDependencyGraph[fileName]; - if (dependants !== undefined) { - Object.keys(dependants).forEach(dependantFileName => { - if (!collected[dependantFileName]) { - collectAllDependants( - reverseDependencyGraph, - dependantFileName, - collected - ).forEach(fName => (result[fName] = true)); +export function populateDependencyGraph( + resolvedModules: ResolvedModule[], + instance: TSInstance, + containingFile: string +) { + resolvedModules = resolvedModules.filter( + mod => mod !== null && mod !== undefined + ); + if (resolvedModules.length) { + const containingFileKey = instance.filePathKeyMapper(containingFile); + instance.dependencyGraph.set(containingFileKey, resolvedModules); + } +} + +export function populateReverseDependencyGraph(instance: TSInstance) { + const reverseDependencyGraph: ReverseDependencyGraph = new Map(); + for (const [fileKey, resolvedModules] of instance.dependencyGraph.entries()) { + const inputFileName = + instance.solutionBuilderHost && + getInputFileNameFromOutput(instance, fileKey); + const containingFileKey = inputFileName + ? instance.filePathKeyMapper(inputFileName) + : fileKey; + resolvedModules.forEach(({ resolvedFileName }) => { + const key = instance.filePathKeyMapper( + instance.solutionBuilderHost + ? getInputFileNameFromOutput(instance, resolvedFileName) || + resolvedFileName + : resolvedFileName + ); + let map = reverseDependencyGraph.get(key); + if (!map) { + map = new Map(); + reverseDependencyGraph.set(key, map); } + map.set(containingFileKey, true); }); } - return Object.keys(result); + return reverseDependencyGraph; } /** - * Recursively collect all possible dependencies of passed file + * Recursively collect all possible dependants of passed file */ -export function collectAllDependencies( - dependencyGraph: DependencyGraph, - filePath: string, - collected: { [file: string]: boolean } = {} -): string[] { - const result = {}; - result[filePath] = true; - collected[filePath] = true; - const directDependencies = dependencyGraph[filePath]; - if (directDependencies !== undefined) { - directDependencies.forEach(dependencyModule => { - if (!collected[dependencyModule.originalFileName]) { - collectAllDependencies( - dependencyGraph, - dependencyModule.resolvedFileName, - collected - ).forEach(depFilePath => (result[depFilePath] = true)); +export function collectAllDependants( + reverseDependencyGraph: ReverseDependencyGraph, + fileName: FilePathKey, + result: Map = new Map() +): Map { + result.set(fileName, true); + const dependants = reverseDependencyGraph.get(fileName); + if (dependants !== undefined) { + for (const dependantFileName of dependants.keys()) { + if (!result.has(dependantFileName)) { + collectAllDependants(reverseDependencyGraph, dependantFileName, result); } - }); + } } - return Object.keys(result); + return result; } export function arrify(val: T | T[]) { @@ -234,6 +243,22 @@ export function arrify(val: T | T[]) { return Array.isArray(val) ? val : [val]; } +export function ensureTrailingDirectorySeparator(dir: T): T { + return hasTrailingDirectorySeparator(dir) ? dir : ((dir + '/') as T); +} + +function isAnyDirectorySeparator(charCode: number): boolean { + return ( + charCode === 0x2f || charCode === 0x5c // / + ); // \ +} + +function hasTrailingDirectorySeparator(dir: string) { + return ( + dir.length > 0 && isAnyDirectorySeparator(dir.charCodeAt(dir.length - 1)) + ); +} + export function ensureProgram(instance: TSInstance) { if (instance && instance.watchHost) { if (instance.hasUnaccountedModifiedFiles) { @@ -254,164 +279,29 @@ export function ensureProgram(instance: TSInstance) { return instance.program; } -export function supportsProjectReferences(instance: TSInstance) { - const program = ensureProgram(instance); - return program && !!program.getProjectReferences; -} - -export function isUsingProjectReferences(instance: TSInstance) { - if ( - instance.loaderOptions.projectReferences && - supportsProjectReferences(instance) - ) { - const program = ensureProgram(instance); - return Boolean(program && program.getProjectReferences()); - } - return false; -} - -/** - * Gets the project reference for a file from the cache if it exists, - * or gets it from TypeScript and caches it otherwise. - */ -export function getAndCacheProjectReference( - filePath: string, - instance: TSInstance -) { - // When using solution builder, dont do the project reference caching - if (instance.solutionBuilderHost) { - return undefined; - } - - const file = instance.files.get(filePath); - if (file !== undefined && file.projectReference) { - return file.projectReference.project; - } - - const projectReference = getProjectReferenceForFile(filePath, instance); - if (file !== undefined) { - file.projectReference = { project: projectReference }; - } - - return projectReference; -} - -function getResolvedProjectReferences( - program: typescript.Program -): typescript.ResolvedProjectReference[] | undefined { - const getProjectReferences = - (program as any).getResolvedProjectReferences || - program.getProjectReferences; - if (getProjectReferences) { - return getProjectReferences(); - } - return; -} - -function getProjectReferenceForFile(filePath: string, instance: TSInstance) { - if (isUsingProjectReferences(instance)) { - const program = ensureProgram(instance); - return ( - program && - getResolvedProjectReferences(program)!.find( - ref => - (ref && - ref.commandLine.fileNames.some( - file => path.normalize(file) === filePath - )) || - false - ) - ); - } - - return; -} - -export function validateSourceMapOncePerProject( - instance: TSInstance, - loader: webpack.loader.LoaderContext, - jsFileName: string, - project: typescript.ResolvedProjectReference -) { - const { projectsMissingSourceMaps = new Set() } = instance; - if (!projectsMissingSourceMaps.has(project.sourceFile.fileName)) { - instance.projectsMissingSourceMaps = projectsMissingSourceMaps; - projectsMissingSourceMaps.add(project.sourceFile.fileName); - const mapFileName = jsFileName + '.map'; - if (!instance.compiler.sys.fileExists(mapFileName)) { - const [relativeJSPath, relativeProjectConfigPath] = [ - path.relative(loader.rootContext, jsFileName), - path.relative(loader.rootContext, project.sourceFile.fileName), - ]; - loader.emitWarning( - new Error( - 'Could not find source map file for referenced project output ' + - `${relativeJSPath}. Ensure the 'sourceMap' compiler option ` + - `is enabled in ${relativeProjectConfigPath} to ensure Webpack ` + - 'can map project references to the appropriate source files.' - ) - ); - } - } -} - export function supportsSolutionBuild(instance: TSInstance) { return ( !!instance.configFilePath && !!instance.loaderOptions.projectReferences && - !!instance.compiler.InvalidatedProjectKind && !!instance.configParseResult.projectReferences && !!instance.configParseResult.projectReferences.length ); } -/** - * Gets the output JS file path for an input file governed by a composite project. - * Pulls from the cache if it exists; computes and caches the result otherwise. - */ -export function getAndCacheOutputJSFileName( - inputFileName: string, - projectReference: typescript.ResolvedProjectReference, - instance: TSInstance -) { - const file = instance.files.get(inputFileName); - if (file && file.projectReference && file.projectReference.outputFileName) { - return file.projectReference.outputFileName; - } - - const outputFileName = getOutputJavaScriptFileName( - inputFileName, - projectReference +export function isReferencedFile(instance: TSInstance, filePath: string) { + return ( + !!instance.solutionBuilderHost && + !!instance.solutionBuilderHost.watchedFiles.get( + instance.filePathKeyMapper(filePath) + ) ); - - if (file !== undefined) { - file.projectReference = file.projectReference || { - project: projectReference, - }; - file.projectReference.outputFileName = outputFileName; - } - - return outputFileName; } -// Adapted from https://github.com/Microsoft/TypeScript/blob/45101491c0b077c509b25830ef0ee5f85b293754/src/compiler/tsbuild.ts#L305 -function getOutputJavaScriptFileName( - inputFileName: string, - projectReference: typescript.ResolvedProjectReference +export function useCaseSensitiveFileNames( + compiler: typeof typescript, + loaderOptions: LoaderOptions ) { - const { options } = projectReference.commandLine; - const projectDirectory = - options.rootDir || path.dirname(projectReference.sourceFile.fileName); - const relativePath = path.relative(projectDirectory, inputFileName); - const outputPath = path.resolve( - options.outDir || projectDirectory, - relativePath - ); - const newExtension = constants.jsonRegex.test(inputFileName) - ? '.json' - : constants.tsxRegex.test(inputFileName) && - options.jsx === typescript.JsxEmit.Preserve - ? '.jsx' - : '.js'; - return outputPath.replace(constants.extensionRegex, newExtension); + return loaderOptions.useCaseSensitiveFileNames !== undefined + ? loaderOptions.useCaseSensitiveFileNames + : compiler.sys.useCaseSensitiveFileNames; } diff --git a/src/watch-run.ts b/src/watch-run.ts index a82899d1a..40cc61b71 100644 --- a/src/watch-run.ts +++ b/src/watch-run.ts @@ -2,9 +2,9 @@ import * as path from 'path'; import * as webpack from 'webpack'; import * as constants from './constants'; -import { TSInstance } from './interfaces'; +import { FilePathKey, TSInstance } from './interfaces'; import { updateFileWithText } from './servicesHost'; -import { readFile } from './utils'; +import { fsReadFile } from './utils'; /** * Make function which will manually update changed files @@ -14,13 +14,15 @@ export function makeWatchRun( loader: webpack.loader.LoaderContext ) { // Called Before starting compilation after watch - const lastTimes = new Map(); + const lastTimes = new Map(); const startTime = 0; // Save the loader index. const loaderIndex = loader.loaderIndex; return (compiler: webpack.Compiler, callback: (err?: Error) => void) => { + instance.servicesHost?.clearCache?.(); + instance.solutionBuilderHost?.clearCache(); const promises = []; if (instance.loaderOptions.transpileOnly) { instance.reportTranspileErrors = true; @@ -28,32 +30,38 @@ export function makeWatchRun( const times = compiler.fileTimestamps; for (const [filePath, date] of times) { - const lastTime = lastTimes.get(filePath) || startTime; + const key = instance.filePathKeyMapper(filePath); + const lastTime = lastTimes.get(key) || startTime; if (date <= lastTime) { continue; } - lastTimes.set(filePath, date); - promises.push(updateFile(instance, filePath, loader, loaderIndex)); + lastTimes.set(key, date); + promises.push(updateFile(instance, key, filePath, loader, loaderIndex)); } // On watch update add all known dts files expect the ones in node_modules // (skip @types/* and modules with typings) - for (const filePath of instance.files.keys()) { + for (const [key, { fileName }] of instance.files.entries()) { if ( - filePath.match(constants.dtsDtsxOrDtsDtsxMapRegex) !== null && - filePath.match(constants.nodeModules) === null + fileName.match(constants.dtsDtsxOrDtsDtsxMapRegex) !== null && + fileName.match(constants.nodeModules) === null ) { - promises.push(updateFile(instance, filePath, loader, loaderIndex)); + promises.push( + updateFile(instance, key, fileName, loader, loaderIndex) + ); } } } // Update all the watched files from solution builder if (instance.solutionBuilderHost) { - for (const filePath of instance.solutionBuilderHost.watchedFiles.keys()) { - promises.push(updateFile(instance, filePath, loader, loaderIndex)); + for (const [ + key, + { fileName }, + ] of instance.solutionBuilderHost.watchedFiles.entries()) { + promises.push(updateFile(instance, key, fileName, loader, loaderIndex)); } } @@ -65,6 +73,7 @@ export function makeWatchRun( function updateFile( instance: TSInstance, + key: FilePathKey, filePath: string, loader: webpack.loader.LoaderContext, loaderIndex: number @@ -88,15 +97,16 @@ function updateFile( reject(err); } else { const text = JSON.parse(source); - updateFileWithText(instance, filePath, () => text); + updateFileWithText(instance, key, filePath, () => text); resolve(); } }); } else { updateFileWithText( instance, + key, filePath, - nFilePath => readFile(nFilePath) || '' + nFilePath => fsReadFile(nFilePath) || '' ); resolve(); } diff --git a/test/comparison-tests/create-and-execute-test.js b/test/comparison-tests/create-and-execute-test.js index c3b355a22..074ef1d84 100644 --- a/test/comparison-tests/create-and-execute-test.js +++ b/test/comparison-tests/create-and-execute-test.js @@ -94,20 +94,24 @@ function createTest(test, testPath, options) { // Change the tsconfig to be composite const configPath = path.resolve(paths.testStagingPath, "tsconfig.json"); const config = JSON.parse(fs.readFileSync(configPath, "utf8")); - config.files = [ "./app.ts"]; - config.compilerOptions = { composite: true }; + config.compilerOptions = { ...(config.compilerOptions || {}), composite: true }; fs.writeFileSync(configPath, JSON.stringify(config, /*replacer*/ undefined, " ")); } } copySync(testPath, paths.testStagingPath); + if (test.match("SymLinks")) { + // Setup symlinks + mkdirp.sync(path.resolve(paths.testStagingPath, "node_modules")); + fs.symlinkSync(path.resolve(paths.testStagingPath, "lib"), path.resolve(paths.testStagingPath, "node_modules/lib"), "junction"); + fs.symlinkSync(path.resolve(paths.testStagingPath, "common"), path.resolve(paths.testStagingPath, "node_modules/common"), "junction"); + } if (test.indexOf("AlreadyBuilt") !== -1) { - const program = getProgram(path.resolve(paths.testStagingPath, "lib/tsconfig.json")); + const program = getProgram(path.resolve(paths.testStagingPath, "lib/tsconfig.json"), { newLine: typescript.NewLineKind.LineFeed }); program.emit(); } // ensure output directories mkdirp.sync(paths.actualOutput); - mkdirp.sync(paths.webpackOutput); // Need to wait > FS_ACCURACY as defined in watchpack. @@ -140,13 +144,25 @@ function createPaths(stagingPath, test, options) { testStagingPath: testStagingPath, actualOutput: path.join(testStagingPath, 'actualOutput'), expectedOutput: path.join(testStagingPath, 'expectedOutput-' + transpilePath + typescriptVersion), - webpackOutput: path.join(testStagingPath, '.output'), - originalExpectedOutput: path.join(testPath, 'expectedOutput-' + transpilePath + typescriptVersion) + originalExpectedOutput: path.join(testPath, 'expectedOutput-' + transpilePath + typescriptVersion), + outputPath: testStagingPath, }; } function createWebpackConfig(paths, optionsOriginal, useWatchApi) { - const config = require(path.join(paths.testStagingPath, 'webpack.config')); + let config; + let subFolder = ""; + try { + config = require(path.join(paths.testStagingPath, 'webpack.config')); + } + catch { + } + + if (!config) { + subFolder = "app"; + config = require(path.join(paths.testStagingPath, subFolder, 'webpack.config')); + paths.outputPath = path.join(paths.testStagingPath, subFolder); + } const extraOptionMaybe = extraOption ? { [extraOption]: true } : {}; const options = Object.assign({ @@ -155,15 +171,15 @@ function createWebpackConfig(paths, optionsOriginal, useWatchApi) { compilerOptions: { newLine: 'LF' }, - experimentalWatchApi: !!useWatchApi + experimentalWatchApi: !!useWatchApi, + useCaseSensitiveFileNames: true }, optionsOriginal, extraOptionMaybe); - const tsLoaderPath = require('path').join(__dirname, "../../index.js"); - + const tsLoaderPath = path.join(__dirname, "../../index.js"); aliasLoader(config, tsLoaderPath, options); - - config.output.path = paths.webpackOutput; - config.context = paths.testStagingPath; + + config.context = paths.outputPath; + paths.outputPath = config.output.path = config.output.path || paths.outputPath; config.resolveLoader = config.resolveLoader || {}; config.resolveLoader.alias = config.resolveLoader.alias || {}; config.resolveLoader.alias.newLine = path.join(__dirname, 'newline.loader.js'); @@ -178,14 +194,10 @@ function createWebpackWatchHandler(done, paths, testState, options, test) { return function (err, stats) { const patch = setPathsAndGetPatch(paths, testState, options); - cleanHashFromOutput(stats, paths.webpackOutput); - - copySync(paths.webpackOutput, paths.actualOutput); - rimraf.sync(paths.webpackOutput); - handleErrors(err, paths); storeStats(stats, testState, paths); + cleanHashFromOutput(stats, paths.actualOutput); compareFiles(paths, test, patch); @@ -231,6 +243,13 @@ function storeStats(stats, testState, paths) { // do a little magic to normalize `\` to `/` for asset output const newAssets = {}; Object.keys(stats.compilation.assets).forEach(function (asset) { + if (stats.compilation.assets[asset].emitted) { + const diskAssetPath = path.join(paths.outputPath, asset); + const newPath = path.join(paths.actualOutput, path.relative(paths.testStagingPath, diskAssetPath)); + if (diskAssetPath !== newPath) { + fs.copySync(diskAssetPath, newPath); + } + } newAssets[asset.replace(/\\/g, "/")] = stats.compilation.assets[asset]; }); stats.compilation.assets = newAssets; @@ -249,19 +268,29 @@ function storeStats(stats, testState, paths) { function compareFiles(paths, test, patch) { if (saveOutputMode) { - const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true }); - actualFiles.forEach(function (file) { + const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true, dot: true }), + expectedFiles = glob.sync('**/*', { cwd: paths.originalExpectedOutput, nodir: true, dot: true }) + .filter(function (file) { return !/^patch/.test(file); }), + allFiles = {}; + + actualFiles.forEach(function (file) { allFiles[file] = true }); + expectedFiles.forEach(function (file) { + if (!allFiles.hasOwnProperty(file)) { + fs.removeSync(path.join(paths.originalExpectedOutput, file)); + } + }); + Object.keys(allFiles).forEach(function (file) { const actual = getNormalisedFileContent(file, paths.actualOutput); const expected = getNormalisedFileContent(file, paths.expectedOutput); if (actual !== expected) { - fs.copyFileSync(path.join(paths.actualOutput, file), path.join(paths.originalExpectedOutput, file)); + fs.copySync(path.join(paths.actualOutput, file), path.join(paths.originalExpectedOutput, file)); } }); } else { // compare actual to expected - const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true }), - expectedFiles = glob.sync('**/*', { cwd: paths.expectedOutput, nodir: true }) + const actualFiles = glob.sync('**/*', { cwd: paths.actualOutput, nodir: true, dot: true }), + expectedFiles = glob.sync('**/*', { cwd: paths.expectedOutput, nodir: true, dot: true }) .filter(function (file) { return !/^patch/.test(file); }), allFiles = {}; @@ -325,7 +354,24 @@ function getNormalisedFileContent(file, location) { let fileContent; const filePath = path.join(location, file); try { - const originalContent = fs.readFileSync(filePath).toString(); + let originalContent = fs.readFileSync(filePath).toString(); + if (filePath.endsWith(".tsbuildinfo")) { + try { + const json = JSON.parse(originalContent); + json.version = "FakeTsVersion"; + const fileInfos = json.program && json.program.fileInfos; + if (fileInfos) { + Object.keys(fileInfos).forEach(fileInfoName => { + if (fileInfoName.indexOf("typescript") !== -1) { + fileInfos[fileInfoName] = { version: fileInfoName, signature: fileInfoName, affectsGlobalScope: fileInfos[fileInfoName].affectsGlobalScope }; + } + }); + } + originalContent = JSON.stringify(json, undefined, 2); + } + catch { + } + } fileContent = (file.indexOf('output.') === 0 ? normaliseString(originalContent) // Built at: 2/15/2018 8:33:18 PM diff --git a/test/comparison-tests/declarationOutput/expectedOutput-3.9/app.d.ts b/test/comparison-tests/declarationOutput/expectedOutput-3.9/.output/app.d.ts similarity index 100% rename from test/comparison-tests/declarationOutput/expectedOutput-3.9/app.d.ts rename to test/comparison-tests/declarationOutput/expectedOutput-3.9/.output/app.d.ts diff --git a/test/comparison-tests/declarationOutput/expectedOutput-3.9/sub/dep.d.ts b/test/comparison-tests/declarationOutput/expectedOutput-3.9/.output/sub/dep.d.ts similarity index 100% rename from test/comparison-tests/declarationOutput/expectedOutput-3.9/sub/dep.d.ts rename to test/comparison-tests/declarationOutput/expectedOutput-3.9/.output/sub/dep.d.ts diff --git a/test/comparison-tests/declarationOutput/expectedOutput-3.9/output.txt b/test/comparison-tests/declarationOutput/expectedOutput-3.9/output.txt index 411feb2ac..982aed14b 100644 --- a/test/comparison-tests/declarationOutput/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/declarationOutput/expectedOutput-3.9/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 5.14 KiB main [emitted] main - app.d.ts 110 bytes [emitted] -sub/dep.d.ts 63 bytes [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.14 KiB main [emitted] main + .output/app.d.ts 110 bytes [emitted] +.output/sub/dep.d.ts 63 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 911 bytes {main} [built] [./sub/dep.ts] 182 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/app.d.ts b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/app.d.ts similarity index 100% rename from test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/app.d.ts rename to test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/app.d.ts diff --git a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/app.d.ts.map b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/app.d.ts.map similarity index 100% rename from test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/app.d.ts.map rename to test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/app.d.ts.map diff --git a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/sub/dep.d.ts b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/sub/dep.d.ts similarity index 100% rename from test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/sub/dep.d.ts rename to test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/sub/dep.d.ts diff --git a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/sub/dep.d.ts.map b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/sub/dep.d.ts.map similarity index 100% rename from test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/sub/dep.d.ts.map rename to test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/.output/sub/dep.d.ts.map diff --git a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/output.txt b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/output.txt index 2e52c2fdf..5f803c7c4 100644 --- a/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/declarationOutputWithMaps/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 5.14 KiB main [emitted] main - app.d.ts.map 197 bytes [emitted] - app.d.ts 143 bytes [emitted] -sub/dep.d.ts.map 152 bytes [emitted] - sub/dep.d.ts 96 bytes [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.14 KiB main [emitted] main + .output/app.d.ts.map 197 bytes [emitted] + .output/app.d.ts 143 bytes [emitted] +.output/sub/dep.d.ts.map 152 bytes [emitted] + .output/sub/dep.d.ts 96 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 911 bytes {main} [built] [./sub/dep.ts] 182 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/getProgram.js b/test/comparison-tests/getProgram.js index 4146cd7de..06e23db4b 100644 --- a/test/comparison-tests/getProgram.js +++ b/test/comparison-tests/getProgram.js @@ -1,6 +1,6 @@ const typescript = require('typescript'); -module.exports = function getProgram(tsconfigPath) { - const parsedCommandLine = typescript.getParsedCommandLineOfConfigFile(tsconfigPath, {}, { +module.exports = function getProgram(tsconfigPath, optionsToExtend) { + const parsedCommandLine = typescript.getParsedCommandLineOfConfigFile(tsconfigPath, optionsToExtend || {}, { fileExists: typescript.sys.fileExists, getCurrentDirectory: typescript.sys.getCurrentDirectory, onUnRecoverableConfigFileDiagnostic: function () { throw new Error("Error building project") }, diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js.map b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..8cfb6d671 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferences/expectedOutput-3.9/output.txt index 6a42c7a13..26473acfa 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferences/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js.map b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..8cfb6d671 --- /dev/null +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferences/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferences/lib/tsconfig.json b/test/comparison-tests/projectReferences/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferences/lib/tsconfig.json +++ b/test/comparison-tests/projectReferences/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferences/tsconfig.json b/test/comparison-tests/projectReferences/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferences/tsconfig.json +++ b/test/comparison-tests/projectReferences/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json index 7f8ad846d..0710dd495 100644 --- a/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/common/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { "composite": true, + "types": [] } } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.d.ts new file mode 100644 index 000000000..78cb4cd49 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.d.ts @@ -0,0 +1 @@ +export declare function common(): number; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.js new file mode 100644 index 000000000..c561b2cc0 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.common = void 0; +function common() { + return 30; +} +exports.common = common; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo new file mode 100644 index 000000000..3fc50b166 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/common/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "83a8bcfe78ca61ceac765c205ef0435e93f65e7bc386ea12d21e0c963a7e824e", + "signature": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/output.txt index b4b54ccfe..6295cfea9 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 5.52 KiB main [emitted] main - ../common/index.js 109 bytes [emitted] - ../common/index.d.ts 43 bytes [emitted] - ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../unreferencedIndirect/index.js 176 bytes [emitted] - ../unreferencedIndirect/index.d.ts 57 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../unreferenced/index.js 144 bytes [emitted] - ../unreferenced/index.d.ts 49 bytes [emitted] - ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.52 KiB main [emitted] main + common/index.js 135 bytes [emitted] + common/index.d.ts 43 bytes [emitted] + common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + unreferencedIndirect/index.js 216 bytes [emitted] + unreferencedIndirect/index.d.ts 57 bytes [emitted] +unreferencedIndirect/tsconfig.tsbuildinfo 72.6 KiB [emitted] + unreferenced/index.js 176 bytes [emitted] + unreferenced/index.d.ts 49 bytes [emitted] + unreferenced/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] [./lib/index.ts] 483 bytes {main} [built] [failed] [1 error] @@ -31,9 +31,9 @@ Error: TypeScript emitted no output for utils\index.ts. The most common cause fo @ ./app.ts 4:14-32 ERROR in lib\fileWithError.ts -[tsl] ERROR in lib\fileWithError.ts(2,5) +[tsl] ERROR in lib\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. ERROR in indirectWithError\fileWithError.ts -[tsl] ERROR in indirectWithError\fileWithError.ts(2,5) +[tsl] ERROR in indirectWithError\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.d.ts new file mode 100644 index 000000000..27e069e94 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.d.ts @@ -0,0 +1 @@ +export declare function foo(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.js new file mode 100644 index 000000000..4cd8719c8 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/fileWithError.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +function foo() { + return "hello world"; +} +exports.foo = foo; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.js new file mode 100644 index 000000000..b7785ef20 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..82b7110f2 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,61 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./fileWithError.ts": { + "version": "0dda94f9fb4df4c74ff92d8109d8db2122e4c980bb13857b2a538c2ac0b33c64", + "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./fileWithError.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/output.txt index 9ef535ec6..b4060efd6 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 5.14 KiB main [emitted] main - ../lib/fileWithError.js 111 bytes [emitted] - ../lib/fileWithError.d.ts 40 bytes [emitted] - ../lib/index.js 104 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.17 KiB main [emitted] main + lib/fileWithError.js 134 bytes [emitted] + lib/fileWithError.d.ts 40 bytes [emitted] + lib/index.js 127 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} [built] [./utils/index.ts] 485 bytes {main} [built] [failed] [1 error] ERROR in ./utils/index.ts @@ -19,5 +19,5 @@ Error: TypeScript emitted no output for utils\index.ts. The most common cause fo @ ./app.ts 4:14-32 ERROR in indirectWithError\fileWithError.ts -[tsl] ERROR in indirectWithError\fileWithError.ts(2,5) +[tsl] ERROR in indirectWithError\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.d.ts new file mode 100644 index 000000000..27e069e94 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.d.ts @@ -0,0 +1 @@ +export declare function foo(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.js new file mode 100644 index 000000000..215cdeb2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/fileWithError.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +function foo() { + return "hello i fixed this error"; +} +exports.foo = foo; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.js new file mode 100644 index 000000000..b7785ef20 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo new file mode 100644 index 000000000..3f35eb680 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo @@ -0,0 +1,61 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./fileWithError.ts": { + "version": "e8c36f5bf4681d8c0c1866ed04f823e66548c8a788b325b672026efb17e9a384", + "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./fileWithError.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/output.txt index 440ad1d8b..7f1b0313a 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/output.txt @@ -1,15 +1,15 @@ - Asset Size Chunks Chunk Names - bundle.js 5.24 KiB main [emitted] main - ../indirectWithError/fileWithError.js 124 bytes [emitted] - ../indirectWithError/fileWithError.d.ts 40 bytes [emitted] - ../indirectWithError/index.js 104 bytes [emitted] - ../indirectWithError/index.d.ts 89 bytes [emitted] -../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] - ../utils/index.js 152 bytes [emitted] - ../utils/index.d.ts 40 bytes [emitted] - ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.32 KiB main [emitted] main + indirectWithError/fileWithError.js 147 bytes [emitted] + indirectWithError/fileWithError.d.ts 40 bytes [emitted] + indirectWithError/index.js 127 bytes [emitted] + indirectWithError/index.d.ts 89 bytes [emitted] +indirectWithError/tsconfig.tsbuildinfo 73 KiB [emitted] + utils/index.js 177 bytes [emitted] + utils/index.d.ts 40 bytes [emitted] + utils/tsconfig.tsbuildinfo 73.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] -[./common/index.ts] 109 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} -[./utils/index.ts] 152 bytes {main} [built] \ No newline at end of file +[./common/index.ts] 135 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} +[./utils/index.ts] 177 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.d.ts new file mode 100644 index 000000000..590545c75 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.d.ts @@ -0,0 +1 @@ +export declare function utils(): void; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.js new file mode 100644 index 000000000..7cde7e732 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.utils = void 0; +var common_1 = require("../common"); +function utils() { + common_1.common(); +} +exports.utils = utils; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo new file mode 100644 index 000000000..9302ddcb9 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch1/utils/tsconfig.tsbuildinfo @@ -0,0 +1,65 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/index.d.ts": { + "version": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", + "signature": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "4c7e50bd7f85cc5d64f963157685ca8eb1223e12466f47c719aaf1af32173088", + "signature": "2c471583ee40dd55eed961a2de47a5014f6639fa90572027eec9139c40293e19", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "../common/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/index.d.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/output.txt index 6c8495da3..585b7847a 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/output.txt @@ -1,10 +1,10 @@ - Asset Size Chunks Chunk Names - bundle.js 5.24 KiB main [emitted] main - ../unreferenced/index.js 158 bytes [emitted] - ../unreferenced/index.d.ts 49 bytes [emitted] -../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.32 KiB main [emitted] main + unreferenced/index.js 190 bytes [emitted] + unreferenced/index.d.ts 49 bytes [emitted] +unreferenced/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] -[./common/index.ts] 109 bytes {main} -[./lib/index.ts] 104 bytes {main} -[./utils/index.ts] 152 bytes {main} \ No newline at end of file +[./common/index.ts] 135 bytes {main} +[./lib/index.ts] 127 bytes {main} +[./utils/index.ts] 177 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.d.ts new file mode 100644 index 000000000..cd1cc7776 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.d.ts @@ -0,0 +1 @@ +export declare function unreferenced(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.js new file mode 100644 index 000000000..184fe4303 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferenced = void 0; +function unreferenced() { + return "i am unreferenced without error"; +} +exports.unreferenced = unreferenced; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo new file mode 100644 index 000000000..348f626b9 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch2/unreferenced/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "bb8ba6128be1271d91fd80319ca81516b664c6a68b5409b2991f70018b6c9e67", + "signature": "0de8093b7e96f737fa6d441f6d79e8ace62ba5d74bf9324a08fb773d8d32fc6d", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/output.txt index f272ead54..e1b67f2db 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/output.txt @@ -1,10 +1,10 @@ - Asset Size Chunks Chunk Names - bundle.js 5.24 KiB main [emitted] main - ../unreferencedIndirect/index.js 192 bytes [emitted] - ../unreferencedIndirect/index.d.ts 57 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.32 KiB main [emitted] main + unreferencedIndirect/index.js 232 bytes [emitted] + unreferencedIndirect/index.d.ts 57 bytes [emitted] +unreferencedIndirect/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 182 bytes {main} [built] -[./common/index.ts] 109 bytes {main} -[./lib/index.ts] 104 bytes {main} -[./utils/index.ts] 152 bytes {main} \ No newline at end of file +[./common/index.ts] 135 bytes {main} +[./lib/index.ts] 127 bytes {main} +[./utils/index.ts] 177 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.d.ts new file mode 100644 index 000000000..a9c923d2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.d.ts @@ -0,0 +1 @@ +export declare function unreferencedIndirect(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.js new file mode 100644 index 000000000..44db5b50e --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferencedIndirect = void 0; +function unreferencedIndirect() { + return "i am unreferencedIndirect now fixed error"; +} +exports.unreferencedIndirect = unreferencedIndirect; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo new file mode 100644 index 000000000..b3dfe5eff --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "25e6889f7998ef0640339eb29cd18ffe0a26a90d6ab573c95601f51593801064", + "signature": "5081781ea12d9924e909db967d29184ff3e0b8ca05d30ef60b8d696e0b50013e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.d.ts new file mode 100644 index 000000000..cd1cc7776 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.d.ts @@ -0,0 +1 @@ +export declare function unreferenced(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.js new file mode 100644 index 000000000..2a6e4b7c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferenced = void 0; +function unreferenced() { + return "i am unreferenced"; +} +exports.unreferenced = unreferenced; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e2ab712c0 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferenced/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "71b9a35449a6c117c0de0bc5035eb20046c4d436d28294a9d6be2c1a9920ad98", + "signature": "0de8093b7e96f737fa6d441f6d79e8ace62ba5d74bf9324a08fb773d8d32fc6d", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.d.ts new file mode 100644 index 000000000..a9c923d2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.d.ts @@ -0,0 +1 @@ +export declare function unreferencedIndirect(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.js new file mode 100644 index 000000000..87bc79753 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferencedIndirect = void 0; +function unreferencedIndirect() { + return "i am unreferencedIndirect"; +} +exports.unreferencedIndirect = unreferencedIndirect; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0d9c86ed5 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-3.9/unreferencedIndirect/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "d2b6e2d5879e5092e979620936598256494f23e7449ca2b326a2618f9b4488c2", + "signature": "5081781ea12d9924e909db967d29184ff3e0b8ca05d30ef60b8d696e0b50013e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.d.ts new file mode 100644 index 000000000..78cb4cd49 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.d.ts @@ -0,0 +1 @@ +export declare function common(): number; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.js new file mode 100644 index 000000000..c561b2cc0 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.common = void 0; +function common() { + return 30; +} +exports.common = common; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo new file mode 100644 index 000000000..3fc50b166 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "83a8bcfe78ca61ceac765c205ef0435e93f65e7bc386ea12d21e0c963a7e824e", + "signature": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/output.txt index af67a7143..d18c4c1fe 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/output.txt @@ -1,23 +1,23 @@ - Asset Size Chunks Chunk Names - bundle.js 5.57 KiB main [emitted] main - ../common/index.js 109 bytes [emitted] - ../common/index.d.ts 43 bytes [emitted] - ../common/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../unreferencedIndirect/index.js 176 bytes [emitted] - ../unreferencedIndirect/index.d.ts 57 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] - ../unreferenced/index.js 144 bytes [emitted] - ../unreferenced/index.d.ts 49 bytes [emitted] - ../unreferenced/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.57 KiB main [emitted] main + common/index.js 135 bytes [emitted] + common/index.d.ts 43 bytes [emitted] + common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + unreferencedIndirect/index.js 216 bytes [emitted] + unreferencedIndirect/index.d.ts 57 bytes [emitted] +unreferencedIndirect/tsconfig.tsbuildinfo 72.6 KiB [emitted] + unreferenced/index.js 176 bytes [emitted] + unreferenced/index.d.ts 49 bytes [emitted] + unreferenced/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [2 errors] [./lib/index.ts] 493 bytes {main} [built] [failed] [1 error] [./utils/index.ts] 495 bytes {main} [built] [failed] [1 error] -ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) +ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. -ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5) +ERROR in [tsl] ERROR in lib\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. ERROR in ./lib/index.ts diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.d.ts new file mode 100644 index 000000000..27e069e94 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.d.ts @@ -0,0 +1 @@ +export declare function foo(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.js new file mode 100644 index 000000000..4cd8719c8 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/fileWithError.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +function foo() { + return "hello world"; +} +exports.foo = foo; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.js new file mode 100644 index 000000000..b7785ef20 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..82b7110f2 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,61 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./fileWithError.ts": { + "version": "0dda94f9fb4df4c74ff92d8109d8db2122e4c980bb13857b2a538c2ac0b33c64", + "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./fileWithError.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/output.txt index e32625f22..936964927 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,16 +1,16 @@ - Asset Size Chunks Chunk Names - bundle.js 5.19 KiB main [emitted] main - ../lib/fileWithError.js 111 bytes [emitted] - ../lib/fileWithError.d.ts 40 bytes [emitted] - ../lib/index.js 104 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.21 KiB main [emitted] main + lib/fileWithError.js 134 bytes [emitted] + lib/fileWithError.d.ts 40 bytes [emitted] + lib/index.js 127 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] [1 error] -[./lib/index.ts] 104 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} [built] [./utils/index.ts] 495 bytes {main} [built] [failed] [1 error] -ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5) +ERROR in [tsl] ERROR in indirectWithError\fileWithError.ts(2,5)  TS2322: Type 'false' is not assignable to type 'string'. ERROR in ./utils/index.ts diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.d.ts new file mode 100644 index 000000000..27e069e94 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.d.ts @@ -0,0 +1 @@ +export declare function foo(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.js new file mode 100644 index 000000000..215cdeb2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/fileWithError.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +function foo() { + return "hello i fixed this error"; +} +exports.foo = foo; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.js new file mode 100644 index 000000000..b7785ef20 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo new file mode 100644 index 000000000..3f35eb680 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/indirectWithError/tsconfig.tsbuildinfo @@ -0,0 +1,61 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./fileWithError.ts": { + "version": "e8c36f5bf4681d8c0c1866ed04f823e66548c8a788b325b672026efb17e9a384", + "signature": "3dee7bbd2b685bdcb66cfc9b45605d6689ea42852231fa79cac9a40643c0fa22", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./fileWithError.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/output.txt index 0ace3acc5..45b288e7d 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/output.txt @@ -1,15 +1,15 @@ - Asset Size Chunks Chunk Names - bundle.js 5.27 KiB main [emitted] main - ../indirectWithError/fileWithError.js 124 bytes [emitted] - ../indirectWithError/fileWithError.d.ts 40 bytes [emitted] - ../indirectWithError/index.js 104 bytes [emitted] - ../indirectWithError/index.d.ts 89 bytes [emitted] -../indirectWithError/tsconfig.tsbuildinfo 67.8 KiB [emitted] - ../utils/index.js 152 bytes [emitted] - ../utils/index.d.ts 40 bytes [emitted] - ../utils/tsconfig.tsbuildinfo 68 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.35 KiB main [emitted] main + indirectWithError/fileWithError.js 147 bytes [emitted] + indirectWithError/fileWithError.d.ts 40 bytes [emitted] + indirectWithError/index.js 127 bytes [emitted] + indirectWithError/index.d.ts 89 bytes [emitted] +indirectWithError/tsconfig.tsbuildinfo 73 KiB [emitted] + utils/index.js 177 bytes [emitted] + utils/index.d.ts 40 bytes [emitted] + utils/tsconfig.tsbuildinfo 73.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] -[./common/index.ts] 109 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} -[./utils/index.ts] 152 bytes {main} [built] \ No newline at end of file +[./common/index.ts] 135 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} +[./utils/index.ts] 177 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.d.ts new file mode 100644 index 000000000..590545c75 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.d.ts @@ -0,0 +1 @@ +export declare function utils(): void; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.js new file mode 100644 index 000000000..7cde7e732 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/index.js @@ -0,0 +1,8 @@ +"use strict"; +exports.__esModule = true; +exports.utils = void 0; +var common_1 = require("../common"); +function utils() { + common_1.common(); +} +exports.utils = utils; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo new file mode 100644 index 000000000..9302ddcb9 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch1/utils/tsconfig.tsbuildinfo @@ -0,0 +1,65 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/index.d.ts": { + "version": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", + "signature": "43a7b48da056d56d751b52b1b22e1445fe52b56355f0adcbfd52c12ddc3e3ecb", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "4c7e50bd7f85cc5d64f963157685ca8eb1223e12466f47c719aaf1af32173088", + "signature": "2c471583ee40dd55eed961a2de47a5014f6639fa90572027eec9139c40293e19", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "../common/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/index.d.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/output.txt b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/output.txt index ec43f9ef3..6621a8037 100644 --- a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/output.txt +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/output.txt @@ -1,10 +1,10 @@ - Asset Size Chunks Chunk Names - bundle.js 5.27 KiB main main - ../unreferencedIndirect/index.js 192 bytes [emitted] - ../unreferencedIndirect/index.d.ts 57 bytes [emitted] -../unreferencedIndirect/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 5.35 KiB main main + unreferencedIndirect/index.js 232 bytes [emitted] + unreferencedIndirect/index.d.ts 57 bytes [emitted] +unreferencedIndirect/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 218 bytes {main} [built] -[./common/index.ts] 109 bytes {main} -[./lib/index.ts] 104 bytes {main} -[./utils/index.ts] 152 bytes {main} \ No newline at end of file +[./common/index.ts] 135 bytes {main} +[./lib/index.ts] 127 bytes {main} +[./utils/index.ts] 177 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.d.ts new file mode 100644 index 000000000..a9c923d2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.d.ts @@ -0,0 +1 @@ +export declare function unreferencedIndirect(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.js new file mode 100644 index 000000000..44db5b50e --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferencedIndirect = void 0; +function unreferencedIndirect() { + return "i am unreferencedIndirect now fixed error"; +} +exports.unreferencedIndirect = unreferencedIndirect; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo new file mode 100644 index 000000000..b3dfe5eff --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/patch4/unreferencedIndirect/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "25e6889f7998ef0640339eb29cd18ffe0a26a90d6ab573c95601f51593801064", + "signature": "5081781ea12d9924e909db967d29184ff3e0b8ca05d30ef60b8d696e0b50013e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.d.ts new file mode 100644 index 000000000..cd1cc7776 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.d.ts @@ -0,0 +1 @@ +export declare function unreferenced(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.js new file mode 100644 index 000000000..2a6e4b7c9 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferenced = void 0; +function unreferenced() { + return "i am unreferenced"; +} +exports.unreferenced = unreferenced; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo new file mode 100644 index 000000000..e2ab712c0 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferenced/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "71b9a35449a6c117c0de0bc5035eb20046c4d436d28294a9d6be2c1a9920ad98", + "signature": "0de8093b7e96f737fa6d441f6d79e8ace62ba5d74bf9324a08fb773d8d32fc6d", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.d.ts b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.d.ts new file mode 100644 index 000000000..a9c923d2a --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.d.ts @@ -0,0 +1 @@ +export declare function unreferencedIndirect(): string; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.js b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.js new file mode 100644 index 000000000..87bc79753 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/index.js @@ -0,0 +1,7 @@ +"use strict"; +exports.__esModule = true; +exports.unreferencedIndirect = void 0; +function unreferencedIndirect() { + return "i am unreferencedIndirect"; +} +exports.unreferencedIndirect = unreferencedIndirect; diff --git a/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0d9c86ed5 --- /dev/null +++ b/test/comparison-tests/projectReferencesMultiple/expectedOutput-transpile-3.9/unreferencedIndirect/tsconfig.tsbuildinfo @@ -0,0 +1,55 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "d2b6e2d5879e5092e979620936598256494f23e7449ca2b326a2618f9b4488c2", + "signature": "5081781ea12d9924e909db967d29184ff3e0b8ca05d30ef60b8d696e0b50013e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json index b3df08516..0710dd495 100644 --- a/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/indirectWithError/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] } } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json index b3df08516..0710dd495 100644 --- a/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/lib/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] } } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/tsconfig.json index 97f04b7ee..f8a409e23 100644 --- a/test/comparison-tests/projectReferencesMultiple/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/tsconfig.json @@ -1,10 +1,13 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" }, - { "path": "./utils" }, - { "path": "./unreferenced" }, - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" }, + { "path": "./utils" }, + { "path": "./unreferenced" }, + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json index fde6864ed..a789a3fbc 100644 --- a/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/unreferenced/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] }, "references": [ { "path": "../unreferencedIndirect" } diff --git a/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json index b3df08516..0710dd495 100644 --- a/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/unreferencedIndirect/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] } } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json b/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json index 996b12d7c..b26c83c7b 100644 --- a/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json +++ b/test/comparison-tests/projectReferencesMultiple/utils/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] }, "references": [ { "path": "../common" }, diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.d.ts b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.d.ts new file mode 100644 index 000000000..07265a895 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.d.ts @@ -0,0 +1 @@ +export declare const foo = "foo"; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.js b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.js new file mode 100644 index 000000000..33e8d8400 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/foo.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +exports.foo = 'foo'; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..b05ab0fd1 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + foo: string; +}; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..36ee96b86 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var foo_1 = require("./foo"); +exports.lib = { + one: 1, + two: 2, + three: 3, + foo: foo_1.foo +}; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..aa6c9d82a --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,65 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./foo.ts": { + "version": "a43230ea8da8a5ab3adc7b12f9eb9d65d1d1e5c87896fb2d8747a1a3f7a3f759", + "signature": "4c57bbad758e31eeba3abc8e95e00dbac67b9581c2e7d02884ffb14c672b1520", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "582b90393f0a99a0e2da27ccff010fe0b914246cc25e49da7e760543b0789cf8", + "signature": "822618dba4b9d398326f33458039773f2c32dc8940c6134ce0b019b1ff20d068", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./foo.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./foo.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/output.txt index 9037e81ef..60d2b439e 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-3.9/output.txt @@ -1,11 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.7 KiB main [emitted] main - ../lib/foo.js 65 bytes [emitted] - ../lib/foo.d.ts 35 bytes [emitted] - ../lib/index.js 156 bytes [emitted] - ../lib/index.d.ts 107 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.75 KiB main [emitted] main + lib/foo.js 88 bytes [emitted] + lib/foo.d.ts 35 bytes [emitted] + lib/index.js 179 bytes [emitted] + lib/index.d.ts 107 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/foo.ts] 65 bytes {main} [built] -[./lib/index.ts] 156 bytes {main} [built] \ No newline at end of file +[./lib/foo.ts] 88 bytes {main} [built] +[./lib/index.ts] 179 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.d.ts b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.d.ts new file mode 100644 index 000000000..07265a895 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.d.ts @@ -0,0 +1 @@ +export declare const foo = "foo"; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.js b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.js new file mode 100644 index 000000000..33e8d8400 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/foo.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.foo = void 0; +exports.foo = 'foo'; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..b05ab0fd1 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + foo: string; +}; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..36ee96b86 --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var foo_1 = require("./foo"); +exports.lib = { + one: 1, + two: 2, + three: 3, + foo: foo_1.foo +}; diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..aa6c9d82a --- /dev/null +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,65 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./foo.ts": { + "version": "a43230ea8da8a5ab3adc7b12f9eb9d65d1d1e5c87896fb2d8747a1a3f7a3f759", + "signature": "4c57bbad758e31eeba3abc8e95e00dbac67b9581c2e7d02884ffb14c672b1520", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "582b90393f0a99a0e2da27ccff010fe0b914246cc25e49da7e760543b0789cf8", + "signature": "822618dba4b9d398326f33458039773f2c32dc8940c6134ce0b019b1ff20d068", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./foo.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./foo.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/output.txt index f031a0aa8..00bdb2260 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNoSourceMap/expectedOutput-transpile-3.9/output.txt @@ -1,11 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.73 KiB main [emitted] main - ../lib/foo.js 65 bytes [emitted] - ../lib/foo.d.ts 35 bytes [emitted] - ../lib/index.js 156 bytes [emitted] - ../lib/index.d.ts 107 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.78 KiB main [emitted] main + lib/foo.js 88 bytes [emitted] + lib/foo.d.ts 35 bytes [emitted] + lib/index.js 179 bytes [emitted] + lib/index.d.ts 107 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/foo.ts] 65 bytes {main} [built] -[./lib/index.ts] 156 bytes {main} [built] \ No newline at end of file +[./lib/foo.ts] 88 bytes {main} [built] +[./lib/index.ts] 179 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNoSourceMap/lib/tsconfig.json b/test/comparison-tests/projectReferencesNoSourceMap/lib/tsconfig.json index 396dadea4..ae8aa58b3 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesNoSourceMap/lib/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "composite": true + "composite": true, + "types": [] }, "files": [ "./index.ts", diff --git a/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json b/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json +++ b/test/comparison-tests/projectReferencesNoSourceMap/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..8cfb6d671 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/output.txt index 6a42c7a13..26473acfa 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..8cfb6d671 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt/lib/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt index aeba9f805..add70e8be 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,11 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 56.4 KiB [emitted] + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2f1a5e06e --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "12503634626", + "signature": "12503634626", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..8cfb6d671 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/output.txt index 3cc5d6649..aef434999 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-3.9/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] -[./lib/index.ts] 104 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} [built] ERROR in app.ts ./app.ts -[tsl] ERROR in app.ts(3,46) +[tsl] ERROR in app.ts(3,46)  TS2339: Property 'four' does not exist on type '{ one: number; two: number; three: number; }'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..8cfb6d671 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/output.txt index 012639711..654bf2767 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.35 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.37 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/lib/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/output.txt index c8b5badaf..4dcd747f6 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,16 +1,16 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 56.4 KiB [emitted] + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] -[./lib/index.ts] 104 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} [built] ERROR in app.ts ./app.ts -[tsl] ERROR in app.ts(3,46) +[tsl] ERROR in app.ts(3,46)  TS2339: Property 'four' does not exist on type '{ one: number; two: number; three: number; }'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..dd6e2320f --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "12503634626", + "signature": "12503634626", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-18375343467", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt index 012639711..654bf2767 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.35 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.37 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.9/output.txt index 3cc5d6649..aef434999 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-3.9/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.33 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 147 bytes {main} [built] [1 error] -[./lib/index.ts] 104 bytes {main} [built] +[./lib/index.ts] 127 bytes {main} [built] ERROR in app.ts ./app.ts -[tsl] ERROR in app.ts(3,46) +[tsl] ERROR in app.ts(3,46)  TS2339: Property 'four' does not exist on type '{ one: number; two: number; three: number; }'. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.9/output.txt index 012639711..654bf2767 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_ErrorInProject_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.35 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.37 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 183 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/lib/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt index 3bbb9af61..fd23c4131 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,17 +1,17 @@ - Asset Size Chunks Chunk Names - bundle.js 4.71 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 51.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.71 KiB main [emitted] main + app.d.ts 11 bytes [emitted] +tsconfig.tsbuildinfo 56 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 528 bytes {main} [built] [failed] [2 errors] +[./lib/index.ts] 527 bytes {main} [built] [failed] [2 errors] ERROR in ./lib/index.ts Module build failed (from /index.js): Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. - at makeSourceMapAndFinish (dist\index.js:80:15) - at successLoader (dist\index.js:68:9) - at Object.loader (dist\index.js:22:12) + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) @ ./app.ts 3:12-28 ERROR in lib\index.ts diff --git a/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..bd9a0a707 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_SemanticErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,48 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/lib/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt index d00d9f1c7..1fef30d38 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,17 +1,17 @@ - Asset Size Chunks Chunk Names - bundle.js 4.71 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 51.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.71 KiB main [emitted] main + app.d.ts 11 bytes [emitted] +tsconfig.tsbuildinfo 56 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 526 bytes {main} [built] [failed] [2 errors] +[./lib/index.ts] 525 bytes {main} [built] [failed] [2 errors] ERROR in ./lib/index.ts Module build failed (from /index.js): Error: TypeScript emitted no output for lib\index.ts. The most common cause for this is having errors when building referenced projects. - at makeSourceMapAndFinish (dist\index.js:80:15) - at successLoader (dist\index.js:68:9) - at Object.loader (dist\index.js:22:12) + at makeSourceMapAndFinish (dist\index.js:87:18) + at successLoader (dist\index.js:73:9) + at Object.loader (dist\index.js:24:5) @ ./app.ts 3:12-28 ERROR in lib\index.ts diff --git a/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..bd9a0a707 --- /dev/null +++ b/test/comparison-tests/projectReferencesNotBuilt_SyntaxErrorInReference_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,48 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.9/output.txt index 6a42c7a13..26473acfa 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesNotBuilt_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js.map new file mode 100644 index 000000000..bd8517f9b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0eb25c269 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/output.txt index 5d3b8358e..dd451994c 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/out/index.js.map 190 bytes [emitted] - ../lib/out/index.js 137 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/out/index.js.map 191 bytes [emitted] + lib/out/index.js 160 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js.map new file mode 100644 index 000000000..bd8517f9b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0eb25c269 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/output.txt index 6fe9b0dc9..09ed2d1c6 100644 --- a/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesOutDir/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/out/index.js.map 190 bytes [emitted] - ../lib/out/index.js 137 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/out/index.js.map 191 bytes [emitted] + lib/out/index.js 160 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDir/lib/tsconfig.json b/test/comparison-tests/projectReferencesOutDir/lib/tsconfig.json index 2ca71a202..7c6ce1c62 100644 --- a/test/comparison-tests/projectReferencesOutDir/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDir/lib/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "composite": true, "sourceMap": true, - "outDir": "./out" + "outDir": "./out", + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesOutDir/tsconfig.json b/test/comparison-tests/projectReferencesOutDir/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesOutDir/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDir/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/bundle.js index 2076d22c4..792e39e13 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js.map new file mode 100644 index 000000000..bd8517f9b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0eb25c269 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt index 5d3b8358e..eda11108b 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/out/index.js.map 190 bytes [emitted] - ../lib/out/index.js 137 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/out/index.js.map 191 bytes [emitted] + lib/out/index.js 160 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 152 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/bundle.js index 07f654ffd..4bad700aa 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js new file mode 100644 index 000000000..8826dde5f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js.map new file mode 100644 index 000000000..da47828f7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,CAAC,iBAAiB;CAC1B,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..9f17945f9 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt index a7d851353..99d6f129b 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/out/index.js.map 223 bytes [emitted] - ../lib/out/index.js 169 bytes [emitted] - ../lib/out/index.d.ts 108 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/out/index.js.map 224 bytes [emitted] + lib/out/index.js 192 bytes [emitted] + lib/out/index.d.ts 108 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/bundle.js index 8cf5e9561..e0edf07a1 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/output.txt index 863917568..5047215c4 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch1/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.36 KiB main [emitted] main +bundle.js 4.43 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/bundle.js index 8cf5e9561..e0edf07a1 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/output.txt index b24dcfcfb..13cd750b8 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch2/output.txt @@ -1,15 +1,13 @@ Asset Size Chunks Chunk Names -bundle.js 4.36 KiB main [emitted] main +bundle.js 4.43 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] [2 errors] +[./lib/out/index.js] 183 bytes {main} ERROR in lib\index.ts -./lib/index.ts -[tsl] ERROR in lib\index.ts(6,3) +[tsl] ERROR in lib\index.ts(6,3)  TS1136: Property assignment expected. ERROR in lib\index.ts -./lib/index.ts -[tsl] ERROR in lib\index.ts(7,1) +[tsl] ERROR in lib\index.ts(7,1)  TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/bundle.js index f95b56d68..e0edf07a1 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js.map new file mode 100644 index 000000000..6f1b651a7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..558fb4544 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt index 9e41c2cf6..0956a592e 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/out/index.js.map 230 bytes [emitted] - ../lib/out/index.js 165 bytes [emitted] - ../lib/out/index.d.ts 127 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.43 KiB main [emitted] main + lib/out/index.js.map 231 bytes [emitted] + lib/out/index.js 188 bytes [emitted] + lib/out/index.d.ts 127 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/bundle.js index d45f528f1..c4af1b158 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/output.txt index 0593bdf58..2d914655a 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch4/output.txt @@ -1,8 +1,8 @@ Asset Size Chunks Chunk Names -bundle.js 4.38 KiB main [emitted] main +bundle.js 4.44 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 186 bytes {main} [built] [1 error] -[./lib/index.ts] 132 bytes {main} +[./lib/out/index.js] 178 bytes {main} [built] ERROR in app.ts ./app.ts diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/bundle.js index 064d19ca9..08fa55bd4 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/output.txt index bd093b647..9eee18097 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-3.9/patch5/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.38 KiB main [emitted] main +bundle.js 4.44 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 185 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} \ No newline at end of file +[./lib/out/index.js] 178 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/bundle.js index 71e75f124..573327ca6 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js.map new file mode 100644 index 000000000..bd8517f9b --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0eb25c269 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt index 6fe9b0dc9..d3a6079bf 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/out/index.js.map 190 bytes [emitted] - ../lib/out/index.js 137 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.4 KiB main [emitted] main + lib/out/index.js.map 191 bytes [emitted] + lib/out/index.js 160 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 152 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/bundle.js index 746f03b67..4b58d689a 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js new file mode 100644 index 000000000..8826dde5f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js.map new file mode 100644 index 000000000..da47828f7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,CAAC,iBAAiB;CAC1B,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..9f17945f9 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt index a0cefb79d..d91cf9eb5 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/out/index.js.map 223 bytes [emitted] - ../lib/out/index.js 169 bytes [emitted] - ../lib/out/index.d.ts 108 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.43 KiB main [emitted] main + lib/out/index.js.map 224 bytes [emitted] + lib/out/index.js 192 bytes [emitted] + lib/out/index.d.ts 108 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/bundle.js index 78ed26c6a..d1901ba32 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/output.txt index 055ff64ce..45ca4d5f4 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch1/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.42 KiB main [emitted] main +bundle.js 4.46 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 164 bytes {main} \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/output.txt index a60242613..6047a25dc 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/output.txt @@ -1,11 +1,11 @@ - Asset Size Chunks Chunk Names -bundle.js 4.43 KiB main [emitted] main + Asset Size Chunks Chunk Names +bundle.js 4.46 KiB main main Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] [2 errors] -[./lib/index.ts] 168 bytes {main} [built] +[./lib/out/index.js] 183 bytes {main} -ERROR in [tsl] ERROR in lib\index.ts(6,3) +ERROR in [tsl] ERROR in lib\index.ts(6,3)  TS1136: Property assignment expected. -ERROR in [tsl] ERROR in lib\index.ts(7,1) +ERROR in [tsl] ERROR in lib\index.ts(7,1)  TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map new file mode 100644 index 000000000..6f1b651a7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..558fb4544 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt index d82796e3e..0a69f8b61 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.4 KiB main [emitted] main - ../lib/out/index.js.map 230 bytes [emitted] - ../lib/out/index.js 165 bytes [emitted] - ../lib/out/index.d.ts 127 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.46 KiB main main + lib/out/index.js.map 231 bytes [emitted] + lib/out/index.js 188 bytes [emitted] + lib/out/index.d.ts 127 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/bundle.js index c477f0bbc..5ea6d562c 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.ffive); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/output.txt index a866098ce..e2e95d648 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch4/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.44 KiB main [emitted] main +bundle.js 4.48 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 222 bytes {main} [built] -[./lib/index.ts] 160 bytes {main} \ No newline at end of file +[./lib/out/index.js] 178 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/bundle.js b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/bundle.js index d8959b73c..632383519 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/bundle.js @@ -94,19 +94,19 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/out/index.js\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four, lib_1.lib.five); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), -/***/ "./lib/index.ts": -/*!**********************!*\ - !*** ./lib/index.ts ***! - \**********************/ +/***/ "./lib/out/index.js": +/*!**************************!*\ + !*** ./lib/out/index.js ***! + \**************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./lib/out/index.js?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/output.txt index dd53f5541..450b169d1 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch5/output.txt @@ -1,5 +1,5 @@ Asset Size Chunks Chunk Names -bundle.js 4.44 KiB main [emitted] main +bundle.js 4.48 KiB main [emitted] main Entrypoint main = bundle.js [./app.ts] 221 bytes {main} [built] -[./lib/index.ts] 160 bytes {main} \ No newline at end of file +[./lib/out/index.js] 178 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json index 2ca71a202..7c6ce1c62 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/lib/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "composite": true, "sourceMap": true, - "outDir": "./out" + "outDir": "./out", + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJson/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js new file mode 100644 index 000000000..8826dde5f --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js.map new file mode 100644 index 000000000..da47828f7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,CAAC,iBAAiB;CAC1B,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..9f17945f9 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/output.txt index ce5d245f0..8748c906e 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.34 KiB main [emitted] main - ../lib/out/index.js.map 223 bytes [emitted] - ../lib/out/index.js 169 bytes [emitted] - ../lib/out/index.d.ts 108 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/out/index.js.map 224 bytes [emitted] + lib/out/index.js 192 bytes [emitted] + lib/out/index.d.ts 108 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/out/index.js] 130 bytes {main} \ No newline at end of file +[./lib/out/index.js] 152 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js.map new file mode 100644 index 000000000..6f1b651a7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..558fb4544 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/output.txt index 45e4a892c..0956a592e 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.4 KiB main [emitted] main - ../lib/out/index.js.map 230 bytes [emitted] - ../lib/out/index.js 165 bytes [emitted] - ../lib/out/index.d.ts 127 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.43 KiB main [emitted] main + lib/out/index.js.map 231 bytes [emitted] + lib/out/index.js 188 bytes [emitted] + lib/out/index.d.ts 127 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map new file mode 100644 index 000000000..6f1b651a7 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo new file mode 100644 index 000000000..558fb4544 --- /dev/null +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/lib/out/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "outDir": "./", + "types": [], + "newLine": 1, + "configFilePath": "../tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../index.ts", + "../../../../node_modules/typescript/lib/lib.d.ts", + "../../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/output.txt index 19b95a267..0a69f8b61 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.44 KiB main main - ../lib/out/index.js.map 230 bytes [emitted] - ../lib/out/index.js 165 bytes [emitted] - ../lib/out/index.d.ts 127 bytes [emitted] -../lib/out/tsconfig.tsbuildinfo 70 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.46 KiB main main + lib/out/index.js.map 231 bytes [emitted] + lib/out/index.js 188 bytes [emitted] + lib/out/index.d.ts 127 bytes [emitted] +lib/out/tsconfig.tsbuildinfo 75.2 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/out/index.js] 161 bytes {main} \ No newline at end of file +[./lib/out/index.js] 183 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json index 2ca71a202..7c6ce1c62 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/lib/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "composite": true, "sourceMap": true, - "outDir": "./out" + "outDir": "./out", + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json +++ b/test/comparison-tests/projectReferencesOutDirWithPackageJsonAlreadyBuilt/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js new file mode 100644 index 000000000..601001a45 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js @@ -0,0 +1,6 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js.map new file mode 100644 index 000000000..e54726f0a --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0bb61f626 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,293 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.d.ts": { + "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2016.d.ts": { + "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2017.d.ts": { + "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2018.d.ts": { + "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2019.d.ts": { + "version": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "signature": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2020.d.ts": { + "version": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "signature": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.esnext.d.ts": { + "version": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "signature": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts": { + "version": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "signature": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts": { + "version": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "signature": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { + "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { + "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { + "version": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "signature": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { + "version": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "signature": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { + "version": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "signature": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { + "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { + "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { + "version": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "signature": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { + "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts": { + "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { + "version": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "signature": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts": { + "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { + "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { + "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { + "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { + "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { + "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { + "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { + "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts": { + "version": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "signature": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts": { + "version": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "signature": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts": { + "version": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "signature": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts": { + "version": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "signature": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { + "version": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "signature": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts": { + "version": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "signature": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts": { + "version": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "signature": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts": { + "version": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "signature": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { + "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts": { + "version": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "signature": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts": { + "version": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "signature": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts": { + "version": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "signature": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "target": 99, + "composite": true, + "sourceMap": true, + "outDir": "./out", + "rootDir": "./src", + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/output.txt index d284a2f44..dff7b21ad 100644 --- a/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js.map 202 bytes [emitted] - ../lib/out/index.js 99 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + lib/out/index.js.map 202 bytes [emitted] + lib/out/index.js 99 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 81.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js new file mode 100644 index 000000000..601001a45 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js @@ -0,0 +1,6 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js.map new file mode 100644 index 000000000..e54726f0a --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0bb61f626 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,293 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.d.ts": { + "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2016.d.ts": { + "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2017.d.ts": { + "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2018.d.ts": { + "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2019.d.ts": { + "version": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "signature": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2020.d.ts": { + "version": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "signature": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.esnext.d.ts": { + "version": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "signature": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts": { + "version": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "signature": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts": { + "version": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "signature": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { + "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { + "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { + "version": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "signature": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { + "version": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "signature": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { + "version": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "signature": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { + "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { + "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { + "version": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "signature": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { + "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts": { + "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { + "version": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "signature": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts": { + "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { + "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { + "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { + "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { + "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { + "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { + "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { + "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts": { + "version": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "signature": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts": { + "version": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "signature": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts": { + "version": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "signature": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts": { + "version": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "signature": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { + "version": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "signature": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts": { + "version": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "signature": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts": { + "version": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "signature": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts": { + "version": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "signature": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { + "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts": { + "version": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "signature": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts": { + "version": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "signature": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts": { + "version": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "signature": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "target": 99, + "composite": true, + "sourceMap": true, + "outDir": "./out", + "rootDir": "./src", + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/output.txt index d284a2f44..dff7b21ad 100644 --- a/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesRootDir/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js.map 202 bytes [emitted] - ../lib/out/index.js 99 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + lib/out/index.js.map 202 bytes [emitted] + lib/out/index.js 99 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 81.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDir/lib/tsconfig.json b/test/comparison-tests/projectReferencesRootDir/lib/tsconfig.json index 85f8bf6f6..2aa4f8918 100644 --- a/test/comparison-tests/projectReferencesRootDir/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesRootDir/lib/tsconfig.json @@ -4,7 +4,8 @@ "composite": true, "sourceMap": true, "outDir": "./out", - "rootDir": "./src" + "rootDir": "./src", + "types": [] }, "files": [ "./src/index.ts" diff --git a/test/comparison-tests/projectReferencesRootDir/tsconfig.json b/test/comparison-tests/projectReferencesRootDir/tsconfig.json index 9280cb221..087b490bb 100644 --- a/test/comparison-tests/projectReferencesRootDir/tsconfig.json +++ b/test/comparison-tests/projectReferencesRootDir/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "target": "esnext" + "target": "esnext", + "types": [] }, "files": ["./app.ts"], "references": [ diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js new file mode 100644 index 000000000..601001a45 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js @@ -0,0 +1,6 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js.map new file mode 100644 index 000000000..e54726f0a --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0bb61f626 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,293 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.d.ts": { + "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2016.d.ts": { + "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2017.d.ts": { + "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2018.d.ts": { + "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2019.d.ts": { + "version": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "signature": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2020.d.ts": { + "version": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "signature": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.esnext.d.ts": { + "version": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "signature": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts": { + "version": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "signature": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts": { + "version": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "signature": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { + "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { + "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { + "version": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "signature": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { + "version": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "signature": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { + "version": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "signature": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { + "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { + "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { + "version": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "signature": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { + "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts": { + "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { + "version": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "signature": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts": { + "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { + "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { + "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { + "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { + "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { + "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { + "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { + "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts": { + "version": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "signature": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts": { + "version": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "signature": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts": { + "version": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "signature": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts": { + "version": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "signature": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { + "version": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "signature": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts": { + "version": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "signature": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts": { + "version": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "signature": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts": { + "version": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "signature": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { + "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts": { + "version": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "signature": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts": { + "version": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "signature": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts": { + "version": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "signature": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "target": 99, + "composite": true, + "sourceMap": true, + "outDir": "./out", + "rootDir": "./src", + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/output.txt index d284a2f44..dff7b21ad 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js.map 202 bytes [emitted] - ../lib/out/index.js 99 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + lib/out/index.js.map 202 bytes [emitted] + lib/out/index.js 99 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 81.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.d.ts b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js new file mode 100644 index 000000000..601001a45 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js @@ -0,0 +1,6 @@ +export const lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js.map b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js.map new file mode 100644 index 000000000..e54726f0a --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/out/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..0bb61f626 --- /dev/null +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,293 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.d.ts": { + "version": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "signature": "dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2016.d.ts": { + "version": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "signature": "7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2017.d.ts": { + "version": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "signature": "8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2018.d.ts": { + "version": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2019.d.ts": { + "version": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "signature": "e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es2020.d.ts": { + "version": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "signature": "94b4108552f078722078d7c4a010ca4851063882f6c0c51a1468aa7a39aed4b3", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.esnext.d.ts": { + "version": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "signature": "2f8f379dedbdbd96a38a1e445cb3919853a1157a950fd977f85808db8d0f8a58", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts": { + "version": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "signature": "fb0c09b697dc42afa84d1587e3c994a2f554d2a45635e4f0618768d16a86b69a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts": { + "version": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "signature": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts": { + "version": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "signature": "43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts": { + "version": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "signature": "cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts": { + "version": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "signature": "42f5e41e5893da663dbf0394268f54f1da4b43dc0ddd2ea4bf471fe5361d6faf", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts": { + "version": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "signature": "0b7a905675e6cb4211c128f0a3aa47d414b275180a299a9aad5d3ec298abbfc4", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts": { + "version": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "signature": "dfff68b3c34338f6b307a25d4566de15eed7973b0dc5d69f9fde2bcac1c25315", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts": { + "version": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "signature": "cb609802a8698aa28b9c56331d4b53f590ca3c1c3a255350304ae3d06017779d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts": { + "version": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "signature": "3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts": { + "version": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "signature": "4670208dd7da9d6c774ab1b75c1527a810388c7989c4905de6aaea8561cb9dce", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts": { + "version": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "signature": "3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts": { + "version": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "signature": "17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts": { + "version": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "signature": "d0db416bccdb33975548baf09a42ee8c47eace1aac7907351a000f1e568e7232", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts": { + "version": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "signature": "6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts": { + "version": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "signature": "12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts": { + "version": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "signature": "b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts": { + "version": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "signature": "0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts": { + "version": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "signature": "a40c4d82bf13fcded295ac29f354eb7d40249613c15e07b53f2fc75e45e16359", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts": { + "version": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "signature": "df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts": { + "version": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "signature": "bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts": { + "version": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "signature": "c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts": { + "version": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "signature": "9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts": { + "version": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "signature": "6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts": { + "version": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "signature": "93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts": { + "version": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "signature": "2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts": { + "version": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "signature": "4f435f794b7853c55e2ae7cff6206025802aa79232d2867544178f2ca8ff5eaa", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts": { + "version": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "signature": "7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts": { + "version": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "signature": "faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts": { + "version": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "signature": "936d7d2e8851af9ccfa5333b15e877a824417d352b1d7fd06388639dc69ef80a", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts": { + "version": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "signature": "89bf2b7a601b73ea4311eda9c41f86a58994fec1bee3b87c4a14d68d9adcdcbd", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts": { + "version": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "signature": "fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts": { + "version": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "signature": "cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts": { + "version": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "signature": "d96fa8a56871904776165ceb8e00bd56127e1a017bb2664cae76223b5f815141", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "target": 99, + "composite": true, + "sourceMap": true, + "outDir": "./out", + "rootDir": "./src", + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.dom.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.collection.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.core.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.generator.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "../../../node_modules/typescript/lib/lib.es2016.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.intl.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.array.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.object.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.promise.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.string.d.ts", + "../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.full.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.intl.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.promise.d.ts", + "../../../node_modules/typescript/lib/lib.esnext.string.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/output.txt index d284a2f44..dff7b21ad 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.66 KiB main [emitted] main - ../lib/out/index.js.map 202 bytes [emitted] - ../lib/out/index.js 99 bytes [emitted] - ../lib/out/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 74.3 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.66 KiB main [emitted] main + lib/out/index.js.map 202 bytes [emitted] + lib/out/index.js 99 bytes [emitted] + lib/out/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 81.3 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 81 bytes {main} [built] [./lib/src/index.ts] 66 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/lib/tsconfig.json b/test/comparison-tests/projectReferencesRootDirInvalidConfig/lib/tsconfig.json index 85f8bf6f6..2aa4f8918 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/lib/tsconfig.json @@ -4,7 +4,8 @@ "composite": true, "sourceMap": true, "outDir": "./out", - "rootDir": "./src" + "rootDir": "./src", + "types": [] }, "files": [ "./src/index.ts" diff --git a/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json b/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json index b908d50de..25aa1d6ce 100644 --- a/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json +++ b/test/comparison-tests/projectReferencesRootDirInvalidConfig/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "target": "esnext" + "target": "esnext", + "types": [] }, "files": [ "./app.ts" diff --git a/test/comparison-tests/projectReferencesSymLinks/app/src/index.ts b/test/comparison-tests/projectReferencesSymLinks/app/src/index.ts new file mode 100644 index 000000000..c6be152fc --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/app/src/index.ts @@ -0,0 +1,3 @@ +import { getMeaningOfLife } from "lib"; + +console.log(getMeaningOfLife()); diff --git a/test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json b/test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json new file mode 100644 index 000000000..ba8a171cf --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/app/tsconfig.json @@ -0,0 +1,10 @@ +{ + "references": [ + { "path": "../lib" } + ], + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "types": [] + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js b/test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js new file mode 100644 index 000000000..be60e6826 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/app/webpack.config.js @@ -0,0 +1,22 @@ +var path = require('path') + +module.exports = { + mode: 'development', + entry: './src/index.ts', + output: { + filename: 'index.js', + path: path.resolve(__dirname, 'dist') + }, + resolve: { + extensions: ['.ts', '.js'] + }, + module: { + rules: [ + { test: /\.ts$/, loader: 'ts-loader', options: { projectReferences: true } } + ] + } +} + +// for test harness purposes only, you would not need this in a normal project +module.exports.resolveLoader = { alias: { 'ts-loader': require('path').join(__dirname, "../../../../index.js") } } + diff --git a/test/comparison-tests/projectReferencesSymLinks/common/package.json b/test/comparison-tests/projectReferencesSymLinks/common/package.json new file mode 100644 index 000000000..d70a4be55 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/common/package.json @@ -0,0 +1,9 @@ +{ + "name": "common", + "version": "1.0.0", + "main": "dist/index.js", + "license": "MIT", + "devDependencies": { + "typescript": "^3.9.3" + } +} diff --git a/test/comparison-tests/projectReferencesSymLinks/common/src/index.ts b/test/comparison-tests/projectReferencesSymLinks/common/src/index.ts new file mode 100644 index 000000000..97b129b7e --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/common/src/index.ts @@ -0,0 +1 @@ +export const getMeaningOfLife2 = () => 45; \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/common/tsconfig.json b/test/comparison-tests/projectReferencesSymLinks/common/tsconfig.json new file mode 100644 index 000000000..01fa4f903 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/common/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src", + "types": [] + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/app/dist/index.js new file mode 100644 index 000000000..6cae910da --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/app/dist/index.js @@ -0,0 +1,125 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.d.ts new file mode 100644 index 000000000..f5c6ea299 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife2: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.js new file mode 100644 index 000000000..9bd8bcace --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/dist/index.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife2 = void 0; +exports.getMeaningOfLife2 = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/tsconfig.tsbuildinfo new file mode 100644 index 000000000..905954094 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/common/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./src/index.ts": { + "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts new file mode 100644 index 000000000..fdb004ae6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js new file mode 100644 index 000000000..0980fe240 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..54976b3e9 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,67 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/dist/index.d.ts": { + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", + "signature": "cb0c875cdccbe72f5bbcd75441105aaeeb7f2a8e425f0c4333fe810ec0259456", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/dist/index.d.ts", + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt new file mode 100644 index 000000000..1a4cb7ee1 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/output.txt @@ -0,0 +1,12 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/app/dist/index.js new file mode 100644 index 000000000..2fb9676d2 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/app/dist/index.js @@ -0,0 +1,125 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife3 = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.d.ts new file mode 100644 index 000000000..c8844a138 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife3: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.js new file mode 100644 index 000000000..b86719621 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife3 = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..ef77c34d2 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,67 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/dist/index.d.ts": { + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", + "signature": "f99922acc37970b3e751734a37d730d1382695bab7ffb6730f1aad484ef3828a", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/dist/index.d.ts", + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/output.txt new file mode 100644 index 000000000..db36e96ae --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-3.9/patch0/output.txt @@ -0,0 +1,14 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,10) + TS2724: Module '"../../lib/dist"' has no exported member 'getMeaningOfLife'. Did you mean 'getMeaningOfLife3'? \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/bundle.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/app/dist/index.js similarity index 78% rename from test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/bundle.js rename to test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/app/dist/index.js index 78ed26c6a..39a5eaed0 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch2/bundle.js +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/app/dist/index.js @@ -81,32 +81,44 @@ /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); /******/ }) /************************************************************************/ /******/ ({ -/***/ "./app.ts": -/*!****************!*\ - !*** ./app.ts ***! - \****************/ +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); /***/ }), -/***/ "./lib/index.ts": +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": /*!**********************!*\ - !*** ./lib/index.ts ***! + !*** ./src/index.ts ***! \**********************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4 // Add new number\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.d.ts new file mode 100644 index 000000000..f5c6ea299 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife2: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.js new file mode 100644 index 000000000..9bd8bcace --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/dist/index.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife2 = void 0; +exports.getMeaningOfLife2 = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo new file mode 100644 index 000000000..905954094 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./src/index.ts": { + "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts new file mode 100644 index 000000000..fdb004ae6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js new file mode 100644 index 000000000..0980fe240 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..54976b3e9 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,67 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/dist/index.d.ts": { + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", + "signature": "cb0c875cdccbe72f5bbcd75441105aaeeb7f2a8e425f0c4333fe810ec0259456", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/dist/index.d.ts", + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt new file mode 100644 index 000000000..c1e9f9faa --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/output.txt @@ -0,0 +1,12 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/app/dist/index.js new file mode 100644 index 000000000..9dc613806 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/app/dist/index.js @@ -0,0 +1,125 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife3 = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts new file mode 100644 index 000000000..c8844a138 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife3: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.js new file mode 100644 index 000000000..b86719621 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife3 = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..ef77c34d2 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,67 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../common/dist/index.d.ts": { + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", + "signature": "f99922acc37970b3e751734a37d730d1382695bab7ffb6730f1aad484ef3828a", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../common/dist/index.d.ts", + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/output.txt new file mode 100644 index 000000000..083b18466 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/expectedOutput-transpile-3.9/patch0/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/lib/package.json b/test/comparison-tests/projectReferencesSymLinks/lib/package.json new file mode 100644 index 000000000..d90504b7f --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/lib/package.json @@ -0,0 +1,9 @@ +{ + "name": "lib", + "version": "1.0.0", + "main": "dist/index.js", + "license": "MIT", + "devDependencies": { + "typescript": "^3.9.3" + } +} diff --git a/test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts b/test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts new file mode 100644 index 000000000..b27b7698d --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/lib/src/index.ts @@ -0,0 +1,2 @@ +import { getMeaningOfLife2 } from "common"; +export const getMeaningOfLife = () => getMeaningOfLife2(); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json b/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json new file mode 100644 index 000000000..1c3b90cb3 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/lib/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src", + "types": [] + }, + "references": [ + { "path": "../common" } + ] +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks/patch0/lib/src/index.ts b/test/comparison-tests/projectReferencesSymLinks/patch0/lib/src/index.ts new file mode 100644 index 000000000..cfa6538fd --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks/patch0/lib/src/index.ts @@ -0,0 +1,2 @@ +import { getMeaningOfLife2 } from "common"; +export const getMeaningOfLife3 = () => getMeaningOfLife2(); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/app/src/index.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/app/src/index.ts new file mode 100644 index 000000000..c6be152fc --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/app/src/index.ts @@ -0,0 +1,3 @@ +import { getMeaningOfLife } from "lib"; + +console.log(getMeaningOfLife()); diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/app/tsconfig.json b/test/comparison-tests/projectReferencesSymLinksPreserve/app/tsconfig.json new file mode 100644 index 000000000..d066d4368 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/app/tsconfig.json @@ -0,0 +1,11 @@ +{ + "references": [ + { "path": "../lib" } + ], + "compilerOptions": { + "outDir": "dist", + "rootDir": "src", + "preserveSymlinks": true, + "types": [] + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/app/webpack.config.js b/test/comparison-tests/projectReferencesSymLinksPreserve/app/webpack.config.js new file mode 100644 index 000000000..be60e6826 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/app/webpack.config.js @@ -0,0 +1,22 @@ +var path = require('path') + +module.exports = { + mode: 'development', + entry: './src/index.ts', + output: { + filename: 'index.js', + path: path.resolve(__dirname, 'dist') + }, + resolve: { + extensions: ['.ts', '.js'] + }, + module: { + rules: [ + { test: /\.ts$/, loader: 'ts-loader', options: { projectReferences: true } } + ] + } +} + +// for test harness purposes only, you would not need this in a normal project +module.exports.resolveLoader = { alias: { 'ts-loader': require('path').join(__dirname, "../../../../index.js") } } + diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/common/package.json b/test/comparison-tests/projectReferencesSymLinksPreserve/common/package.json new file mode 100644 index 000000000..d70a4be55 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/common/package.json @@ -0,0 +1,9 @@ +{ + "name": "common", + "version": "1.0.0", + "main": "dist/index.js", + "license": "MIT", + "devDependencies": { + "typescript": "^3.9.3" + } +} diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/common/src/index.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/common/src/index.ts new file mode 100644 index 000000000..97b129b7e --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/common/src/index.ts @@ -0,0 +1 @@ +export const getMeaningOfLife2 = () => 45; \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/common/tsconfig.json b/test/comparison-tests/projectReferencesSymLinksPreserve/common/tsconfig.json new file mode 100644 index 000000000..339ae2f10 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/common/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src", + "preserveSymlinks": true, + "types": [] + } +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js new file mode 100644 index 000000000..6cae910da --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/app/dist/index.js @@ -0,0 +1,125 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.d.ts new file mode 100644 index 000000000..f5c6ea299 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife2: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.js new file mode 100644 index 000000000..9bd8bcace --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/dist/index.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife2 = void 0; +exports.getMeaningOfLife2 = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo new file mode 100644 index 000000000..6359a48d2 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/common/tsconfig.tsbuildinfo @@ -0,0 +1,58 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./src/index.ts": { + "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.d.ts new file mode 100644 index 000000000..fdb004ae6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.js new file mode 100644 index 000000000..0980fe240 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..a7d6c8c72 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,68 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../node_modules/common/dist/index.d.ts": { + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", + "signature": "cb0c875cdccbe72f5bbcd75441105aaeeb7f2a8e425f0c4333fe810ec0259456", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../node_modules/common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../node_modules/common/dist/index.d.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt new file mode 100644 index 000000000..7a55d3a38 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/output.txt @@ -0,0 +1,12 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.7 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/app/dist/index.js new file mode 100644 index 000000000..2fb9676d2 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/app/dist/index.js @@ -0,0 +1,125 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife3 = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.d.ts new file mode 100644 index 000000000..c8844a138 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife3: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.js new file mode 100644 index 000000000..b86719621 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife3 = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2294224f7 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,68 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../node_modules/common/dist/index.d.ts": { + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", + "signature": "f99922acc37970b3e751734a37d730d1382695bab7ffb6730f1aad484ef3828a", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../node_modules/common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../node_modules/common/dist/index.d.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/output.txt new file mode 100644 index 000000000..18c5fa480 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-3.9/patch0/output.txt @@ -0,0 +1,14 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,10) + TS2724: Module '"../../node_modules/lib/dist"' has no exported member 'getMeaningOfLife'. Did you mean 'getMeaningOfLife3'? \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/bundle.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js similarity index 78% rename from test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/bundle.js rename to test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js index ec0c99cc9..39a5eaed0 100644 --- a/test/comparison-tests/projectReferencesOutDirWithPackageJson/expectedOutput-transpile-3.9/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/app/dist/index.js @@ -81,32 +81,44 @@ /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = "./app.ts"); +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); /******/ }) /************************************************************************/ /******/ ({ -/***/ "./app.ts": -/*!****************!*\ - !*** ./app.ts ***! - \****************/ +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); /***/ }), -/***/ "./lib/index.ts": +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": /*!**********************!*\ - !*** ./lib/index.ts ***! + !*** ./src/index.ts ***! \**********************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.d.ts new file mode 100644 index 000000000..f5c6ea299 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife2: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.js new file mode 100644 index 000000000..9bd8bcace --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/dist/index.js @@ -0,0 +1,4 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife2 = void 0; +exports.getMeaningOfLife2 = function () { return 45; }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo new file mode 100644 index 000000000..6359a48d2 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/common/tsconfig.tsbuildinfo @@ -0,0 +1,58 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./src/index.ts": { + "version": "04a941e6fe6c7eb7913fa3105993c5282e1401287cef79308eed0201ee2c9ef9", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.d.ts new file mode 100644 index 000000000..fdb004ae6 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.js new file mode 100644 index 000000000..0980fe240 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..a7d6c8c72 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,68 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../node_modules/common/dist/index.d.ts": { + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "1f22ba07ef5ca5b17da3030aee4582883803beb20e5bcc5b0cb29acb0289a635", + "signature": "cb0c875cdccbe72f5bbcd75441105aaeeb7f2a8e425f0c4333fe810ec0259456", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../node_modules/common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../node_modules/common/dist/index.d.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt new file mode 100644 index 000000000..f311952ea --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/output.txt @@ -0,0 +1,12 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.7 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/app/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/app/dist/index.js new file mode 100644 index 000000000..9dc613806 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/app/dist/index.js @@ -0,0 +1,125 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "../common/dist/index.js": +/*!*******************************!*\ + !*** ../common/dist/index.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife2 = void 0;\nexports.getMeaningOfLife2 = function () { return 45; };\n\n\n//# sourceURL=webpack:///../common/dist/index.js?"); + +/***/ }), + +/***/ "../lib/dist/index.js": +/*!****************************!*\ + !*** ../lib/dist/index.js ***! + \****************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nexports.__esModule = true;\nexports.getMeaningOfLife3 = void 0;\nvar common_1 = __webpack_require__(/*! common */ \"../common/dist/index.js\");\nexports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); };\n\n\n//# sourceURL=webpack:///../lib/dist/index.js?"); + +/***/ }), + +/***/ "./src/index.ts": +/*!**********************!*\ + !*** ./src/index.ts ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar lib_1 = __webpack_require__(/*! lib */ \"../lib/dist/index.js\");\nconsole.log(lib_1.getMeaningOfLife());\n\n\n//# sourceURL=webpack:///./src/index.ts?"); + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts new file mode 100644 index 000000000..c8844a138 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.d.ts @@ -0,0 +1 @@ +export declare const getMeaningOfLife3: () => number; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.js b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.js new file mode 100644 index 000000000..b86719621 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/dist/index.js @@ -0,0 +1,5 @@ +"use strict"; +exports.__esModule = true; +exports.getMeaningOfLife3 = void 0; +var common_1 = require("common"); +exports.getMeaningOfLife3 = function () { return common_1.getMeaningOfLife2(); }; diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2294224f7 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,68 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "../node_modules/common/dist/index.d.ts": { + "version": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "signature": "ff3ea32a8da48d914c97453f41159f05f0eb54fefa17b664d412b6588d1ba729", + "affectsGlobalScope": false + }, + "./src/index.ts": { + "version": "852833616e510f30b68b4efa8b8f0080c0936671acbf52967e72b6c4ab0a72e9", + "signature": "f99922acc37970b3e751734a37d730d1382695bab7ffb6730f1aad484ef3828a", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "outDir": "./dist", + "rootDir": "./src", + "preserveSymlinks": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./src/index.ts": [ + "../node_modules/common/dist/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./src/index.ts", + "../node_modules/common/dist/index.d.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/output.txt new file mode 100644 index 000000000..154ec1738 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/expectedOutput-transpile-3.9/patch0/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/lib/package.json b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/package.json new file mode 100644 index 000000000..d90504b7f --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/package.json @@ -0,0 +1,9 @@ +{ + "name": "lib", + "version": "1.0.0", + "main": "dist/index.js", + "license": "MIT", + "devDependencies": { + "typescript": "^3.9.3" + } +} diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/lib/src/index.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/src/index.ts new file mode 100644 index 000000000..b27b7698d --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/src/index.ts @@ -0,0 +1,2 @@ +import { getMeaningOfLife2 } from "common"; +export const getMeaningOfLife = () => getMeaningOfLife2(); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/lib/tsconfig.json b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/tsconfig.json new file mode 100644 index 000000000..21019fb29 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/lib/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "composite": true, + "outDir": "dist", + "rootDir": "src", + "preserveSymlinks": true, + "types": [] + }, + "references": [ + { "path": "../common" } + ] +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve/patch0/lib/src/index.ts b/test/comparison-tests/projectReferencesSymLinksPreserve/patch0/lib/src/index.ts new file mode 100644 index 000000000..cfa6538fd --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve/patch0/lib/src/index.ts @@ -0,0 +1,2 @@ +import { getMeaningOfLife2 } from "common"; +export const getMeaningOfLife3 = () => getMeaningOfLife2(); \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt new file mode 100644 index 000000000..7a55d3a38 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/output.txt @@ -0,0 +1,12 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.7 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/patch0/output.txt new file mode 100644 index 000000000..18c5fa480 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -0,0 +1,14 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,10) + TS2724: Module '"../../node_modules/lib/dist"' has no exported member 'getMeaningOfLife'. Did you mean 'getMeaningOfLife3'? \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt new file mode 100644 index 000000000..f311952ea --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -0,0 +1,12 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.7 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt new file mode 100644 index 000000000..154ec1738 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinksPreserve_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.4 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt new file mode 100644 index 000000000..1a4cb7ee1 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/output.txt @@ -0,0 +1,12 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/patch0/output.txt new file mode 100644 index 000000000..db36e96ae --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -0,0 +1,14 @@ + Asset Size Chunks Chunk Names + index.js 4.9 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 108 bytes {main} [built] [1 error] + +ERROR in app\src\index.ts +./src/index.ts +[tsl] ERROR in app\src\index.ts(1,10) + TS2724: Module '"../../lib/dist"' has no exported member 'getMeaningOfLife'. Did you mean 'getMeaningOfLife3'? \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt new file mode 100644 index 000000000..c1e9f9faa --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -0,0 +1,12 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../common/dist/index.js 137 bytes [emitted] + ../../common/dist/index.d.ts 55 bytes [emitted] +../../common/tsconfig.tsbuildinfo 72.6 KiB [emitted] + ../../lib/dist/index.js 196 bytes [emitted] + ../../lib/dist/index.d.ts 54 bytes [emitted] + ../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 191 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt new file mode 100644 index 000000000..083b18466 --- /dev/null +++ b/test/comparison-tests/projectReferencesSymLinks_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -0,0 +1,9 @@ + Asset Size Chunks Chunk Names + index.js 4.93 KiB main [emitted] main + ../../lib/dist/index.js 198 bytes [emitted] + ../../lib/dist/index.d.ts 55 bytes [emitted] +../../lib/tsconfig.tsbuildinfo 73.3 KiB [emitted] +Entrypoint main = index.js +[../common/dist/index.js] 133 bytes {main} [built] +[../lib/dist/index.js] 193 bytes {main} [built] +[./src/index.ts] 144 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..8cfb6d671 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/output.txt index 6a42c7a13..26473acfa 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js new file mode 100644 index 000000000..8826dde5f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..9032c302b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,CAAC,iBAAiB;CAC1B,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..bd0a3c2fb --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/output.txt index 52a5441eb..71721f718 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js.map new file mode 100644 index 000000000..6e255ed17 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..536710c25 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/output.txt index c4258a71a..556bfa2f1 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..e352a1efb --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js.map new file mode 100644 index 000000000..d40fd63b7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACT,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..8cfb6d671 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "28ead8445f54a115ea5f778da4f4f80579fbae42ac6ccc3493626084ed335839", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js new file mode 100644 index 000000000..8826dde5f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4 // Add new number +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..9032c302b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC,CAAC,iBAAiB;CAC1B,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..bd0a3c2fb --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "244518e7eae5520d792e5c61f0be65249602dd956014a68836c0a35ed686ba28", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/output.txt index 89803539b..d4f70acb1 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.d.ts b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.d.ts new file mode 100644 index 000000000..bf8664e75 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.d.ts @@ -0,0 +1,7 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; + five: number; +}; diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js new file mode 100644 index 000000000..2a51bc571 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +exports.lib = { + one: 1, + two: 2, + three: 3, + four: 4, + five: 5 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js.map b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js.map new file mode 100644 index 000000000..6e255ed17 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..536710c25 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/lib/tsconfig.tsbuildinfo @@ -0,0 +1,56 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./index.ts": { + "version": "c250f21a4c1fc3baa49fd9af20e30f28a0c5a4c1ab58eead42bbca5482f3f963", + "signature": "64f0f3546d7b6f37dd84a10e5f8a7e22b917671569c4c3954c5a5cca5fcf74d8", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/output.txt index b98ffe647..f6eaeab5a 100644 --- a/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.4 KiB main [emitted] main - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.42 KiB main [emitted] main + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch/lib/tsconfig.json b/test/comparison-tests/projectReferencesWatch/lib/tsconfig.json index 506c325eb..8469a0937 100644 --- a/test/comparison-tests/projectReferencesWatch/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatch/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts" diff --git a/test/comparison-tests/projectReferencesWatch/tsconfig.json b/test/comparison-tests/projectReferencesWatch/tsconfig.json index 6d9798ff7..e79485246 100644 --- a/test/comparison-tests/projectReferencesWatch/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatch/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.d.ts new file mode 100644 index 000000000..ea0d91498 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.d.ts @@ -0,0 +1,5 @@ +export declare const helper: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js new file mode 100644 index 000000000..1159a61fe --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js.map new file mode 100644 index 000000000..8de705855 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACX,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js new file mode 100644 index 000000000..2944247f2 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js.map new file mode 100644 index 000000000..c02fb5203 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;CACpB,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..adaa378d6 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", + "signature": "9547233658a31639485353eb30596a0329b38600ed28a2ce8d70e7f88b5a1d8c", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/output.txt index 64a78458e..2776cbc05 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.d.ts new file mode 100644 index 000000000..c9fffcbf7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.d.ts @@ -0,0 +1,6 @@ +export declare const helper: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js new file mode 100644 index 000000000..fd4291075 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3, + four: 4 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js.map new file mode 100644 index 000000000..9bdff574b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;CACV,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js new file mode 100644 index 000000000..2944247f2 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..c02fb5203 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;CACpB,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2e8e496cb --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", + "signature": "695f3f9978b7c5a431d1c0d00791cee3d41b76f2a13fddf525fd5d34431cab6a", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/output.txt index 0a5fc811c..3455fca93 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.d.ts new file mode 100644 index 000000000..ea0d91498 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.d.ts @@ -0,0 +1,5 @@ +export declare const helper: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js new file mode 100644 index 000000000..1159a61fe --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js.map new file mode 100644 index 000000000..8de705855 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACX,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js new file mode 100644 index 000000000..2944247f2 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js.map new file mode 100644 index 000000000..c02fb5203 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;CACpB,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..adaa378d6 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", + "signature": "9547233658a31639485353eb30596a0329b38600ed28a2ce8d70e7f88b5a1d8c", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/output.txt index f8b6ac8a8..c20c2e4f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.84 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.89 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts new file mode 100644 index 000000000..c9fffcbf7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts @@ -0,0 +1,6 @@ +export declare const helper: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js new file mode 100644 index 000000000..fd4291075 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3, + four: 4 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js.map new file mode 100644 index 000000000..9bdff574b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;CACV,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..73d752279 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.d.ts @@ -0,0 +1,5 @@ +export declare const lib: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js new file mode 100644 index 000000000..2944247f2 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..c02fb5203 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;CACpB,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2e8e496cb --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", + "signature": "695f3f9978b7c5a431d1c0d00791cee3d41b76f2a13fddf525fd5d34431cab6a", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "bc4ed2b009cdf5f131d46c0ab70386155058ea9011c613bdf82b0b16dae6fa1c", + "signature": "82b9c263edd140802d0afbd57d557b2c41db16c5ad9a744bca8c71ad5b10f66f", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/output.txt index a3a66b07b..7790ac0f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/lib/tsconfig.json b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/lib/tsconfig.json index 97686f819..e0b623a8e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts", diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/tsconfig.json b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.d.ts new file mode 100644 index 000000000..ea0d91498 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.d.ts @@ -0,0 +1,5 @@ +export declare const helper: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js new file mode 100644 index 000000000..1159a61fe --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js.map new file mode 100644 index 000000000..8de705855 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACX,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js new file mode 100644 index 000000000..c526f1a8b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three, + four: 4 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..75ee60e19 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;IACnB,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..6f7438518 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", + "signature": "9547233658a31639485353eb30596a0329b38600ed28a2ce8d70e7f88b5a1d8c", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/output.txt index aaf278006..57c1eedc5 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.d.ts new file mode 100644 index 000000000..c9fffcbf7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.d.ts @@ -0,0 +1,6 @@ +export declare const helper: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js new file mode 100644 index 000000000..fd4291075 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3, + four: 4 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js.map new file mode 100644 index 000000000..9bdff574b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;CACV,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js new file mode 100644 index 000000000..c526f1a8b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three, + four: 4 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js.map new file mode 100644 index 000000000..75ee60e19 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;IACnB,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..d029fb56d --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", + "signature": "695f3f9978b7c5a431d1c0d00791cee3d41b76f2a13fddf525fd5d34431cab6a", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/output.txt index 64d8efac9..b9048a9f5 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-3.9/patch1/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.83 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.88 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts new file mode 100644 index 000000000..ea0d91498 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.d.ts @@ -0,0 +1,5 @@ +export declare const helper: { + one: number; + two: number; + three: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js new file mode 100644 index 000000000..1159a61fe --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js @@ -0,0 +1,9 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js.map new file mode 100644 index 000000000..8de705855 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;CACX,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js new file mode 100644 index 000000000..c526f1a8b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three, + four: 4 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js.map new file mode 100644 index 000000000..75ee60e19 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;IACnB,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..6f7438518 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "bd8500a78d56a07c2de3c8c735ca2ea8bfba63861da1c1e6a77f96ac5526c238", + "signature": "9547233658a31639485353eb30596a0329b38600ed28a2ce8d70e7f88b5a1d8c", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/output.txt index 56fb6d5dd..06efbd0e3 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.d.ts new file mode 100644 index 000000000..c9fffcbf7 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.d.ts @@ -0,0 +1,6 @@ +export declare const helper: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js new file mode 100644 index 000000000..fd4291075 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js @@ -0,0 +1,10 @@ +"use strict"; +exports.__esModule = true; +exports.helper = void 0; +exports.helper = { + one: 1, + two: 2, + three: 3, + four: 4 +}; +//# sourceMappingURL=helper.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js.map new file mode 100644 index 000000000..9bdff574b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helper.js","sourceRoot":"","sources":["helper.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,KAAK,EAAE,CAAC;IACR,IAAI,EAAE,CAAC;CACV,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.d.ts new file mode 100644 index 000000000..78e83617f --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.d.ts @@ -0,0 +1,6 @@ +export declare const lib: { + one: number; + two: number; + three: number; + four: number; +}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js new file mode 100644 index 000000000..c526f1a8b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js @@ -0,0 +1,11 @@ +"use strict"; +exports.__esModule = true; +exports.lib = void 0; +var helper_1 = require("./helper"); +exports.lib = { + one: helper_1.helper.one, + two: helper_1.helper.two, + three: helper_1.helper.three, + four: 4 +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js.map b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js.map new file mode 100644 index 000000000..75ee60e19 --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AACrB,QAAA,GAAG,GAAG;IACjB,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,GAAG,EAAE,eAAM,CAAC,GAAG;IACf,KAAK,EAAE,eAAM,CAAC,KAAK;IACnB,IAAI,EAAE,CAAC;CACR,CAAC"} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo new file mode 100644 index 000000000..d029fb56d --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/lib/tsconfig.tsbuildinfo @@ -0,0 +1,66 @@ +{ + "program": { + "fileInfos": { + "../../../node_modules/typescript/lib/lib.d.ts": { + "version": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "signature": "2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60", + "affectsGlobalScope": false + }, + "../../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "signature": "70ae6416528e68c2ee7b62892200d2ca631759943d4429f8b779b947ff1e124d", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "signature": "7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481", + "affectsGlobalScope": true + }, + "../../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "signature": "097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd", + "affectsGlobalScope": true + }, + "./helper.ts": { + "version": "1fb681e6157008026aa84db0d697833c02fcb11e4b1cb011820844edbffa703c", + "signature": "695f3f9978b7c5a431d1c0d00791cee3d41b76f2a13fddf525fd5d34431cab6a", + "affectsGlobalScope": false + }, + "./index.ts": { + "version": "2433124b24fe94913871ceba0ffaaa1bb06e73b73a6f6b4181c52b6208eb922e", + "signature": "4323a7ca8bb142ba56fd9c74334a9e3d4d521a10907662b5d9ccb24936767c1e", + "affectsGlobalScope": false + } + }, + "options": { + "composite": true, + "sourceMap": true, + "types": [], + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./index.ts": [ + "./helper.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "./helper.ts", + "./index.ts", + "../../../node_modules/typescript/lib/lib.d.ts", + "../../../node_modules/typescript/lib/lib.dom.d.ts", + "../../../node_modules/typescript/lib/lib.es5.d.ts", + "../../../node_modules/typescript/lib/lib.scripthost.d.ts", + "../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts" + ] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/output.txt index 44dcb5f5b..066150536 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/expectedOutput-transpile-3.9/patch1/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.87 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.92 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/lib/tsconfig.json b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/lib/tsconfig.json index 97686f819..e0b623a8e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/lib/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/lib/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "composite": true, - "sourceMap": true + "sourceMap": true, + "types": [] }, "files": [ "./index.ts", diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/tsconfig.json b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/tsconfig.json index 6d9798ff7..930f83544 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/tsconfig.json +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt/tsconfig.json @@ -1,8 +1,11 @@ { -"files": [ - "./app.ts" - ], - "references": [ - { "path": "./lib" } - ] + "compilerOptions": { + "types": [] + }, + "files": [ + "./app.ts" + ], + "references": [ + { "path": "./lib" } + ] } \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt index 5645df8f1..8dc18b4c9 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,8 +1,8 @@ - Asset Size Chunks Chunk Names - bundle.js 4.77 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] -../tsconfig.tsbuildinfo 51.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + app.d.ts 11 bytes [emitted] +tsconfig.tsbuildinfo 56.4 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} [built] -[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt index 31619c09e..4152cd2c0 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,14 +1,15 @@ - Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 1.55 KiB [emitted] + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 2.66 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo new file mode 100644 index 000000000..83c16405e --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "11215156582", + "signature": "11215156582", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt index b79592e04..b8bcce98e 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.83 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.88 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt index bb6f28d8f..249f0bb4b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.88 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 113 bytes {main} -[./lib/index.ts] 202 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} +[./lib/index.ts] 234 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2f1a5e06e --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "12503634626", + "signature": "12503634626", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index 56fb6d5dd..06efbd0e3 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt index 44dcb5f5b..066150536 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_Composite_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.87 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.92 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch0/output.txt index aaf278006..57c1eedc5 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch1/output.txt index 64d8efac9..b9048a9f5 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-3.9/patch1/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.83 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.88 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index 56fb6d5dd..06efbd0e3 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} -[./lib/index.ts] 211 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} +[./lib/index.ts] 234 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt index 44dcb5f5b..066150536 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFilesAlreadyBuilt_WatchApi/expectedOutput-transpile-3.9/patch1/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.87 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 251 bytes [emitted] - ../lib/index.js 244 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.92 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 252 bytes [emitted] + lib/index.js 267 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 211 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 234 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/output.txt index 745347317..f0dddd70b 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,15 +1,15 @@ - Asset Size Chunks Chunk Names - bundle.js 4.77 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 134 bytes [emitted] - ../lib/helper.d.ts 87 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 222 bytes [emitted] - ../lib/index.d.ts 84 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 56.4 KiB [emitted] + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 100 bytes {main} [built] -[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt index 8fa1a5d06..f138fef58 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,14 +1,14 @@ - Asset Size Chunks Chunk Names - bundle.js 4.79 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 147 bytes [emitted] - ../lib/helper.d.ts 105 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 222 bytes [emitted] - ../lib/index.d.ts 84 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 113 bytes {main} [built] -[./lib/index.ts] 189 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt index 0a46fb1f5..73e420145 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt @@ -1,7 +1,7 @@ - Asset Size Chunks Chunk Names - bundle.js 4.79 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.87 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 113 bytes {main} -[./lib/index.ts] 189 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} +[./lib/index.ts] 220 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2f1a5e06e --- /dev/null +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "12503634626", + "signature": "12503634626", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt index f8b6ac8a8..c20c2e4f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.84 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.89 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index a3a66b07b..7790ac0f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/output.txt index 64a78458e..2776cbc05 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.8 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.85 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/patch0/output.txt index 0a5fc811c..3455fca93 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.82 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.87 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/output.txt index f8b6ac8a8..c20c2e4f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.84 KiB main [emitted] main - ../lib/helper.js.map 189 bytes [emitted] - ../lib/helper.js 141 bytes [emitted] - ../lib/helper.d.ts 92 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.89 KiB main [emitted] main + lib/helper.js.map 190 bytes [emitted] + lib/helper.js 167 bytes [emitted] + lib/helper.d.ts 92 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 107 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} [built] \ No newline at end of file +[./lib/helper.ts] 133 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index a3a66b07b..7790ac0f4 100644 --- a/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatchRefWithTwoFiles_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,13 +1,13 @@ - Asset Size Chunks Chunk Names - bundle.js 4.85 KiB main [emitted] main - ../lib/helper.js.map 209 bytes [emitted] - ../lib/helper.js 155 bytes [emitted] - ../lib/helper.d.ts 111 bytes [emitted] - ../lib/index.js.map 231 bytes [emitted] - ../lib/index.js 230 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.8 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.91 KiB main [emitted] main + lib/helper.js.map 210 bytes [emitted] + lib/helper.js 181 bytes [emitted] + lib/helper.d.ts 111 bytes [emitted] + lib/index.js.map 232 bytes [emitted] + lib/index.js 253 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 73 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/helper.ts] 121 bytes {main} [built] -[./lib/index.ts] 197 bytes {main} \ No newline at end of file +[./lib/helper.ts] 147 bytes {main} [built] +[./lib/index.ts] 220 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/output.txt index a370d5b23..add70e8be 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/output.txt @@ -1,11 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.28 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../tsconfig.tsbuildinfo 51.8 KiB [emitted] - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 130 bytes [emitted] - ../lib/index.d.ts 84 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 56.4 KiB [emitted] + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 97 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt index a3b37878c..d23114635 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,10 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 161 bytes [emitted] - ../lib/index.d.ts 102 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 1.55 KiB [emitted] + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 2.34 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 128 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo new file mode 100644 index 000000000..83c16405e --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch0/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "11215156582", + "signature": "11215156582", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt index 7feef8083..75991d359 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch1/output.txt @@ -1,6 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 128 bytes {main} \ No newline at end of file +[./lib/index.ts] 159 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt index 3ab0ee851..2a62e10d6 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch2/output.txt @@ -1,16 +1,16 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 128 bytes {main} [built] [2 errors] +[./lib/index.ts] 159 bytes {main} [built] [2 errors] -ERROR in lib/index.ts +ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib/index.ts(6,3) +[tsl] ERROR in lib\index.ts(6,3)  TS1136: Property assignment expected. -ERROR in lib/index.ts +ERROR in lib\index.ts ./lib/index.ts -[tsl] ERROR in lib/index.ts(7,1) +[tsl] ERROR in lib\index.ts(7,1)  TS1128: Declaration or statement expected. \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt index ba09cddb8..0fa4ee250 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/output.txt @@ -1,10 +1,11 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main - ../app.d.ts 11 bytes [emitted] - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 156 bytes [emitted] - ../lib/index.d.ts 120 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + app.d.ts 11 bytes [emitted] + tsconfig.tsbuildinfo 1.55 KiB [emitted] + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 2.34 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 123 bytes {main} [built] \ No newline at end of file +[./app.ts] 169 bytes {main} [built] +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo new file mode 100644 index 000000000..ad8cfa7ed --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch3/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "11496633944", + "signature": "11496633944", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-16299197056", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/output.txt index 3f824ff55..2136bd0dc 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch4/output.txt @@ -1,6 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 123 bytes {main} \ No newline at end of file +[./lib/index.ts] 155 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/app.d.ts b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/bundle.js b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/output.txt index 3f824ff55..2136bd0dc 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/patch5/output.txt @@ -1,6 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 4.31 KiB main [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 4.35 KiB main [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 123 bytes {main} \ No newline at end of file +[./lib/index.ts] 155 bytes {main} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo new file mode 100644 index 000000000..2f1a5e06e --- /dev/null +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-3.9/tsconfig.tsbuildinfo @@ -0,0 +1,57 @@ +{ + "program": { + "fileInfos": { + "../../node_modules/typescript/lib/lib.d.ts": { + "version": "-10496480823", + "signature": "-10496480823", + "affectsGlobalScope": false + }, + "../../node_modules/typescript/lib/lib.es5.d.ts": { + "version": "-218882352090", + "signature": "-218882352090", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.dom.d.ts": { + "version": "300634082611", + "signature": "300634082611", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts": { + "version": "-24714112149", + "signature": "-24714112149", + "affectsGlobalScope": true + }, + "../../node_modules/typescript/lib/lib.scripthost.d.ts": { + "version": "204309182321", + "signature": "204309182321", + "affectsGlobalScope": true + }, + "./lib/index.d.ts": { + "version": "12503634626", + "signature": "12503634626", + "affectsGlobalScope": false + }, + "./app.ts": { + "version": "-14331559384", + "signature": "-3531856636", + "affectsGlobalScope": false + } + }, + "options": { + "types": [], + "composite": true, + "newLine": 1, + "configFilePath": "./tsconfig.json", + "skipLibCheck": true, + "suppressOutputPathCheck": true + }, + "referencedMap": { + "./app.ts": [ + "./lib/index.d.ts" + ] + }, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [] + }, + "version": "3.9.3" +} \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index 89803539b..d4f70acb1 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt index b98ffe647..f6eaeab5a 100644 --- a/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_Composite_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.4 KiB main [emitted] main - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.42 KiB main [emitted] main + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/output.txt index 6a42c7a13..26473acfa 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.29 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.32 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch0/output.txt index 52a5441eb..71721f718 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 131 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/output.txt index c4258a71a..21299faa2 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.35 KiB main [emitted] main + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js -[./app.ts] 169 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./app.ts] 131 bytes {main} [built] +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch4/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch4/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch4/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch4/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch5/bundle.js b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch5/bundle.js index 079d64a01..8d307dba8 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch5/bundle.js +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-3.9/patch5/bundle.js @@ -94,7 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three);\n\n\n//# sourceURL=webpack:///./app.ts?"); +eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ \"./lib/index.ts\");\nconsole.log(lib_1.lib.one, lib_1.lib.two, lib_1.lib.three, lib_1.lib.four); // consume new number\n\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }), @@ -106,7 +106,7 @@ eval("\nexports.__esModule = true;\nvar lib_1 = __webpack_require__(/*! ./lib */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\nexports.__esModule = true;\nexports.lib = void 0;\nexports.lib = {\n one: 1,\n two: 2,\n three: 3,\n four: 4,\n five: 5\n};\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); +eval("\r\nexports.__esModule = true;\r\nexports.lib = void 0;\r\nexports.lib = {\r\n one: 1,\r\n two: 2,\r\n three: 3,\r\n four: 4,\r\n five: 5\r\n};\r\n\n\n//# sourceURL=webpack:///./lib/index.ts?"); /***/ }) diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/output.txt index 9af9848b3..a3e931cac 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.33 KiB main [emitted] main - ../lib/index.js.map 187 bytes [emitted] - ../lib/index.js 137 bytes [emitted] - ../lib/index.d.ts 89 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.36 KiB main [emitted] main + lib/index.js.map 188 bytes [emitted] + lib/index.js 160 bytes [emitted] + lib/index.d.ts 89 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 104 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 127 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt index 89803539b..d4f70acb1 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch0/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.36 KiB main [emitted] main - ../lib/index.js.map 220 bytes [emitted] - ../lib/index.js 169 bytes [emitted] - ../lib/index.d.ts 108 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.39 KiB main [emitted] main + lib/index.js.map 221 bytes [emitted] + lib/index.js 192 bytes [emitted] + lib/index.d.ts 108 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 167 bytes {main} [built] -[./lib/index.ts] 136 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 159 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt index b98ffe647..f6eaeab5a 100644 --- a/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt +++ b/test/comparison-tests/projectReferencesWatch_WatchApi/expectedOutput-transpile-3.9/patch3/output.txt @@ -1,9 +1,9 @@ - Asset Size Chunks Chunk Names - bundle.js 4.4 KiB main [emitted] main - ../lib/index.js.map 227 bytes [emitted] - ../lib/index.js 165 bytes [emitted] - ../lib/index.d.ts 127 bytes [emitted] -../lib/tsconfig.tsbuildinfo 67.4 KiB [emitted] + Asset Size Chunks Chunk Names + bundle.js 4.42 KiB main [emitted] main + lib/index.js.map 228 bytes [emitted] + lib/index.js 188 bytes [emitted] + lib/index.d.ts 127 bytes [emitted] +lib/tsconfig.tsbuildinfo 72.6 KiB [emitted] Entrypoint main = bundle.js [./app.ts] 205 bytes {main} [built] -[./lib/index.ts] 132 bytes {main} [built] \ No newline at end of file +[./lib/index.ts] 155 bytes {main} [built] \ No newline at end of file diff --git a/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/app.d.ts b/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/app.d.ts new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/app.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/output.txt b/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/output.txt index 10e73c4e6..eb1efd182 100644 --- a/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/resolveJsonModule/expectedOutput-3.9/output.txt @@ -1,6 +1,6 @@ - Asset Size Chunks Chunk Names - bundle.js 1 KiB 0 [emitted] main -../app.d.ts 11 bytes [emitted] + Asset Size Chunks Chunk Names +bundle.js 1 KiB 0 [emitted] main + app.d.ts 11 bytes [emitted] Entrypoint main = bundle.js [0] ./app.ts 99 bytes {0} [built] [1] ./file.json 18 bytes {0} [built] diff --git a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/bundle.js b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/bundle.js index 2915d7665..2700c4b8a 100644 --- a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/bundle.js +++ b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/bundle.js @@ -93,7 +93,7 @@ /*! no static exports found */ /***/ (function(module, exports) { -eval("throw new Error(\"Module build failed (from C:/source/ts-loader/index.js):/nError: ts-loader was supplied with an unexpected loader option: notRealOption/n/nPlease take a look at the options you are supplying; the following are valid options:/nsilent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective/n/n at validateLoaderOptions (C://source//ts-loader//dist//index.js:155:19)/n at getLoaderOptions (C://source//ts-loader//dist//index.js:112:5)/n at Object.loader (C://source//ts-loader//dist//index.js:16:21)\");\n\n//# sourceURL=webpack:///./app.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: ts-loader was supplied with an unexpected loader option: notRealOption/n/nPlease take a look at the options you are supplying; the following are valid options:/nsilent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective / useCaseSensitiveFileNames/n/n at validateLoaderOptions (c://github//ts-loader//dist//index.js:153:19)/n at getLoaderOptions (c://github//ts-loader//dist//index.js:110:5)/n at Object.loader (c://github//ts-loader//dist//index.js:16:21)\");\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }) diff --git a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/output.txt b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/output.txt index 698615f4f..87738e429 100644 --- a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/output.txt +++ b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-3.9/output.txt @@ -1,15 +1,15 @@ Asset Size Chunks Chunk Names -bundle.js 4.63 KiB main [emitted] main +bundle.js 4.66 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 887 bytes {main} [built] [failed] [1 error] +[./app.ts] 915 bytes {main} [built] [failed] [1 error] ERROR in ./app.ts Module build failed (from /index.js): Error: ts-loader was supplied with an unexpected loader option: notRealOption Please take a look at the options you are supplying; the following are valid options: -silent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective +silent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective / useCaseSensitiveFileNames - at validateLoaderOptions (dist\index.js:155:19) - at getLoaderOptions (dist\index.js:112:5) + at validateLoaderOptions (dist\index.js:153:19) + at getLoaderOptions (dist\index.js:110:5) at Object.loader (dist\index.js:16:21) \ No newline at end of file diff --git a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/bundle.js b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/bundle.js index 9c4d394ca..2700c4b8a 100644 --- a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/bundle.js +++ b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/bundle.js @@ -93,7 +93,7 @@ /*! no static exports found */ /***/ (function(module, exports) { -eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: ts-loader was supplied with an unexpected loader option: notRealOption/n/nPlease take a look at the options you are supplying; the following are valid options:/nsilent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective/n/n at validateLoaderOptions (c://github//ts-loader//dist//index.js:155:19)/n at getLoaderOptions (c://github//ts-loader//dist//index.js:112:5)/n at Object.loader (c://github//ts-loader//dist//index.js:16:21)\");\n\n//# sourceURL=webpack:///./app.ts?"); +eval("throw new Error(\"Module build failed (from c:/github/ts-loader/index.js):/nError: ts-loader was supplied with an unexpected loader option: notRealOption/n/nPlease take a look at the options you are supplying; the following are valid options:/nsilent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective / useCaseSensitiveFileNames/n/n at validateLoaderOptions (c://github//ts-loader//dist//index.js:153:19)/n at getLoaderOptions (c://github//ts-loader//dist//index.js:110:5)/n at Object.loader (c://github//ts-loader//dist//index.js:16:21)\");\n\n//# sourceURL=webpack:///./app.ts?"); /***/ }) diff --git a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/output.txt b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/output.txt index 698615f4f..87738e429 100644 --- a/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/output.txt +++ b/test/comparison-tests/validateLoaderOptionNames/expectedOutput-transpile-3.9/output.txt @@ -1,15 +1,15 @@ Asset Size Chunks Chunk Names -bundle.js 4.63 KiB main [emitted] main +bundle.js 4.66 KiB main [emitted] main Entrypoint main = bundle.js -[./app.ts] 887 bytes {main} [built] [failed] [1 error] +[./app.ts] 915 bytes {main} [built] [failed] [1 error] ERROR in ./app.ts Module build failed (from /index.js): Error: ts-loader was supplied with an unexpected loader option: notRealOption Please take a look at the options you are supplying; the following are valid options: -silent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective +silent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules / experimentalFileCaching / projectReferences / resolveModuleName / resolveTypeReferenceDirective / useCaseSensitiveFileNames - at validateLoaderOptions (dist\index.js:155:19) - at getLoaderOptions (dist\index.js:112:5) + at validateLoaderOptions (dist\index.js:153:19) + at getLoaderOptions (dist\index.js:110:5) at Object.loader (dist\index.js:16:21) \ No newline at end of file