diff --git a/src/compiler/tsbuildPublic.ts b/src/compiler/tsbuildPublic.ts index 280ebfcd267..5b17f2f4d90 100644 --- a/src/compiler/tsbuildPublic.ts +++ b/src/compiler/tsbuildPublic.ts @@ -226,7 +226,8 @@ namespace ts { readonly rootNames: readonly string[]; readonly baseWatchOptions: WatchOptions | undefined; - readonly resolvedConfigFilePaths: ESMap; + readonly resolvedConfigFilePaths: ESMap; + readonly resolvedPackageJsonPaths: ESMap; readonly configFileCache: ESMap; /** Map from config file name to up-to-date status */ readonly projectStatus: ESMap; @@ -257,9 +258,8 @@ namespace ts { readonly allWatchedWildcardDirectories: ESMap>; readonly allWatchedInputFiles: ESMap>; readonly allWatchedConfigFiles: ESMap; - readonly allWatchedExtendedConfigFiles: ESMap>; - readonly allWatchedPackageJsonFiles: ESMap>; - readonly lastCachedPackageJsonLookups: ESMap; + readonly allWatchedExtendedConfigFiles: ESMap>; + readonly allWatchedPackageJsonFiles: ESMap>; timerToBuildInvalidatedProject: any; reportFileChangeDetected: boolean; @@ -310,6 +310,7 @@ namespace ts { baseWatchOptions, resolvedConfigFilePaths: new Map(), + resolvedPackageJsonPaths: new Map(), configFileCache: new Map(), projectStatus: new Map(), buildInfoChecked: new Map(), @@ -341,7 +342,6 @@ namespace ts { allWatchedConfigFiles: new Map(), allWatchedExtendedConfigFiles: new Map(), allWatchedPackageJsonFiles: new Map(), - lastCachedPackageJsonLookups: new Map(), timerToBuildInvalidatedProject: undefined, reportFileChangeDetected: false, @@ -459,6 +459,7 @@ namespace ts { // Clear all to ResolvedConfigFilePaths cache to start fresh state.resolvedConfigFilePaths.clear(); + state.resolvedPackageJsonPaths.clear(); // TODO(rbuckton): Should be a `Set`, but that requires changing the code below that uses `mutateMapSkippingNewValues` const currentProjects = new Map( @@ -484,14 +485,7 @@ namespace ts { { onDeleteValue: closeFileWatcher } ); - state.allWatchedExtendedConfigFiles.forEach(watcher => { - watcher.projects.forEach(project => { - if (!currentProjects.has(project)) { - watcher.projects.delete(project); - } - }); - watcher.close(); - }); + state.allWatchedExtendedConfigFiles.forEach(closeSharedWatcherOfUnknownProjects); mutateMapSkippingNewValues( state.allWatchedWildcardDirectories, @@ -505,13 +499,18 @@ namespace ts { { onDeleteValue: existingMap => existingMap.forEach(closeFileWatcher) } ); - mutateMapSkippingNewValues( - state.allWatchedPackageJsonFiles, - currentProjects, - { onDeleteValue: existingMap => existingMap.forEach(closeFileWatcher) } - ); + state.allWatchedPackageJsonFiles.forEach(closeSharedWatcherOfUnknownProjects); } return state.buildOrder = buildOrder; + + function closeSharedWatcherOfUnknownProjects(watcher: SharedFileWatcher) { + watcher.projects.forEach(project => { + if (!currentProjects.has(project)) { + watcher.projects.delete(project); + } + }); + watcher.close(); + } } function getBuildOrderFor(state: SolutionBuilderState, project: string | undefined, onlyReferences: boolean | undefined): AnyBuildOrder | undefined { @@ -569,7 +568,7 @@ namespace ts { function disableCache(state: SolutionBuilderState) { if (!state.cache) return; - const { cache, host, compilerHost, extendedConfigCache, moduleResolutionCache, typeReferenceDirectiveResolutionCache } = state; + const { cache, host, compilerHost, extendedConfigCache, moduleResolutionCache, typeReferenceDirectiveResolutionCache, } = state; host.readFile = cache.originalReadFile; host.fileExists = cache.originalFileExists; @@ -874,11 +873,6 @@ namespace ts { config.projectReferences ); if (state.watch) { - state.lastCachedPackageJsonLookups.set(projectPath, state.moduleResolutionCache && map( - state.moduleResolutionCache.getPackageJsonInfoCache().entries(), - ([path, data]) => ([state.host.realpath && data ? toPath(state, state.host.realpath(path)) : path, data] as const) - )); - state.builderPrograms.set(projectPath, program); } step++; @@ -1216,10 +1210,9 @@ namespace ts { config.fileNames = getFileNamesFromConfigSpecs(config.options.configFile!.configFileSpecs!, getDirectoryPath(project), config.options, state.parseConfigFileHost); updateErrorForNoInputFiles(config.fileNames, project, config.options.configFile!.configFileSpecs!, config.errors, canJsonReportNoInputFiles(config.raw)); watchInputFiles(state, project, projectPath, config); - watchPackageJsonFiles(state, project, projectPath, config); } - const status = getUpToDateStatus(state, config, projectPath); + const status = getUpToDateStatus(state, config, project, projectPath); verboseReportProjectStatus(state, project, status); if (!options.force) { if (status.type === UpToDateStatusType.UpToDate) { @@ -1345,7 +1338,7 @@ namespace ts { } } - function getUpToDateStatusWorker(state: SolutionBuilderState, project: ParsedCommandLine, resolvedPath: ResolvedConfigFilePath): UpToDateStatus { + function getUpToDateStatusWorker(state: SolutionBuilderState, project: ParsedCommandLine, resolved: ResolvedConfigFileName, resolvedPath: ResolvedConfigFilePath): UpToDateStatus { const force = !!state.options.force; let newestInputFileName: string = undefined!; let newestInputFileTime = minimumDate; @@ -1433,7 +1426,7 @@ namespace ts { usesPrepend = usesPrepend || !!(ref.prepend); const resolvedRef = resolveProjectReferencePath(ref); const resolvedRefPath = toResolvedConfigFilePath(state, resolvedRef); - const refStatus = getUpToDateStatus(state, parseConfigFile(state, resolvedRef, resolvedRefPath), resolvedRefPath); + const refStatus = getUpToDateStatus(state, parseConfigFile(state, resolvedRef, resolvedRefPath), resolvedRef, resolvedRefPath); // Its a circular reference ignore the status of this project if (refStatus.type === UpToDateStatusType.ComputingUpstream || @@ -1507,13 +1500,16 @@ namespace ts { if (configStatus) return configStatus; // Check extended config time - const extendedConfigStatus = forEach(project.options.configFile!.extendedSourceFiles || emptyArray, configFile => checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName)); + const extendedConfigStatus = forEach( + project.options.configFile!.extendedSourceFiles || emptyArray, + configFile => checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName) + ); if (extendedConfigStatus) return extendedConfigStatus; // Check package file time const dependentPackageFileStatus = forEach( - state.lastCachedPackageJsonLookups.get(resolvedPath) || emptyArray, - ([path]) => checkConfigFileUpToDateStatus(state, path, oldestOutputFileTime, oldestOutputFileName) + getPackageJsonsFromConfig(state, resolved, project), + file => checkConfigFileUpToDateStatus(state, file, oldestOutputFileTime, oldestOutputFileName) ); if (dependentPackageFileStatus) return dependentPackageFileStatus; } @@ -1553,7 +1549,7 @@ namespace ts { }; } - function getUpToDateStatus(state: SolutionBuilderState, project: ParsedCommandLine | undefined, resolvedPath: ResolvedConfigFilePath): UpToDateStatus { + function getUpToDateStatus(state: SolutionBuilderState, project: ParsedCommandLine | undefined, resolved: ResolvedConfigFileName, resolvedPath: ResolvedConfigFilePath): UpToDateStatus { if (project === undefined) { return { type: UpToDateStatusType.Unbuildable, reason: "File deleted mid-build" }; } @@ -1563,7 +1559,7 @@ namespace ts { return prior; } - const actual = getUpToDateStatusWorker(state, project, resolvedPath); + const actual = getUpToDateStatusWorker(state, project, resolved, resolvedPath); state.projectStatus.set(resolvedPath, actual); return actual; } @@ -1772,6 +1768,12 @@ namespace ts { scheduleBuildInvalidatedProject(state); } + function invalidateProjectAndScheduledBuildsOfSharedFileWacher(state: SolutionBuilderState, sharedWatcher: SharedFileWatcher | undefined, reloadLevel: ConfigFileProgramReloadLevel) { + sharedWatcher?.projects.forEach(projectConfigFilePath => + invalidateProjectAndScheduleBuilds(state, projectConfigFilePath, reloadLevel) + ); + } + function scheduleBuildInvalidatedProject(state: SolutionBuilderState) { const { hostWithWatch } = state; if (!hostWithWatch.setTimeout || !hostWithWatch.clearTimeout) { @@ -1827,8 +1829,10 @@ namespace ts { state.allWatchedExtendedConfigFiles, (extendedConfigFileName, extendedConfigFilePath) => state.watchFile( extendedConfigFileName, - () => state.allWatchedExtendedConfigFiles.get(extendedConfigFilePath)?.projects.forEach(projectConfigFilePath => - invalidateProjectAndScheduleBuilds(state, projectConfigFilePath, ConfigFileProgramReloadLevel.Full) + () => invalidateProjectAndScheduledBuildsOfSharedFileWacher( + state, + state.allWatchedExtendedConfigFiles.get(extendedConfigFilePath), + ConfigFileProgramReloadLevel.Full, ), PollingInterval.High, parsed?.watchOptions, @@ -1888,22 +1892,43 @@ namespace ts { ); } + function getPackageJsonsFromConfig(state: SolutionBuilderState, resolved: ResolvedConfigFileName, parsed: ParsedCommandLine): string[] { + const result: string[] = [getPackageJsonPathFromConfig(state, resolved)]; + parsed.projectReferences?.forEach(ref => result.push(getPackageJsonPathFromConfig(state, resolveProjectName(state, ref.path)))); + return result; + } + + function getPackageJsonPathFromConfig(state: SolutionBuilderState, resolved: ResolvedConfigFileName) { + const { resolvedPackageJsonPaths } = state; + const path = resolvedPackageJsonPaths.get(resolved); + if (path !== undefined) return path; + + const packageJsonPath = combinePaths(getDirectoryPath(resolved), "package.json"); + resolvedPackageJsonPaths.set(resolved, packageJsonPath); + return packageJsonPath; + } + function watchPackageJsonFiles(state: SolutionBuilderState, resolved: ResolvedConfigFileName, resolvedPath: ResolvedConfigFilePath, parsed: ParsedCommandLine) { - if (!state.watch || !state.lastCachedPackageJsonLookups) return; - mutateMap( - getOrCreateValueMapFromConfigFileMap(state.allWatchedPackageJsonFiles, resolvedPath), - new Map(state.lastCachedPackageJsonLookups.get(resolvedPath)), - { - createNewValue: (path, _input) => state.watchFile( - path, - () => invalidateProjectAndScheduleBuilds(state, resolvedPath, ConfigFileProgramReloadLevel.None), - PollingInterval.High, - parsed?.watchOptions, - WatchType.PackageJson, - resolved + if (!state.watch) return; + // Container if no files are specified in the project, nothing to watch + if (!parsed.fileNames.length && !canJsonReportNoInputFiles(parsed.raw)) return; + updateSharedFileWatcher( + resolvedPath, + getPackageJsonsFromConfig(state, resolved, parsed), + state.allWatchedPackageJsonFiles, + (file, path) => state.watchFile( + file, + () => invalidateProjectAndScheduledBuildsOfSharedFileWacher( + state, + state.allWatchedPackageJsonFiles.get(path), + ConfigFileProgramReloadLevel.None, ), - onDeleteValue: closeFileWatcher, - } + PollingInterval.High, + parsed?.watchOptions, + WatchType.PackageJson, + resolved + ), + fileName => toPath(state, fileName), ); } @@ -1934,7 +1959,7 @@ namespace ts { clearMap(state.allWatchedExtendedConfigFiles, closeFileWatcherOf); clearMap(state.allWatchedWildcardDirectories, watchedWildcardDirectories => clearMap(watchedWildcardDirectories, closeFileWatcherOf)); clearMap(state.allWatchedInputFiles, watchedWildcardDirectories => clearMap(watchedWildcardDirectories, closeFileWatcher)); - clearMap(state.allWatchedPackageJsonFiles, watchedPacageJsonFiles => clearMap(watchedPacageJsonFiles, closeFileWatcher)); + clearMap(state.allWatchedPackageJsonFiles, closeFileWatcherOf); } /** @@ -1958,7 +1983,7 @@ namespace ts { getUpToDateStatusOfProject: project => { const configFileName = resolveProjectName(state, project); const configFilePath = toResolvedConfigFilePath(state, configFileName); - return getUpToDateStatus(state, parseConfigFile(state, configFileName, configFilePath), configFilePath); + return getUpToDateStatus(state, parseConfigFile(state, configFileName, configFilePath), configFileName, configFilePath); }, invalidateProject: (configFilePath, reloadLevel) => invalidateProject(state, configFilePath, reloadLevel || ConfigFileProgramReloadLevel.None), buildNextInvalidatedProject: () => buildNextInvalidatedProject(state), diff --git a/src/compiler/watchPublic.ts b/src/compiler/watchPublic.ts index c25326b0c98..eddcd4adb59 100644 --- a/src/compiler/watchPublic.ts +++ b/src/compiler/watchPublic.ts @@ -271,7 +271,7 @@ namespace ts { let timerToUpdateProgram: any; // timer callback to recompile the program let timerToInvalidateFailedLookupResolutions: any; // timer callback to invalidate resolutions for changes in failed lookup locations let parsedConfigs: ESMap | undefined; // Parsed commandline and watching cached for referenced projects - let sharedExtendedConfigFileWatchers: ESMap>; // Map of file watchers for extended files, shared between different referenced projects + let sharedExtendedConfigFileWatchers: ESMap>; // Map of file watchers for extended files, shared between different referenced projects let extendedConfigCache = host.extendedConfigCache; // Cache for extended config evaluation let changesAffectResolution = false; // Flag for indicating non-config changes affect module resolution let reportFileChangeDetectedOnCreateProgram = false; // True if synchronizeProgram should report "File change detected..." when a new program is created diff --git a/src/compiler/watchUtilities.ts b/src/compiler/watchUtilities.ts index e2fba1da657..08a3cc3be8a 100644 --- a/src/compiler/watchUtilities.ts +++ b/src/compiler/watchUtilities.ts @@ -282,7 +282,7 @@ namespace ts { Full } - export interface SharedExtendedConfigFileWatcher extends FileWatcher { + export interface SharedFileWatcher extends FileWatcher { watcher: FileWatcher; projects: Set; } @@ -290,37 +290,56 @@ namespace ts { /** * Updates the map of shared extended config file watches with a new set of extended config files from a base config file of the project */ - export function updateSharedExtendedConfigFileWatcher( + export function updateSharedExtendedConfigFileWatcher( projectPath: T, options: CompilerOptions | undefined, - extendedConfigFilesMap: ESMap>, + extendedConfigFilesMap: ESMap>, createExtendedConfigFileWatch: (extendedConfigPath: string, extendedConfigFilePath: Path) => FileWatcher, toPath: (fileName: string) => Path, + ) { + return updateSharedFileWatcher( + projectPath, + options?.configFile?.extendedSourceFiles || emptyArray, + extendedConfigFilesMap, + createExtendedConfigFileWatch, + toPath + ); + } + + /** + * Updates the map of shared extended config file watches with a new set of extended config files from a base config file of the project + */ + export function updateSharedFileWatcher( + projectPath: T, + filesToWatch: readonly string[], + fileWatchersMap: ESMap>, + createFileWatcher: (file: string, path: Path) => FileWatcher, + toPath: (fileName: string) => Path, ) { - const extendedConfigs = arrayToMap(options?.configFile?.extendedSourceFiles || emptyArray, toPath); + const filesToWatchMap = arrayToMap(filesToWatch, toPath); // remove project from all unrelated watchers - extendedConfigFilesMap.forEach((watcher, extendedConfigFilePath) => { - if (!extendedConfigs.has(extendedConfigFilePath)) { + fileWatchersMap.forEach((watcher, fileToWatchPath) => { + if (!filesToWatchMap.has(fileToWatchPath)) { watcher.projects.delete(projectPath); watcher.close(); } }); - // Update the extended config files watcher - extendedConfigs.forEach((extendedConfigFileName, extendedConfigFilePath) => { - const existing = extendedConfigFilesMap.get(extendedConfigFilePath); + // Update the files watcher + filesToWatchMap.forEach((fileToWatch, fileToWatchPath) => { + const existing = fileWatchersMap.get(fileToWatchPath); if (existing) { existing.projects.add(projectPath); } else { - // start watching previously unseen extended config - extendedConfigFilesMap.set(extendedConfigFilePath, { + // start watching previously unseen file + fileWatchersMap.set(fileToWatchPath, { projects: new Set([projectPath]), - watcher: createExtendedConfigFileWatch(extendedConfigFileName, extendedConfigFilePath), + watcher: createFileWatcher(fileToWatch, fileToWatchPath), close: () => { - const existing = extendedConfigFilesMap.get(extendedConfigFilePath); + const existing = fileWatchersMap.get(fileToWatchPath); if (!existing || existing.projects.size !== 0) return; existing.watcher.close(); - extendedConfigFilesMap.delete(extendedConfigFilePath); + fileWatchersMap.delete(fileToWatchPath); }, }); } @@ -332,7 +351,7 @@ namespace ts { */ export function clearSharedExtendedConfigFileWatcher( projectPath: T, - extendedConfigFilesMap: ESMap>, + extendedConfigFilesMap: ESMap>, ) { extendedConfigFilesMap.forEach(watcher => { if (watcher.projects.delete(projectPath)) watcher.close(); diff --git a/src/server/editorServices.ts b/src/server/editorServices.ts index d40294989ee..3e20588c2f8 100644 --- a/src/server/editorServices.ts +++ b/src/server/editorServices.ts @@ -788,7 +788,7 @@ namespace ts.server { readonly watchFactory: WatchFactory; /*@internal*/ - private readonly sharedExtendedConfigFileWatchers = new Map>(); + private readonly sharedExtendedConfigFileWatchers = new Map>(); /*@internal*/ private readonly extendedConfigCache = new Map(); diff --git a/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts b/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts index 59b021f660f..17398988cc6 100644 --- a/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts +++ b/src/testRunner/unittests/tsbuildWatch/moduleResolution.ts @@ -214,12 +214,18 @@ namespace ts.tscWatch { { caption: "reports import errors after change to package file", change: sys => replaceFileText(sys, `${projectRoot}/packages/pkg2/package.json`, `index.js`, `other.js`), - timeouts: runQueuedTimeoutCallbacks, + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // building pkg2 + sys.runQueuedTimeoutCallbacks(); // building pkg1 + }, }, { caption: "removes those errors when a package file is changed back", change: sys => replaceFileText(sys, `${projectRoot}/packages/pkg2/package.json`, `other.js`, `index.js`), - timeouts: runQueuedTimeoutCallbacks, + timeouts: sys => { + sys.runQueuedTimeoutCallbacks(); // building pkg2 + sys.runQueuedTimeoutCallbacks(); // building pkg1 + }, }, ] }); diff --git a/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js index 9d3742581c1..e2cd0a4b36a 100644 --- a/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js +++ b/tests/baselines/reference/tsbuildWatch/configFileErrors/reports-syntax-errors-in-config-file.js @@ -63,6 +63,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.ts","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: @@ -119,6 +121,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.ts","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: @@ -166,6 +170,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.ts","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: @@ -211,6 +217,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.ts","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: @@ -259,6 +267,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.ts","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js index dbaea614c79..6c10ab627aa 100644 --- a/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js +++ b/tests/baselines/reference/tsbuildWatch/demo/updates-with-bad-reference.js @@ -252,8 +252,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/demo/tsconfig-base.json","pollingInterval":250} /user/username/projects/demo/core/utilities.ts: {"fileName":"/user/username/projects/demo/core/utilities.ts","pollingInterval":250} -/user/username/projects/demo/animals/package.json: - {"fileName":"/user/username/projects/demo/animals/package.json","pollingInterval":250} +/user/username/projects/demo/core/package.json: + {"fileName":"/user/username/projects/demo/core/package.json","pollingInterval":250} /user/username/projects/demo/animals/tsconfig.json: {"fileName":"/user/username/projects/demo/animals/tsconfig.json","pollingInterval":250} /user/username/projects/demo/animals/animal.ts: @@ -262,10 +262,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/demo/animals/dog.ts","pollingInterval":250} /user/username/projects/demo/animals/index.ts: {"fileName":"/user/username/projects/demo/animals/index.ts","pollingInterval":250} +/user/username/projects/demo/animals/package.json: + {"fileName":"/user/username/projects/demo/animals/package.json","pollingInterval":250} /user/username/projects/demo/zoo/tsconfig.json: {"fileName":"/user/username/projects/demo/zoo/tsconfig.json","pollingInterval":250} /user/username/projects/demo/zoo/zoo.ts: {"fileName":"/user/username/projects/demo/zoo/zoo.ts","pollingInterval":250} +/user/username/projects/demo/zoo/package.json: + {"fileName":"/user/username/projects/demo/zoo/package.json","pollingInterval":250} /user/username/projects/demo/tsconfig.json: {"fileName":"/user/username/projects/demo/tsconfig.json","pollingInterval":250} @@ -522,8 +526,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/demo/tsconfig-base.json","pollingInterval":250} /user/username/projects/demo/core/utilities.ts: {"fileName":"/user/username/projects/demo/core/utilities.ts","pollingInterval":250} -/user/username/projects/demo/animals/package.json: - {"fileName":"/user/username/projects/demo/animals/package.json","pollingInterval":250} +/user/username/projects/demo/core/package.json: + {"fileName":"/user/username/projects/demo/core/package.json","pollingInterval":250} /user/username/projects/demo/animals/tsconfig.json: {"fileName":"/user/username/projects/demo/animals/tsconfig.json","pollingInterval":250} /user/username/projects/demo/animals/animal.ts: @@ -532,10 +536,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/demo/animals/dog.ts","pollingInterval":250} /user/username/projects/demo/animals/index.ts: {"fileName":"/user/username/projects/demo/animals/index.ts","pollingInterval":250} +/user/username/projects/demo/animals/package.json: + {"fileName":"/user/username/projects/demo/animals/package.json","pollingInterval":250} /user/username/projects/demo/zoo/tsconfig.json: {"fileName":"/user/username/projects/demo/zoo/tsconfig.json","pollingInterval":250} /user/username/projects/demo/zoo/zoo.ts: {"fileName":"/user/username/projects/demo/zoo/zoo.ts","pollingInterval":250} +/user/username/projects/demo/zoo/package.json: + {"fileName":"/user/username/projects/demo/zoo/package.json","pollingInterval":250} /user/username/projects/demo/tsconfig.json: {"fileName":"/user/username/projects/demo/tsconfig.json","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js index 2b7648cb5a4..94b140d3be7 100644 --- a/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js +++ b/tests/baselines/reference/tsbuildWatch/demo/updates-with-circular-reference.js @@ -178,10 +178,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/demo/animals/dog.ts","pollingInterval":250} /user/username/projects/demo/animals/index.ts: {"fileName":"/user/username/projects/demo/animals/index.ts","pollingInterval":250} +/user/username/projects/demo/animals/package.json: + {"fileName":"/user/username/projects/demo/animals/package.json","pollingInterval":250} +/user/username/projects/demo/core/package.json: + {"fileName":"/user/username/projects/demo/core/package.json","pollingInterval":250} /user/username/projects/demo/zoo/tsconfig.json: {"fileName":"/user/username/projects/demo/zoo/tsconfig.json","pollingInterval":250} /user/username/projects/demo/zoo/zoo.ts: {"fileName":"/user/username/projects/demo/zoo/zoo.ts","pollingInterval":250} +/user/username/projects/demo/zoo/package.json: + {"fileName":"/user/username/projects/demo/zoo/package.json","pollingInterval":250} /user/username/projects/demo/core/tsconfig.json: {"fileName":"/user/username/projects/demo/core/tsconfig.json","pollingInterval":250} /user/username/projects/demo/core/utilities.ts: @@ -309,10 +315,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/demo/animals/dog.ts","pollingInterval":250} /user/username/projects/demo/animals/index.ts: {"fileName":"/user/username/projects/demo/animals/index.ts","pollingInterval":250} +/user/username/projects/demo/animals/package.json: + {"fileName":"/user/username/projects/demo/animals/package.json","pollingInterval":250} +/user/username/projects/demo/core/package.json: + {"fileName":"/user/username/projects/demo/core/package.json","pollingInterval":250} /user/username/projects/demo/zoo/tsconfig.json: {"fileName":"/user/username/projects/demo/zoo/tsconfig.json","pollingInterval":250} /user/username/projects/demo/zoo/zoo.ts: {"fileName":"/user/username/projects/demo/zoo/zoo.ts","pollingInterval":250} +/user/username/projects/demo/zoo/package.json: + {"fileName":"/user/username/projects/demo/zoo/package.json","pollingInterval":250} /user/username/projects/demo/core/tsconfig.json: {"fileName":"/user/username/projects/demo/core/tsconfig.json","pollingInterval":250} /user/username/projects/demo/core/utilities.ts: diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js index 3396771bc58..80845289279 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/build-mode-watches-for-changes-to-package-json-main-fields.js @@ -157,12 +157,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg2/other.ts: {"fileName":"/user/username/projects/myproject/packages/pkg2/other.ts","pollingInterval":250} +/user/username/projects/myproject/packages/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250} -/user/username/projects/myproject/packages/pkg2/package.json: - {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} +/user/username/projects/myproject/packages/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250} FsWatches:: @@ -281,9 +283,24 @@ Output:: >> Screen clear [12:01:17 AM] File change detected. Starting incremental compilation... -[12:01:18 AM] Project 'packages/pkg1/tsconfig.json' is out of date because oldest output 'packages/pkg1/build/index.js' is older than newest input 'packages/pkg2' +[12:01:18 AM] Project 'packages/pkg2/tsconfig.json' is out of date because oldest output 'packages/pkg2/build/const.js' is older than newest input 'packages/pkg2/package.json' -[12:01:19 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:19 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... + +======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.js', target file type 'TypeScript'. +File '/user/username/projects/myproject/packages/pkg2/const.js.ts' does not exist. +File '/user/username/projects/myproject/packages/pkg2/const.js.tsx' does not exist. +File '/user/username/projects/myproject/packages/pkg2/const.js.d.ts' does not exist. +File name '/user/username/projects/myproject/packages/pkg2/const.js' has a '.js' extension - stripping it. +File '/user/username/projects/myproject/packages/pkg2/const.ts' exist - use it as a name resolution result. +======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== +[12:01:21 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... + +[12:01:22 AM] Project 'packages/pkg1/tsconfig.json' is out of date because oldest output 'packages/pkg1/build/index.js' is older than newest input 'packages/pkg2/package.json' + +[12:01:23 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'NodeJs'. @@ -315,10 +332,23 @@ Resolving real path for '/user/username/projects/myproject/node_modules/pkg2/bui 1 import type { TheNum } from 'pkg2'    ~~~~~~ -[12:01:20 AM] Found 1 error. Watching for file changes. +[12:01:24 AM] Found 1 error. Watching for file changes. +Program root files: ["/user/username/projects/myproject/packages/pkg2/const.ts","/user/username/projects/myproject/packages/pkg2/index.ts","/user/username/projects/myproject/packages/pkg2/other.ts"] +Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","baseUrl":"/user/username/projects/myproject/packages/pkg2","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/packages/pkg2/const.ts +/user/username/projects/myproject/packages/pkg2/index.ts +/user/username/projects/myproject/packages/pkg2/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} Program structureReused: Not @@ -344,12 +374,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg2/other.ts: {"fileName":"/user/username/projects/myproject/packages/pkg2/other.ts","pollingInterval":250} +/user/username/projects/myproject/packages/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250} -/user/username/projects/myproject/packages/pkg2/package.json: - {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} +/user/username/projects/myproject/packages/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250} FsWatches:: @@ -361,6 +393,13 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/packages/pkg2/build/const.js] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/index.js] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/other.js] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/other.d.ts] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] file changed its modified time Change:: removes those errors when a package file is changed back @@ -371,11 +410,26 @@ Input:: Output:: >> Screen clear -[12:01:24 AM] File change detected. Starting incremental compilation... +[12:01:28 AM] File change detected. Starting incremental compilation... -[12:01:25 AM] Project 'packages/pkg1/tsconfig.json' is out of date because oldest output 'packages/pkg1/build/index.js' is older than newest input 'packages/pkg2' +[12:01:29 AM] Project 'packages/pkg2/tsconfig.json' is out of date because oldest output 'packages/pkg2/build/const.js' is older than newest input 'packages/pkg2/package.json' -[12:01:26 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... +[12:01:30 AM] Building project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... + +======== Resolving module './const.js' from '/user/username/projects/myproject/packages/pkg2/index.ts'. ======== +Module resolution kind is not specified, using 'NodeJs'. +Loading module as file / folder, candidate module location '/user/username/projects/myproject/packages/pkg2/const.js', target file type 'TypeScript'. +File '/user/username/projects/myproject/packages/pkg2/const.js.ts' does not exist. +File '/user/username/projects/myproject/packages/pkg2/const.js.tsx' does not exist. +File '/user/username/projects/myproject/packages/pkg2/const.js.d.ts' does not exist. +File name '/user/username/projects/myproject/packages/pkg2/const.js' has a '.js' extension - stripping it. +File '/user/username/projects/myproject/packages/pkg2/const.ts' exist - use it as a name resolution result. +======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/const.ts'. ======== +[12:01:32 AM] Updating unchanged output timestamps of project '/user/username/projects/myproject/packages/pkg2/tsconfig.json'... + +[12:01:33 AM] Project 'packages/pkg1/tsconfig.json' is out of date because oldest output 'packages/pkg1/build/index.js' is older than newest input 'packages/pkg2' + +[12:01:34 AM] Building project '/user/username/projects/myproject/packages/pkg1/tsconfig.json'... ======== Resolving module 'pkg2' from '/user/username/projects/myproject/packages/pkg1/index.ts'. ======== Module resolution kind is not specified, using 'NodeJs'. @@ -414,10 +468,23 @@ File '/user/username/projects/myproject/packages/pkg2/build/const.ts' does not e File '/user/username/projects/myproject/packages/pkg2/build/const.tsx' does not exist. File '/user/username/projects/myproject/packages/pkg2/build/const.d.ts' exist - use it as a name resolution result. ======== Module name './const.js' was successfully resolved to '/user/username/projects/myproject/packages/pkg2/build/const.d.ts'. ======== -[12:01:30 AM] Found 0 errors. Watching for file changes. +[12:01:38 AM] Found 0 errors. Watching for file changes. +Program root files: ["/user/username/projects/myproject/packages/pkg2/const.ts","/user/username/projects/myproject/packages/pkg2/index.ts","/user/username/projects/myproject/packages/pkg2/other.ts"] +Program options: {"composite":true,"outDir":"/user/username/projects/myproject/packages/pkg2/build","baseUrl":"/user/username/projects/myproject/packages/pkg2","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg2/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/user/username/projects/myproject/packages/pkg2/const.ts +/user/username/projects/myproject/packages/pkg2/index.ts +/user/username/projects/myproject/packages/pkg2/other.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + Program root files: ["/user/username/projects/myproject/packages/pkg1/index.ts"] Program options: {"outDir":"/user/username/projects/myproject/packages/pkg1/build","watch":true,"traceResolution":true,"configFilePath":"/user/username/projects/myproject/packages/pkg1/tsconfig.json"} Program structureReused: Not @@ -446,12 +513,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg2/other.ts: {"fileName":"/user/username/projects/myproject/packages/pkg2/other.ts","pollingInterval":250} +/user/username/projects/myproject/packages/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250} -/user/username/projects/myproject/packages/pkg2/package.json: - {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} +/user/username/projects/myproject/packages/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250} FsWatches:: @@ -463,4 +532,11 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined +//// [/user/username/projects/myproject/packages/pkg2/build/const.js] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/const.d.ts] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/index.js] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/index.d.ts] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/other.js] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/other.d.ts] file changed its modified time +//// [/user/username/projects/myproject/packages/pkg2/build/tsconfig.tsbuildinfo] file changed its modified time //// [/user/username/projects/myproject/packages/pkg1/build/index.js] file written with same contents diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js index 4406ea8a5c5..c5373d62745 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolution/resolves-specifier-in-output-declaration-file-from-referenced-project-correctly-with-cts-and-mts-extensions.js @@ -151,24 +151,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg2/package.json: {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} -/a/lib/package.json: - {"fileName":"/a/lib/package.json","pollingInterval":250} - {"fileName":"/a/lib/package.json","pollingInterval":250} -/a/package.json: - {"fileName":"/a/package.json","pollingInterval":250} - {"fileName":"/a/package.json","pollingInterval":250} -/package.json: - {"fileName":"/package.json","pollingInterval":250} - {"fileName":"/package.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/package.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250} -/user/username/projects/myproject/packages/pkg2/build/package.json: - {"fileName":"/user/username/projects/myproject/packages/pkg2/build/package.json","pollingInterval":250} FsWatches:: @@ -351,24 +339,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg2/package.json: {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} -/a/lib/package.json: - {"fileName":"/a/lib/package.json","pollingInterval":250} - {"fileName":"/a/lib/package.json","pollingInterval":250} -/a/package.json: - {"fileName":"/a/package.json","pollingInterval":250} - {"fileName":"/a/package.json","pollingInterval":250} -/package.json: - {"fileName":"/package.json","pollingInterval":250} - {"fileName":"/package.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/package.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250} -/user/username/projects/myproject/packages/pkg2/build/package.json: - {"fileName":"/user/username/projects/myproject/packages/pkg2/build/package.json","pollingInterval":250} FsWatches:: @@ -460,24 +436,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg2/package.json: {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} -/a/lib/package.json: - {"fileName":"/a/lib/package.json","pollingInterval":250} - {"fileName":"/a/lib/package.json","pollingInterval":250} -/a/package.json: - {"fileName":"/a/package.json","pollingInterval":250} - {"fileName":"/a/package.json","pollingInterval":250} -/package.json: - {"fileName":"/package.json","pollingInterval":250} - {"fileName":"/package.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/package.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250} -/user/username/projects/myproject/packages/pkg2/build/package.json: - {"fileName":"/user/username/projects/myproject/packages/pkg2/build/package.json","pollingInterval":250} FsWatches:: @@ -581,24 +545,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/packages/pkg2/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg2/package.json: {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} -/a/lib/package.json: - {"fileName":"/a/lib/package.json","pollingInterval":250} - {"fileName":"/a/lib/package.json","pollingInterval":250} -/a/package.json: - {"fileName":"/a/package.json","pollingInterval":250} - {"fileName":"/a/package.json","pollingInterval":250} -/package.json: - {"fileName":"/package.json","pollingInterval":250} - {"fileName":"/package.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/package.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250} -/user/username/projects/myproject/packages/pkg2/build/package.json: - {"fileName":"/user/username/projects/myproject/packages/pkg2/build/package.json","pollingInterval":250} FsWatches:: @@ -731,24 +683,12 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/packages/pkg2/const.cts","pollingInterval":250} /user/username/projects/myproject/packages/pkg2/package.json: {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/packages/pkg2/package.json","pollingInterval":250} -/a/lib/package.json: - {"fileName":"/a/lib/package.json","pollingInterval":250} - {"fileName":"/a/lib/package.json","pollingInterval":250} -/a/package.json: - {"fileName":"/a/package.json","pollingInterval":250} - {"fileName":"/a/package.json","pollingInterval":250} -/package.json: - {"fileName":"/package.json","pollingInterval":250} - {"fileName":"/package.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/packages/pkg1/index.ts","pollingInterval":250} /user/username/projects/myproject/packages/pkg1/package.json: {"fileName":"/user/username/projects/myproject/packages/pkg1/package.json","pollingInterval":250} -/user/username/projects/myproject/packages/pkg2/build/package.json: - {"fileName":"/user/username/projects/myproject/packages/pkg2/build/package.json","pollingInterval":250} /user/username/projects/myproject/packages/pkg2/index.cts: {"fileName":"/user/username/projects/myproject/packages/pkg2/index.cts","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js index 9c07d419818..cc137197a67 100644 --- a/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js +++ b/tests/baselines/reference/tsbuildWatch/moduleResolutionCache/handles-the-cache-correctly-when-two-projects-use-different-module-resolution-settings.js @@ -112,19 +112,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/project1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/project1/index.ts: {"fileName":"/user/username/projects/myproject/project1/index.ts","pollingInterval":250} -/user/username/projects/myproject/project1/node_modules/file/package.json: - {"fileName":"/user/username/projects/myproject/project1/node_modules/file/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/project1/node_modules/file/package.json","pollingInterval":250} -/user/username/projects/myproject/node_modules/@types/foo/package.json: - {"fileName":"/user/username/projects/myproject/node_modules/@types/foo/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/node_modules/@types/foo/package.json","pollingInterval":250} -/user/username/projects/myproject/node_modules/@types/bar/package.json: - {"fileName":"/user/username/projects/myproject/node_modules/@types/bar/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/node_modules/@types/bar/package.json","pollingInterval":250} +/user/username/projects/myproject/project1/package.json: + {"fileName":"/user/username/projects/myproject/project1/package.json","pollingInterval":250} /user/username/projects/myproject/project2/tsconfig.json: {"fileName":"/user/username/projects/myproject/project2/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/project2/index.ts: {"fileName":"/user/username/projects/myproject/project2/index.ts","pollingInterval":250} +/user/username/projects/myproject/project2/package.json: + {"fileName":"/user/username/projects/myproject/project2/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} @@ -311,19 +306,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/project1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/project1/index.ts: {"fileName":"/user/username/projects/myproject/project1/index.ts","pollingInterval":250} -/user/username/projects/myproject/project1/node_modules/file/package.json: - {"fileName":"/user/username/projects/myproject/project1/node_modules/file/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/project1/node_modules/file/package.json","pollingInterval":250} -/user/username/projects/myproject/node_modules/@types/foo/package.json: - {"fileName":"/user/username/projects/myproject/node_modules/@types/foo/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/node_modules/@types/foo/package.json","pollingInterval":250} -/user/username/projects/myproject/node_modules/@types/bar/package.json: - {"fileName":"/user/username/projects/myproject/node_modules/@types/bar/package.json","pollingInterval":250} - {"fileName":"/user/username/projects/myproject/node_modules/@types/bar/package.json","pollingInterval":250} +/user/username/projects/myproject/project1/package.json: + {"fileName":"/user/username/projects/myproject/project1/package.json","pollingInterval":250} /user/username/projects/myproject/project2/tsconfig.json: {"fileName":"/user/username/projects/myproject/project2/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/project2/index.ts: {"fileName":"/user/username/projects/myproject/project2/index.ts","pollingInterval":250} +/user/username/projects/myproject/project2/package.json: + {"fileName":"/user/username/projects/myproject/project2/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js index 080ca6d1b74..f0fb399cde4 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted-with-incremental.js @@ -65,6 +65,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.js","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: @@ -159,6 +161,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.js","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: @@ -212,6 +216,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.js","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js index 2d382325db2..df17c37b8dd 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/noEmit/does-not-go-in-loop-when-watching-when-no-files-are-emitted.js @@ -65,6 +65,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.js","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: @@ -111,6 +113,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.js","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: @@ -164,6 +168,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/a.js","pollingInterval":250} /user/username/projects/myproject/b.ts: {"fileName":"/user/username/projects/myproject/b.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js index 8c147b7dba4..8bd11ca5478 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error-with-incremental.js @@ -82,6 +82,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -136,6 +138,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -198,6 +202,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -333,6 +339,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -462,6 +470,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -518,6 +528,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -634,6 +646,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js index dd26029f8f5..750a451287f 100644 --- a/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js +++ b/tests/baselines/reference/tsbuildWatch/noEmitOnError/does-not-emit-any-files-on-error.js @@ -82,6 +82,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -136,6 +138,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -198,6 +202,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -276,6 +282,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -330,6 +338,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -386,6 +396,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: @@ -445,6 +457,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/noEmitOnError/src/main.ts","pollingInterval":250} /user/username/projects/noemitonerror/src/other.ts: {"fileName":"/user/username/projects/noEmitOnError/src/other.ts","pollingInterval":250} +/user/username/projects/noemitonerror/package.json: + {"fileName":"/user/username/projects/noEmitOnError/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js index cdd4fcec999..8faf14b529a 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/creates-solution-in-watch-mode.js @@ -181,14 +181,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js index 643d73446c3..efb01908995 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/incremental-updates-in-verbose-mode.js @@ -198,14 +198,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -536,14 +542,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -715,14 +727,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js index 8c730f537d2..c0e80bffd73 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-file-with-no-error-changes.js @@ -59,6 +59,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/solution/app/fileWithError.ts","pollingInterval":250} /user/username/projects/solution/app/filewithouterror.ts: {"fileName":"/user/username/projects/solution/app/fileWithoutError.ts","pollingInterval":250} +/user/username/projects/solution/app/package.json: + {"fileName":"/user/username/projects/solution/app/package.json","pollingInterval":250} FsWatches:: @@ -191,6 +193,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/solution/app/fileWithError.ts","pollingInterval":250} /user/username/projects/solution/app/filewithouterror.ts: {"fileName":"/user/username/projects/solution/app/fileWithoutError.ts","pollingInterval":250} +/user/username/projects/solution/app/package.json: + {"fileName":"/user/username/projects/solution/app/package.json","pollingInterval":250} FsWatches:: @@ -242,6 +246,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/solution/app/fileWithError.ts","pollingInterval":250} /user/username/projects/solution/app/filewithouterror.ts: {"fileName":"/user/username/projects/solution/app/fileWithoutError.ts","pollingInterval":250} +/user/username/projects/solution/app/package.json: + {"fileName":"/user/username/projects/solution/app/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js index 5995d27a3dd..49dd5606f8d 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/introduceError/when-fixing-errors-only-changed-file-is-emitted.js @@ -59,6 +59,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/solution/app/fileWithError.ts","pollingInterval":250} /user/username/projects/solution/app/filewithouterror.ts: {"fileName":"/user/username/projects/solution/app/fileWithoutError.ts","pollingInterval":250} +/user/username/projects/solution/app/package.json: + {"fileName":"/user/username/projects/solution/app/package.json","pollingInterval":250} FsWatches:: @@ -191,6 +193,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/solution/app/fileWithError.ts","pollingInterval":250} /user/username/projects/solution/app/filewithouterror.ts: {"fileName":"/user/username/projects/solution/app/fileWithoutError.ts","pollingInterval":250} +/user/username/projects/solution/app/package.json: + {"fileName":"/user/username/projects/solution/app/package.json","pollingInterval":250} FsWatches:: @@ -240,6 +244,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/solution/app/fileWithError.ts","pollingInterval":250} /user/username/projects/solution/app/filewithouterror.ts: {"fileName":"/user/username/projects/solution/app/fileWithoutError.ts","pollingInterval":250} +/user/username/projects/solution/app/package.json: + {"fileName":"/user/username/projects/solution/app/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js index 4015ea58164..66e97adb541 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-file-with-no-error-changes.js @@ -64,6 +64,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/solution/app/fileWithError.ts","pollingInterval":250} /user/username/projects/solution/app/filewithouterror.ts: {"fileName":"/user/username/projects/solution/app/fileWithoutError.ts","pollingInterval":250} +/user/username/projects/solution/app/package.json: + {"fileName":"/user/username/projects/solution/app/package.json","pollingInterval":250} FsWatches:: @@ -115,6 +117,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/solution/app/fileWithError.ts","pollingInterval":250} /user/username/projects/solution/app/filewithouterror.ts: {"fileName":"/user/username/projects/solution/app/fileWithoutError.ts","pollingInterval":250} +/user/username/projects/solution/app/package.json: + {"fileName":"/user/username/projects/solution/app/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js index c019a99ee91..317d46f90fb 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/declarationEmitErrors/when-fixing-error-files-all-files-are-emitted.js @@ -64,6 +64,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/solution/app/fileWithError.ts","pollingInterval":250} /user/username/projects/solution/app/filewithouterror.ts: {"fileName":"/user/username/projects/solution/app/fileWithoutError.ts","pollingInterval":250} +/user/username/projects/solution/app/package.json: + {"fileName":"/user/username/projects/solution/app/package.json","pollingInterval":250} FsWatches:: @@ -113,6 +115,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/solution/app/fileWithError.ts","pollingInterval":250} /user/username/projects/solution/app/filewithouterror.ts: {"fileName":"/user/username/projects/solution/app/fileWithoutError.ts","pollingInterval":250} +/user/username/projects/solution/app/package.json: + {"fileName":"/user/username/projects/solution/app/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js index a8153212b39..537804e7499 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-not-used.js @@ -181,14 +181,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -516,14 +522,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -672,14 +684,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js index eb6b300a47b..5fcf9321a19 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/reportErrors/when-preserveWatchOutput-is-passed-on-command-line.js @@ -180,14 +180,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -514,14 +520,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -669,14 +681,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js index 7a9b4eeb19a..d06e39f757d 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit-with-outDir-specified.js @@ -67,6 +67,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} FsWatches:: @@ -160,6 +162,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} FsWatches:: @@ -213,6 +217,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/core/file3.ts: {"fileName":"/user/username/projects/sample1/core/file3.ts","pollingInterval":250} @@ -301,6 +307,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/core/file3.ts: {"fileName":"/user/username/projects/sample1/core/file3.ts","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js index c81779a1252..90d7b9ea722 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit.js @@ -74,6 +74,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} FsWatches:: @@ -175,6 +177,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} FsWatches:: @@ -228,6 +232,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/core/file3.ts: {"fileName":"/user/username/projects/sample1/core/file3.ts","pollingInterval":250} @@ -323,6 +329,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/core/file3.ts: {"fileName":"/user/username/projects/sample1/core/file3.ts","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js index caef5fcf161..f3202a9dfef 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/verify-building-references-watches-only-those-projects.js @@ -157,10 +157,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js index a9713a13209..626f6c553c1 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/watches-config-files-that-are-not-present.js @@ -104,12 +104,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} FsWatches:: @@ -251,12 +257,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} @@ -401,12 +413,18 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js index bc3d7d649a1..02d2f0b006b 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-project-change-introduces-error-in-the-down-stream-project-and-then-fixes-it.js @@ -84,10 +84,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/Library/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/library/library.ts: {"fileName":"/user/username/projects/sample1/Library/library.ts","pollingInterval":250} +/user/username/projects/sample1/library/package.json: + {"fileName":"/user/username/projects/sample1/Library/package.json","pollingInterval":250} /user/username/projects/sample1/app/tsconfig.json: {"fileName":"/user/username/projects/sample1/App/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/app/app.ts: {"fileName":"/user/username/projects/sample1/App/app.ts","pollingInterval":250} +/user/username/projects/sample1/app/package.json: + {"fileName":"/user/username/projects/sample1/App/package.json","pollingInterval":250} FsWatches:: @@ -232,10 +236,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/Library/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/library/library.ts: {"fileName":"/user/username/projects/sample1/Library/library.ts","pollingInterval":250} +/user/username/projects/sample1/library/package.json: + {"fileName":"/user/username/projects/sample1/Library/package.json","pollingInterval":250} /user/username/projects/sample1/app/tsconfig.json: {"fileName":"/user/username/projects/sample1/App/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/app/app.ts: {"fileName":"/user/username/projects/sample1/App/app.ts","pollingInterval":250} +/user/username/projects/sample1/app/package.json: + {"fileName":"/user/username/projects/sample1/App/package.json","pollingInterval":250} FsWatches:: @@ -363,10 +371,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/Library/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/library/library.ts: {"fileName":"/user/username/projects/sample1/Library/library.ts","pollingInterval":250} +/user/username/projects/sample1/library/package.json: + {"fileName":"/user/username/projects/sample1/Library/package.json","pollingInterval":250} /user/username/projects/sample1/app/tsconfig.json: {"fileName":"/user/username/projects/sample1/App/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/app/app.ts: {"fileName":"/user/username/projects/sample1/App/app.ts","pollingInterval":250} +/user/username/projects/sample1/app/package.json: + {"fileName":"/user/username/projects/sample1/App/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js index 6b2bd47dff8..b4f62b14af2 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/when-referenced-using-prepend-builds-referencing-project-even-for-non-local-change.js @@ -62,10 +62,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} FsWatches:: @@ -264,10 +268,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} FsWatches:: @@ -367,10 +375,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} FsWatches:: @@ -516,10 +528,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} FsWatches:: @@ -603,10 +619,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js index 47c6be2b396..1adac6db271 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -155,10 +155,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -468,10 +474,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -579,10 +591,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -635,10 +653,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -696,10 +720,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -815,10 +845,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -871,10 +907,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js index c75488ba556..eb3c20f5dc1 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/change-builds-changes-and-reports-found-errors-message.js @@ -155,10 +155,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -471,10 +477,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -590,10 +602,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -715,10 +733,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -855,10 +879,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -966,10 +996,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -1091,10 +1127,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -1233,10 +1275,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -1360,10 +1408,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -1485,10 +1539,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js index 3d6e66045df..db1d0210e85 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-circular-project-reference/non-local-change-does-not-start-build-of-referencing-projects.js @@ -155,10 +155,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -471,10 +477,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -561,10 +573,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: @@ -601,10 +619,16 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js index 6aafabd4097..64e9961035e 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/builds-when-new-file-is-added,-and-its-subsequent-updates.js @@ -181,14 +181,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -502,14 +508,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/core/newfile.ts: {"fileName":"/user/username/projects/sample1/core/newfile.ts","pollingInterval":250} @@ -620,14 +632,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/core/newfile.ts: {"fileName":"/user/username/projects/sample1/core/newfile.ts","pollingInterval":250} @@ -676,14 +694,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/core/newfile.ts: {"fileName":"/user/username/projects/sample1/core/newfile.ts","pollingInterval":250} @@ -737,14 +761,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/core/newfile.ts: {"fileName":"/user/username/projects/sample1/core/newfile.ts","pollingInterval":250} @@ -863,14 +893,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/core/newfile.ts: {"fileName":"/user/username/projects/sample1/core/newfile.ts","pollingInterval":250} @@ -919,14 +955,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} /user/username/projects/sample1/core/newfile.ts: {"fileName":"/user/username/projects/sample1/core/newfile.ts","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js index d8fc2592bbe..30efd70640d 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/change-builds-changes-and-reports-found-errors-message.js @@ -181,14 +181,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -505,14 +511,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -630,14 +642,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -755,14 +773,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -895,14 +919,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -1012,14 +1042,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -1137,14 +1173,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -1279,14 +1321,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -1412,14 +1460,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -1537,14 +1591,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js index bfe1294d290..b3413498091 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/with-simple-project-reference-graph/non-local-change-does-not-start-build-of-referencing-projects.js @@ -181,14 +181,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -505,14 +511,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -599,14 +611,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: @@ -639,14 +657,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/sample1/core/anotherModule.ts","pollingInterval":250} /user/username/projects/sample1/core/index.ts: {"fileName":"/user/username/projects/sample1/core/index.ts","pollingInterval":250} +/user/username/projects/sample1/core/package.json: + {"fileName":"/user/username/projects/sample1/core/package.json","pollingInterval":250} /user/username/projects/sample1/logic/tsconfig.json: {"fileName":"/user/username/projects/sample1/logic/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/logic/index.ts: {"fileName":"/user/username/projects/sample1/logic/index.ts","pollingInterval":250} +/user/username/projects/sample1/logic/package.json: + {"fileName":"/user/username/projects/sample1/logic/package.json","pollingInterval":250} /user/username/projects/sample1/tests/tsconfig.json: {"fileName":"/user/username/projects/sample1/tests/tsconfig.json","pollingInterval":250} /user/username/projects/sample1/tests/index.ts: {"fileName":"/user/username/projects/sample1/tests/index.ts","pollingInterval":250} +/user/username/projects/sample1/tests/package.json: + {"fileName":"/user/username/projects/sample1/tests/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js index 02d8ce95925..2b9aebf5af0 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-correctly-when-project-with-extended-config-is-removed.js @@ -101,6 +101,8 @@ WatchedFiles:: {"fileName":"/a/b/commonFile1.ts","pollingInterval":250} /a/b/commonfile2.ts: {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} +/a/b/package.json: + {"fileName":"/a/b/package.json","pollingInterval":250} /a/b/project2.tsconfig.json: {"fileName":"/a/b/project2.tsconfig.json","pollingInterval":250} /a/b/bravo.tsconfig.json: @@ -249,6 +251,8 @@ WatchedFiles:: {"fileName":"/a/b/commonFile1.ts","pollingInterval":250} /a/b/commonfile2.ts: {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} +/a/b/package.json: + {"fileName":"/a/b/package.json","pollingInterval":250} /a/b/tsconfig.json: {"fileName":"/a/b/tsconfig.json","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js index fdce48d40fc..ad78be5ff60 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-when-noUnusedParameters-changes-to-false.js @@ -53,6 +53,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/index.ts: {"fileName":"/user/username/projects/myproject/index.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: @@ -96,6 +98,8 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/index.ts: {"fileName":"/user/username/projects/myproject/index.ts","pollingInterval":250} +/user/username/projects/myproject/package.json: + {"fileName":"/user/username/projects/myproject/package.json","pollingInterval":250} FsWatches:: diff --git a/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js index abb8acaffde..4582d6b56d9 100644 --- a/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js +++ b/tests/baselines/reference/tsbuildWatch/programUpdates/works-with-extended-source-files.js @@ -97,6 +97,8 @@ WatchedFiles:: {"fileName":"/a/b/commonFile1.ts","pollingInterval":250} /a/b/commonfile2.ts: {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} +/a/b/package.json: + {"fileName":"/a/b/package.json","pollingInterval":250} /a/b/project2.tsconfig.json: {"fileName":"/a/b/project2.tsconfig.json","pollingInterval":250} /a/b/bravo.tsconfig.json: @@ -257,6 +259,8 @@ WatchedFiles:: {"fileName":"/a/b/commonFile1.ts","pollingInterval":250} /a/b/commonfile2.ts: {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} +/a/b/package.json: + {"fileName":"/a/b/package.json","pollingInterval":250} /a/b/project2.tsconfig.json: {"fileName":"/a/b/project2.tsconfig.json","pollingInterval":250} /a/b/bravo.tsconfig.json: @@ -313,6 +317,8 @@ WatchedFiles:: {"fileName":"/a/b/commonFile1.ts","pollingInterval":250} /a/b/commonfile2.ts: {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} +/a/b/package.json: + {"fileName":"/a/b/package.json","pollingInterval":250} /a/b/project2.tsconfig.json: {"fileName":"/a/b/project2.tsconfig.json","pollingInterval":250} /a/b/bravo.tsconfig.json: @@ -373,6 +379,8 @@ WatchedFiles:: {"fileName":"/a/b/commonFile1.ts","pollingInterval":250} /a/b/commonfile2.ts: {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} +/a/b/package.json: + {"fileName":"/a/b/package.json","pollingInterval":250} /a/b/project2.tsconfig.json: {"fileName":"/a/b/project2.tsconfig.json","pollingInterval":250} /a/b/bravo.tsconfig.json: @@ -440,6 +448,8 @@ WatchedFiles:: /a/b/commonfile2.ts: {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} +/a/b/package.json: + {"fileName":"/a/b/package.json","pollingInterval":250} /a/b/project2.tsconfig.json: {"fileName":"/a/b/project2.tsconfig.json","pollingInterval":250} /a/b/other.ts: @@ -514,6 +524,8 @@ WatchedFiles:: /a/b/commonfile2.ts: {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} +/a/b/package.json: + {"fileName":"/a/b/package.json","pollingInterval":250} /a/b/project2.tsconfig.json: {"fileName":"/a/b/project2.tsconfig.json","pollingInterval":250} /a/b/other.ts: @@ -576,6 +588,8 @@ WatchedFiles:: /a/b/commonfile2.ts: {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} {"fileName":"/a/b/commonFile2.ts","pollingInterval":250} +/a/b/package.json: + {"fileName":"/a/b/package.json","pollingInterval":250} /a/b/project2.tsconfig.json: {"fileName":"/a/b/project2.tsconfig.json","pollingInterval":250} /a/b/other.ts: diff --git a/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js index e0df4fab623..22e81a93d38 100644 --- a/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js +++ b/tests/baselines/reference/tsbuildWatch/publicApi/with-custom-transformers.js @@ -90,10 +90,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/shared/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/shared/index.ts: {"fileName":"/user/username/projects/myproject/shared/index.ts","pollingInterval":250} +/user/username/projects/myproject/shared/package.json: + {"fileName":"/user/username/projects/myproject/shared/package.json","pollingInterval":250} /user/username/projects/myproject/webpack/tsconfig.json: {"fileName":"/user/username/projects/myproject/webpack/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/webpack/index.ts: {"fileName":"/user/username/projects/myproject/webpack/index.ts","pollingInterval":250} +/user/username/projects/myproject/webpack/package.json: + {"fileName":"/user/username/projects/myproject/webpack/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} @@ -302,10 +306,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/shared/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/shared/index.ts: {"fileName":"/user/username/projects/myproject/shared/index.ts","pollingInterval":250} +/user/username/projects/myproject/shared/package.json: + {"fileName":"/user/username/projects/myproject/shared/package.json","pollingInterval":250} /user/username/projects/myproject/webpack/tsconfig.json: {"fileName":"/user/username/projects/myproject/webpack/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/webpack/index.ts: {"fileName":"/user/username/projects/myproject/webpack/index.ts","pollingInterval":250} +/user/username/projects/myproject/webpack/package.json: + {"fileName":"/user/username/projects/myproject/webpack/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js index 0128d3c6f49..6e29eba4c03 100644 --- a/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js +++ b/tests/baselines/reference/tsbuildWatch/reexport/Reports-errors-correctly.js @@ -132,12 +132,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/reexport/src/pure/index.ts","pollingInterval":250} /user/username/projects/reexport/src/pure/session.ts: {"fileName":"/user/username/projects/reexport/src/pure/session.ts","pollingInterval":250} +/user/username/projects/reexport/src/pure/package.json: + {"fileName":"/user/username/projects/reexport/src/pure/package.json","pollingInterval":250} /user/username/projects/reexport/src/main/tsconfig.json: {"fileName":"/user/username/projects/reexport/src/main/tsconfig.json","pollingInterval":250} /user/username/projects/reexport/src/main/index.ts: {"fileName":"/user/username/projects/reexport/src/main/index.ts","pollingInterval":250} -/user/username/projects/reexport/src/pure/package.json: - {"fileName":"/user/username/projects/reexport/src/pure/package.json","pollingInterval":250} +/user/username/projects/reexport/src/main/package.json: + {"fileName":"/user/username/projects/reexport/src/main/package.json","pollingInterval":250} /user/username/projects/reexport/src/tsconfig.json: {"fileName":"/user/username/projects/reexport/src/tsconfig.json","pollingInterval":250} @@ -331,12 +333,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/reexport/src/pure/index.ts","pollingInterval":250} /user/username/projects/reexport/src/pure/session.ts: {"fileName":"/user/username/projects/reexport/src/pure/session.ts","pollingInterval":250} +/user/username/projects/reexport/src/pure/package.json: + {"fileName":"/user/username/projects/reexport/src/pure/package.json","pollingInterval":250} /user/username/projects/reexport/src/main/tsconfig.json: {"fileName":"/user/username/projects/reexport/src/main/tsconfig.json","pollingInterval":250} /user/username/projects/reexport/src/main/index.ts: {"fileName":"/user/username/projects/reexport/src/main/index.ts","pollingInterval":250} -/user/username/projects/reexport/src/pure/package.json: - {"fileName":"/user/username/projects/reexport/src/pure/package.json","pollingInterval":250} +/user/username/projects/reexport/src/main/package.json: + {"fileName":"/user/username/projects/reexport/src/main/package.json","pollingInterval":250} /user/username/projects/reexport/src/tsconfig.json: {"fileName":"/user/username/projects/reexport/src/tsconfig.json","pollingInterval":250} @@ -488,12 +492,14 @@ WatchedFiles:: {"fileName":"/user/username/projects/reexport/src/pure/index.ts","pollingInterval":250} /user/username/projects/reexport/src/pure/session.ts: {"fileName":"/user/username/projects/reexport/src/pure/session.ts","pollingInterval":250} +/user/username/projects/reexport/src/pure/package.json: + {"fileName":"/user/username/projects/reexport/src/pure/package.json","pollingInterval":250} /user/username/projects/reexport/src/main/tsconfig.json: {"fileName":"/user/username/projects/reexport/src/main/tsconfig.json","pollingInterval":250} /user/username/projects/reexport/src/main/index.ts: {"fileName":"/user/username/projects/reexport/src/main/index.ts","pollingInterval":250} -/user/username/projects/reexport/src/pure/package.json: - {"fileName":"/user/username/projects/reexport/src/pure/package.json","pollingInterval":250} +/user/username/projects/reexport/src/main/package.json: + {"fileName":"/user/username/projects/reexport/src/main/package.json","pollingInterval":250} /user/username/projects/reexport/src/tsconfig.json: {"fileName":"/user/username/projects/reexport/src/tsconfig.json","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js index 004678648fc..7256dfec563 100644 --- a/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js +++ b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects-with-single-watcher-per-file.js @@ -154,18 +154,26 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/pkg0/index.ts","pollingInterval":250} /user/username/projects/myproject/typings/xterm.d.ts: {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} +/user/username/projects/myproject/pkg0/package.json: + {"fileName":"/user/username/projects/myproject/pkg0/package.json","pollingInterval":250} /user/username/projects/myproject/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/pkg1/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/pkg1/package.json","pollingInterval":250} /user/username/projects/myproject/pkg2/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg2/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg2/index.ts: {"fileName":"/user/username/projects/myproject/pkg2/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/pkg3/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg3/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg3/index.ts: {"fileName":"/user/username/projects/myproject/pkg3/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg3/package.json: + {"fileName":"/user/username/projects/myproject/pkg3/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} @@ -314,18 +322,26 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/pkg0/index.ts","pollingInterval":250} /user/username/projects/myproject/typings/xterm.d.ts: {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} +/user/username/projects/myproject/pkg0/package.json: + {"fileName":"/user/username/projects/myproject/pkg0/package.json","pollingInterval":250} /user/username/projects/myproject/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/pkg1/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/pkg1/package.json","pollingInterval":250} /user/username/projects/myproject/pkg2/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg2/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg2/index.ts: {"fileName":"/user/username/projects/myproject/pkg2/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/pkg3/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg3/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg3/index.ts: {"fileName":"/user/username/projects/myproject/pkg3/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg3/package.json: + {"fileName":"/user/username/projects/myproject/pkg3/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} @@ -370,14 +386,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/pkg0/index.ts","pollingInterval":250} /user/username/projects/myproject/typings/xterm.d.ts: {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} +/user/username/projects/myproject/pkg0/package.json: + {"fileName":"/user/username/projects/myproject/pkg0/package.json","pollingInterval":250} /user/username/projects/myproject/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/pkg1/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/pkg1/package.json","pollingInterval":250} /user/username/projects/myproject/pkg2/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg2/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg2/index.ts: {"fileName":"/user/username/projects/myproject/pkg2/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} @@ -476,14 +498,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/pkg0/index.ts","pollingInterval":250} /user/username/projects/myproject/typings/xterm.d.ts: {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} +/user/username/projects/myproject/pkg0/package.json: + {"fileName":"/user/username/projects/myproject/pkg0/package.json","pollingInterval":250} /user/username/projects/myproject/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/pkg1/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/pkg1/package.json","pollingInterval":250} /user/username/projects/myproject/pkg2/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg2/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg2/index.ts: {"fileName":"/user/username/projects/myproject/pkg2/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} diff --git a/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects.js b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects.js index 86e8b55819f..63e2dddde01 100644 --- a/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects.js +++ b/tests/baselines/reference/tsbuildWatch/watchEnvironment/same-file-in-multiple-projects.js @@ -157,18 +157,26 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} +/user/username/projects/myproject/pkg0/package.json: + {"fileName":"/user/username/projects/myproject/pkg0/package.json","pollingInterval":250} /user/username/projects/myproject/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/pkg1/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/pkg1/package.json","pollingInterval":250} /user/username/projects/myproject/pkg2/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg2/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg2/index.ts: {"fileName":"/user/username/projects/myproject/pkg2/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/pkg3/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg3/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg3/index.ts: {"fileName":"/user/username/projects/myproject/pkg3/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg3/package.json: + {"fileName":"/user/username/projects/myproject/pkg3/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} @@ -320,18 +328,26 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} +/user/username/projects/myproject/pkg0/package.json: + {"fileName":"/user/username/projects/myproject/pkg0/package.json","pollingInterval":250} /user/username/projects/myproject/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/pkg1/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/pkg1/package.json","pollingInterval":250} /user/username/projects/myproject/pkg2/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg2/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg2/index.ts: {"fileName":"/user/username/projects/myproject/pkg2/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/pkg3/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg3/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg3/index.ts: {"fileName":"/user/username/projects/myproject/pkg3/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg3/package.json: + {"fileName":"/user/username/projects/myproject/pkg3/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} @@ -378,14 +394,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} +/user/username/projects/myproject/pkg0/package.json: + {"fileName":"/user/username/projects/myproject/pkg0/package.json","pollingInterval":250} /user/username/projects/myproject/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/pkg1/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/pkg1/package.json","pollingInterval":250} /user/username/projects/myproject/pkg2/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg2/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg2/index.ts: {"fileName":"/user/username/projects/myproject/pkg2/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} @@ -486,14 +508,20 @@ WatchedFiles:: {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} {"fileName":"/user/username/projects/myproject/typings/xterm.d.ts","pollingInterval":250} +/user/username/projects/myproject/pkg0/package.json: + {"fileName":"/user/username/projects/myproject/pkg0/package.json","pollingInterval":250} /user/username/projects/myproject/pkg1/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg1/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg1/index.ts: {"fileName":"/user/username/projects/myproject/pkg1/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg1/package.json: + {"fileName":"/user/username/projects/myproject/pkg1/package.json","pollingInterval":250} /user/username/projects/myproject/pkg2/tsconfig.json: {"fileName":"/user/username/projects/myproject/pkg2/tsconfig.json","pollingInterval":250} /user/username/projects/myproject/pkg2/index.ts: {"fileName":"/user/username/projects/myproject/pkg2/index.ts","pollingInterval":250} +/user/username/projects/myproject/pkg2/package.json: + {"fileName":"/user/username/projects/myproject/pkg2/package.json","pollingInterval":250} /user/username/projects/myproject/tsconfig.json: {"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}