mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fixes issues with reload because of output emit (#39030)
* If there is no changes to folder structure when watching directories recursively, send the updates to fileNames only Fixes #37994 * Ignore excluded directories from wild card watching * Testcase showing that renaming file with non sync directory watcher displays correct error in the end Testcase for #38684
This commit is contained in:
@@ -2943,7 +2943,13 @@ namespace ts {
|
||||
* @param extraFileExtensions optionaly file extra file extension information from host
|
||||
*/
|
||||
/* @internal */
|
||||
export function getFileNamesFromConfigSpecs(spec: ConfigFileSpecs, basePath: string, options: CompilerOptions, host: ParseConfigHost, extraFileExtensions: readonly FileExtensionInfo[] = []): ExpandResult {
|
||||
export function getFileNamesFromConfigSpecs(
|
||||
spec: ConfigFileSpecs,
|
||||
basePath: string,
|
||||
options: CompilerOptions,
|
||||
host: ParseConfigHost,
|
||||
extraFileExtensions: readonly FileExtensionInfo[] = emptyArray
|
||||
): ExpandResult {
|
||||
basePath = normalizePath(basePath);
|
||||
|
||||
const keyMapper = createGetCanonicalFileName(host.useCaseSensitiveFileNames);
|
||||
@@ -3030,6 +3036,33 @@ namespace ts {
|
||||
};
|
||||
}
|
||||
|
||||
/* @internal */
|
||||
export function isExcludedFile(
|
||||
pathToCheck: string,
|
||||
spec: ConfigFileSpecs,
|
||||
basePath: string,
|
||||
useCaseSensitiveFileNames: boolean,
|
||||
currentDirectory: string
|
||||
): boolean {
|
||||
const { filesSpecs, validatedIncludeSpecs, validatedExcludeSpecs } = spec;
|
||||
if (!length(validatedIncludeSpecs) || !length(validatedExcludeSpecs)) return false;
|
||||
|
||||
basePath = normalizePath(basePath);
|
||||
|
||||
const keyMapper = createGetCanonicalFileName(useCaseSensitiveFileNames);
|
||||
if (filesSpecs) {
|
||||
for (const fileName of filesSpecs) {
|
||||
if (keyMapper(getNormalizedAbsolutePath(fileName, basePath)) === pathToCheck) return false;
|
||||
}
|
||||
}
|
||||
|
||||
const excludePattern = getRegularExpressionForWildcard(validatedExcludeSpecs, combinePaths(normalizePath(currentDirectory), basePath), "exclude");
|
||||
const excludeRegex = excludePattern && getRegexFromPattern(excludePattern, useCaseSensitiveFileNames);
|
||||
if (!excludeRegex) return false;
|
||||
if (excludeRegex.test(pathToCheck)) return true;
|
||||
return !hasExtension(pathToCheck) && excludeRegex.test(ensureTrailingDirectorySeparator(pathToCheck));
|
||||
}
|
||||
|
||||
function validateSpecs(specs: readonly string[], errors: Push<Diagnostic>, allowTrailingRecursion: boolean, jsonSourceFile: TsConfigSourceFile | undefined, specKey: string): readonly string[] {
|
||||
return specs.filter(spec => {
|
||||
const diag = specToDiagnostic(spec, allowTrailingRecursion);
|
||||
|
||||
@@ -2049,6 +2049,7 @@ namespace ts {
|
||||
let oldIndex = 0;
|
||||
const newLen = newItems.length;
|
||||
const oldLen = oldItems.length;
|
||||
let hasChanges = false;
|
||||
while (newIndex < newLen && oldIndex < oldLen) {
|
||||
const newItem = newItems[newIndex];
|
||||
const oldItem = oldItems[oldIndex];
|
||||
@@ -2056,10 +2057,12 @@ namespace ts {
|
||||
if (compareResult === Comparison.LessThan) {
|
||||
inserted(newItem);
|
||||
newIndex++;
|
||||
hasChanges = true;
|
||||
}
|
||||
else if (compareResult === Comparison.GreaterThan) {
|
||||
deleted(oldItem);
|
||||
oldIndex++;
|
||||
hasChanges = true;
|
||||
}
|
||||
else {
|
||||
unchanged(oldItem, newItem);
|
||||
@@ -2069,10 +2072,13 @@ namespace ts {
|
||||
}
|
||||
while (newIndex < newLen) {
|
||||
inserted(newItems[newIndex++]);
|
||||
hasChanges = true;
|
||||
}
|
||||
while (oldIndex < oldLen) {
|
||||
deleted(oldItems[oldIndex++]);
|
||||
hasChanges = true;
|
||||
}
|
||||
return hasChanges;
|
||||
}
|
||||
|
||||
export function fill<T>(length: number, cb: (index: number) => T): T[] {
|
||||
|
||||
+48
-30
@@ -475,7 +475,7 @@ namespace ts {
|
||||
|
||||
const cache = createMap<HostDirectoryWatcher>();
|
||||
const callbackCache = createMultiMap<{ dirName: string; callback: DirectoryWatcherCallback; }>();
|
||||
const cacheToUpdateChildWatches = createMap<{ dirName: string; options: WatchOptions | undefined; }>();
|
||||
const cacheToUpdateChildWatches = createMap<{ dirName: string; options: WatchOptions | undefined; fileNames: string[]; }>();
|
||||
let timerToUpdateChildWatches: any;
|
||||
|
||||
const filePathComparer = getStringComparer(!host.useCaseSensitiveFileNames);
|
||||
@@ -538,9 +538,12 @@ namespace ts {
|
||||
};
|
||||
}
|
||||
|
||||
function invokeCallbacks(dirPath: Path, fileNameOrInvokeMap: string | Map<true>) {
|
||||
type InvokeMap = Map<string[] | true>;
|
||||
function invokeCallbacks(dirPath: Path, fileName: string): void;
|
||||
function invokeCallbacks(dirPath: Path, invokeMap: InvokeMap, fileNames: string[] | undefined): void;
|
||||
function invokeCallbacks(dirPath: Path, fileNameOrInvokeMap: string | InvokeMap, fileNames?: string[]) {
|
||||
let fileName: string | undefined;
|
||||
let invokeMap: Map<true> | undefined;
|
||||
let invokeMap: InvokeMap | undefined;
|
||||
if (isString(fileNameOrInvokeMap)) {
|
||||
fileName = fileNameOrInvokeMap;
|
||||
}
|
||||
@@ -549,10 +552,21 @@ namespace ts {
|
||||
}
|
||||
// Call the actual callback
|
||||
callbackCache.forEach((callbacks, rootDirName) => {
|
||||
if (invokeMap && invokeMap.has(rootDirName)) return;
|
||||
if (invokeMap && invokeMap.get(rootDirName) === true) return;
|
||||
if (rootDirName === dirPath || (startsWith(dirPath, rootDirName) && dirPath[rootDirName.length] === directorySeparator)) {
|
||||
if (invokeMap) {
|
||||
invokeMap.set(rootDirName, true);
|
||||
if (fileNames) {
|
||||
const existing = invokeMap.get(rootDirName);
|
||||
if (existing) {
|
||||
(existing as string[]).push(...fileNames);
|
||||
}
|
||||
else {
|
||||
invokeMap.set(rootDirName, fileNames.slice());
|
||||
}
|
||||
}
|
||||
else {
|
||||
invokeMap.set(rootDirName, true);
|
||||
}
|
||||
}
|
||||
else {
|
||||
callbacks.forEach(({ callback }) => callback(fileName!));
|
||||
@@ -566,7 +580,7 @@ namespace ts {
|
||||
const parentWatcher = cache.get(dirPath);
|
||||
if (parentWatcher && host.directoryExists(dirName)) {
|
||||
// Schedule the update and postpone invoke for callbacks
|
||||
scheduleUpdateChildWatches(dirName, dirPath, options);
|
||||
scheduleUpdateChildWatches(dirName, dirPath, fileName, options);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -575,9 +589,13 @@ namespace ts {
|
||||
removeChildWatches(parentWatcher);
|
||||
}
|
||||
|
||||
function scheduleUpdateChildWatches(dirName: string, dirPath: Path, options: WatchOptions | undefined) {
|
||||
if (!cacheToUpdateChildWatches.has(dirPath)) {
|
||||
cacheToUpdateChildWatches.set(dirPath, { dirName, options });
|
||||
function scheduleUpdateChildWatches(dirName: string, dirPath: Path, fileName: string, options: WatchOptions | undefined) {
|
||||
const existing = cacheToUpdateChildWatches.get(dirPath);
|
||||
if (existing) {
|
||||
existing.fileNames.push(fileName);
|
||||
}
|
||||
else {
|
||||
cacheToUpdateChildWatches.set(dirPath, { dirName, options, fileNames: [fileName] });
|
||||
}
|
||||
if (timerToUpdateChildWatches) {
|
||||
host.clearTimeout(timerToUpdateChildWatches);
|
||||
@@ -590,22 +608,30 @@ namespace ts {
|
||||
timerToUpdateChildWatches = undefined;
|
||||
sysLog(`sysLog:: onTimerToUpdateChildWatches:: ${cacheToUpdateChildWatches.size}`);
|
||||
const start = timestamp();
|
||||
const invokeMap = createMap<true>();
|
||||
const invokeMap = createMap<string[]>();
|
||||
|
||||
while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {
|
||||
const { value: [dirPath, { dirName, options }], done } = cacheToUpdateChildWatches.entries().next();
|
||||
const { value: [dirPath, { dirName, options, fileNames }], done } = cacheToUpdateChildWatches.entries().next();
|
||||
Debug.assert(!done);
|
||||
cacheToUpdateChildWatches.delete(dirPath);
|
||||
// Because the child refresh is fresh, we would need to invalidate whole root directory being watched
|
||||
// to ensure that all the changes are reflected at this time
|
||||
invokeCallbacks(dirPath as Path, invokeMap);
|
||||
updateChildWatches(dirName, dirPath as Path, options);
|
||||
const hasChanges = updateChildWatches(dirName, dirPath as Path, options);
|
||||
invokeCallbacks(dirPath as Path, invokeMap, hasChanges ? undefined : fileNames);
|
||||
}
|
||||
|
||||
sysLog(`sysLog:: invokingWatchers:: ${timestamp() - start}ms:: ${cacheToUpdateChildWatches.size}`);
|
||||
callbackCache.forEach((callbacks, rootDirName) => {
|
||||
if (invokeMap.has(rootDirName)) {
|
||||
callbacks.forEach(({ callback, dirName }) => callback(dirName));
|
||||
const existing = invokeMap.get(rootDirName);
|
||||
if (existing) {
|
||||
callbacks.forEach(({ callback, dirName }) => {
|
||||
if (isArray(existing)) {
|
||||
existing.forEach(callback);
|
||||
}
|
||||
else {
|
||||
callback(dirName);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -623,34 +649,26 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
function updateChildWatches(dirName: string, dirPath: Path, options: WatchOptions | undefined) {
|
||||
function updateChildWatches(parentDir: string, parentDirPath: Path, options: WatchOptions | undefined) {
|
||||
// Iterate through existing children and update the watches if needed
|
||||
const parentWatcher = cache.get(dirPath);
|
||||
if (parentWatcher) {
|
||||
parentWatcher.childWatches = watchChildDirectories(dirName, parentWatcher.childWatches, options);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Watch the directories in the parentDir
|
||||
*/
|
||||
function watchChildDirectories(parentDir: string, existingChildWatches: ChildWatches, options: WatchOptions | undefined): ChildWatches {
|
||||
const parentWatcher = cache.get(parentDirPath);
|
||||
if (!parentWatcher) return false;
|
||||
let newChildWatches: ChildDirectoryWatcher[] | undefined;
|
||||
enumerateInsertsAndDeletes<string, ChildDirectoryWatcher>(
|
||||
const hasChanges = enumerateInsertsAndDeletes<string, ChildDirectoryWatcher>(
|
||||
host.directoryExists(parentDir) ? mapDefined(host.getAccessibleSortedChildDirectories(parentDir), child => {
|
||||
const childFullName = getNormalizedAbsolutePath(child, parentDir);
|
||||
// Filter our the symbolic link directories since those arent included in recursive watch
|
||||
// which is same behaviour when recursive: true is passed to fs.watch
|
||||
return !isIgnoredPath(childFullName) && filePathComparer(childFullName, normalizePath(host.realpath(childFullName))) === Comparison.EqualTo ? childFullName : undefined;
|
||||
}) : emptyArray,
|
||||
existingChildWatches,
|
||||
parentWatcher.childWatches,
|
||||
(child, childWatcher) => filePathComparer(child, childWatcher.dirName),
|
||||
createAndAddChildDirectoryWatcher,
|
||||
closeFileWatcher,
|
||||
addChildDirectoryWatcher
|
||||
);
|
||||
|
||||
return newChildWatches || emptyArray;
|
||||
parentWatcher.childWatches = newChildWatches || emptyArray;
|
||||
return hasChanges;
|
||||
|
||||
/**
|
||||
* Create new childDirectoryWatcher and add it to the new ChildDirectoryWatcher list
|
||||
|
||||
@@ -853,6 +853,9 @@ namespace ts {
|
||||
getConfigFileParsingDiagnostics(config),
|
||||
config.projectReferences
|
||||
);
|
||||
if (state.watch) {
|
||||
state.builderPrograms.set(projectPath, program);
|
||||
}
|
||||
step++;
|
||||
}
|
||||
|
||||
@@ -982,7 +985,7 @@ namespace ts {
|
||||
if (emitResult.emittedFiles && state.writeFileName) {
|
||||
emitResult.emittedFiles.forEach(name => listEmittedFile(state, config, name));
|
||||
}
|
||||
afterProgramDone(state, projectPath, program, config);
|
||||
afterProgramDone(state, program, config);
|
||||
step = BuildStep.QueueReferencingProjects;
|
||||
return emitResult;
|
||||
}
|
||||
@@ -1023,7 +1026,7 @@ namespace ts {
|
||||
newestDeclarationFileContentChangedTime,
|
||||
oldestOutputFileName
|
||||
});
|
||||
afterProgramDone(state, projectPath, program, config);
|
||||
afterProgramDone(state, program, config);
|
||||
step = BuildStep.QueueReferencingProjects;
|
||||
buildResult = resultFlags;
|
||||
return emitDiagnostics;
|
||||
@@ -1269,7 +1272,6 @@ namespace ts {
|
||||
|
||||
function afterProgramDone<T extends BuilderProgram>(
|
||||
state: SolutionBuilderState<T>,
|
||||
proj: ResolvedConfigFilePath,
|
||||
program: T | undefined,
|
||||
config: ParsedCommandLine
|
||||
) {
|
||||
@@ -1278,10 +1280,7 @@ namespace ts {
|
||||
if (state.host.afterProgramEmitAndDiagnostics) {
|
||||
state.host.afterProgramEmitAndDiagnostics(program);
|
||||
}
|
||||
if (state.watch) {
|
||||
program.releaseProgram();
|
||||
state.builderPrograms.set(proj, program);
|
||||
}
|
||||
program.releaseProgram();
|
||||
}
|
||||
else if (state.host.afterEmitBundle) {
|
||||
state.host.afterEmitBundle(config);
|
||||
@@ -1304,7 +1303,7 @@ namespace ts {
|
||||
// List files if any other build error using program (emit errors already report files)
|
||||
state.projectStatus.set(resolvedPath, { type: UpToDateStatusType.Unbuildable, reason: `${errorType} errors` });
|
||||
if (canEmitBuildInfo) return { buildResult, step: BuildStep.EmitBuildInfo };
|
||||
afterProgramDone(state, resolvedPath, program, config);
|
||||
afterProgramDone(state, program, config);
|
||||
return { buildResult, step: BuildStep.QueueReferencingProjects };
|
||||
}
|
||||
|
||||
@@ -1809,38 +1808,6 @@ namespace ts {
|
||||
));
|
||||
}
|
||||
|
||||
function isSameFile(state: SolutionBuilderState, file1: string, file2: string) {
|
||||
return comparePaths(file1, file2, state.currentDirectory, !state.host.useCaseSensitiveFileNames()) === Comparison.EqualTo;
|
||||
}
|
||||
|
||||
function isOutputFile(state: SolutionBuilderState, fileName: string, configFile: ParsedCommandLine) {
|
||||
if (configFile.options.noEmit) return false;
|
||||
|
||||
// ts or tsx files are not output
|
||||
if (!fileExtensionIs(fileName, Extension.Dts) &&
|
||||
(fileExtensionIs(fileName, Extension.Ts) || fileExtensionIs(fileName, Extension.Tsx))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If options have --outFile or --out, check if its that
|
||||
const out = outFile(configFile.options);
|
||||
if (out && (isSameFile(state, fileName, out) || isSameFile(state, fileName, removeFileExtension(out) + Extension.Dts))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// If declarationDir is specified, return if its a file in that directory
|
||||
if (configFile.options.declarationDir && containsPath(configFile.options.declarationDir, fileName, state.currentDirectory, !state.host.useCaseSensitiveFileNames())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// If --outDir, check if file is in that directory
|
||||
if (configFile.options.outDir && containsPath(configFile.options.outDir, fileName, state.currentDirectory, !state.host.useCaseSensitiveFileNames())) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return !forEach(configFile.fileNames, inputFile => isSameFile(state, fileName, inputFile));
|
||||
}
|
||||
|
||||
function watchWildCardDirectories(state: SolutionBuilderState, resolved: ResolvedConfigFileName, resolvedPath: ResolvedConfigFilePath, parsed: ParsedCommandLine) {
|
||||
if (!state.watch) return;
|
||||
updateWatchingWildcardDirectories(
|
||||
@@ -1850,16 +1817,18 @@ namespace ts {
|
||||
state.hostWithWatch,
|
||||
dir,
|
||||
fileOrDirectory => {
|
||||
const fileOrDirectoryPath = toPath(state, fileOrDirectory);
|
||||
if (fileOrDirectoryPath !== toPath(state, dir) && hasExtension(fileOrDirectoryPath) && !isSupportedSourceFileName(fileOrDirectory, parsed.options)) {
|
||||
state.writeLog(`Project: ${resolved} Detected file add/remove of non supported extension: ${fileOrDirectory}`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (isOutputFile(state, fileOrDirectory, parsed)) {
|
||||
state.writeLog(`${fileOrDirectory} is output file`);
|
||||
return;
|
||||
}
|
||||
if (isIgnoredFileFromWildCardWatching({
|
||||
watchedDirPath: toPath(state, dir),
|
||||
fileOrDirectory,
|
||||
fileOrDirectoryPath: toPath(state, fileOrDirectory),
|
||||
configFileName: resolved,
|
||||
configFileSpecs: parsed.configFileSpecs!,
|
||||
currentDirectory: state.currentDirectory,
|
||||
options: parsed.options,
|
||||
program: state.builderPrograms.get(resolvedPath),
|
||||
useCaseSensitiveFileNames: state.parseConfigFileHost.useCaseSensitiveFileNames,
|
||||
writeLog: s => state.writeLog(s)
|
||||
})) return;
|
||||
|
||||
invalidateProjectAndScheduleBuilds(state, resolvedPath, ConfigFileProgramReloadLevel.Partial);
|
||||
},
|
||||
|
||||
+13
-10
@@ -734,7 +734,7 @@ namespace ts {
|
||||
fileOrDirectory => {
|
||||
Debug.assert(!!configFileName);
|
||||
|
||||
let fileOrDirectoryPath: Path | undefined = toPath(fileOrDirectory);
|
||||
const fileOrDirectoryPath = toPath(fileOrDirectory);
|
||||
|
||||
// Since the file existence changed, update the sourceFiles cache
|
||||
if (cachedDirectoryStructureHost) {
|
||||
@@ -742,15 +742,18 @@ namespace ts {
|
||||
}
|
||||
nextSourceFileVersion(fileOrDirectoryPath);
|
||||
|
||||
fileOrDirectoryPath = removeIgnoredPath(fileOrDirectoryPath);
|
||||
if (!fileOrDirectoryPath) return;
|
||||
|
||||
// If the the added or created file or directory is not supported file name, ignore the file
|
||||
// But when watched directory is added/removed, we need to reload the file list
|
||||
if (fileOrDirectoryPath !== directory && hasExtension(fileOrDirectoryPath) && !isSupportedSourceFileName(fileOrDirectory, compilerOptions)) {
|
||||
writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`);
|
||||
return;
|
||||
}
|
||||
if (isIgnoredFileFromWildCardWatching({
|
||||
watchedDirPath: toPath(directory),
|
||||
fileOrDirectory,
|
||||
fileOrDirectoryPath,
|
||||
configFileName,
|
||||
configFileSpecs,
|
||||
options: compilerOptions,
|
||||
program: getCurrentBuilderProgram(),
|
||||
currentDirectory,
|
||||
useCaseSensitiveFileNames,
|
||||
writeLog
|
||||
})) return;
|
||||
|
||||
// Reload is pending, do the reload
|
||||
if (reloadLevel !== ConfigFileProgramReloadLevel.Full) {
|
||||
|
||||
@@ -329,6 +329,83 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
export interface IsIgnoredFileFromWildCardWatchingInput {
|
||||
watchedDirPath: Path;
|
||||
fileOrDirectory: string;
|
||||
fileOrDirectoryPath: Path;
|
||||
configFileName: string;
|
||||
options: CompilerOptions;
|
||||
configFileSpecs: ConfigFileSpecs;
|
||||
program: BuilderProgram | Program | undefined;
|
||||
extraFileExtensions?: readonly FileExtensionInfo[];
|
||||
currentDirectory: string;
|
||||
useCaseSensitiveFileNames: boolean;
|
||||
writeLog: (s: string) => void;
|
||||
}
|
||||
/* @internal */
|
||||
export function isIgnoredFileFromWildCardWatching({
|
||||
watchedDirPath, fileOrDirectory, fileOrDirectoryPath,
|
||||
configFileName, options, configFileSpecs, program, extraFileExtensions,
|
||||
currentDirectory, useCaseSensitiveFileNames,
|
||||
writeLog,
|
||||
}: IsIgnoredFileFromWildCardWatchingInput): boolean {
|
||||
const newPath = removeIgnoredPath(fileOrDirectoryPath);
|
||||
if (!newPath) {
|
||||
writeLog(`Project: ${configFileName} Detected ignored path: ${fileOrDirectory}`);
|
||||
return true;
|
||||
}
|
||||
|
||||
fileOrDirectoryPath = newPath;
|
||||
if (fileOrDirectoryPath === watchedDirPath) return false;
|
||||
|
||||
// If the the added or created file or directory is not supported file name, ignore the file
|
||||
// But when watched directory is added/removed, we need to reload the file list
|
||||
if (hasExtension(fileOrDirectoryPath) && !isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
|
||||
writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (isExcludedFile(fileOrDirectory, configFileSpecs, getNormalizedAbsolutePath(getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {
|
||||
writeLog(`Project: ${configFileName} Detected excluded file: ${fileOrDirectory}`);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!program) return false;
|
||||
|
||||
// We want to ignore emit file check if file is not going to be emitted next to source file
|
||||
// In that case we follow config file inclusion rules
|
||||
if (options.outFile || options.outDir) return false;
|
||||
|
||||
// File if emitted next to input needs to be ignored
|
||||
if (fileExtensionIs(fileOrDirectoryPath, Extension.Dts)) {
|
||||
// If its declaration directory: its not ignored if not excluded by config
|
||||
if (options.declarationDir) return false;
|
||||
}
|
||||
else if (!fileExtensionIsOneOf(fileOrDirectoryPath, supportedJSExtensions)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// just check if sourceFile with the name exists
|
||||
const filePathWithoutExtension = removeFileExtension(fileOrDirectoryPath);
|
||||
const realProgram = isBuilderProgram(program) ? program.getProgramOrUndefined() : program;
|
||||
if (hasSourceFile((filePathWithoutExtension + Extension.Ts) as Path) ||
|
||||
hasSourceFile((filePathWithoutExtension + Extension.Tsx) as Path)) {
|
||||
writeLog(`Project: ${configFileName} Detected output file: ${fileOrDirectory}`);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
function hasSourceFile(file: Path) {
|
||||
return realProgram ?
|
||||
!!realProgram.getSourceFileByPath(file) :
|
||||
(program as BuilderProgram).getState().fileInfos.has(file);
|
||||
}
|
||||
}
|
||||
|
||||
function isBuilderProgram<T extends BuilderProgram>(program: Program | T): program is T {
|
||||
return !!(program as T).getState;
|
||||
}
|
||||
|
||||
export function isEmittedFileOfProgram(program: Program | undefined, file: string) {
|
||||
if (!program) {
|
||||
return false;
|
||||
|
||||
@@ -1166,8 +1166,29 @@ namespace ts.server {
|
||||
this.host,
|
||||
directory,
|
||||
fileOrDirectory => {
|
||||
let fileOrDirectoryPath: Path | undefined = this.toPath(fileOrDirectory);
|
||||
const fileOrDirectoryPath = this.toPath(fileOrDirectory);
|
||||
const fsResult = project.getCachedDirectoryStructureHost().addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);
|
||||
const configFileName = project.getConfigFilePath();
|
||||
if (getBaseFileName(fileOrDirectoryPath) === "package.json" && !isInsideNodeModules(fileOrDirectoryPath) &&
|
||||
(fsResult && fsResult.fileExists || !fsResult && this.host.fileExists(fileOrDirectoryPath))
|
||||
) {
|
||||
this.logger.info(`Project: ${configFileName} Detected new package.json: ${fileOrDirectory}`);
|
||||
project.onAddPackageJson(fileOrDirectoryPath);
|
||||
}
|
||||
|
||||
if (isIgnoredFileFromWildCardWatching({
|
||||
watchedDirPath: directory,
|
||||
fileOrDirectory,
|
||||
fileOrDirectoryPath,
|
||||
configFileName,
|
||||
configFileSpecs: project.configFileSpecs!,
|
||||
extraFileExtensions: this.hostConfiguration.extraFileExtensions,
|
||||
currentDirectory: this.currentDirectory,
|
||||
options: project.getCompilationSettings(),
|
||||
program: project.getCurrentProgram(),
|
||||
useCaseSensitiveFileNames: this.host.useCaseSensitiveFileNames,
|
||||
writeLog: s => this.logger.info(s)
|
||||
})) return;
|
||||
|
||||
// don't trigger callback on open, existing files
|
||||
if (project.fileIsOpen(fileOrDirectoryPath)) {
|
||||
@@ -1184,24 +1205,6 @@ namespace ts.server {
|
||||
return;
|
||||
}
|
||||
|
||||
fileOrDirectoryPath = removeIgnoredPath(fileOrDirectoryPath);
|
||||
if (!fileOrDirectoryPath) return;
|
||||
const configFilename = project.getConfigFilePath();
|
||||
|
||||
if (getBaseFileName(fileOrDirectoryPath) === "package.json" && !isInsideNodeModules(fileOrDirectoryPath) &&
|
||||
(fsResult && fsResult.fileExists || !fsResult && this.host.fileExists(fileOrDirectoryPath))
|
||||
) {
|
||||
this.logger.info(`Project: ${configFilename} Detected new package.json: ${fileOrDirectory}`);
|
||||
project.onAddPackageJson(fileOrDirectoryPath);
|
||||
}
|
||||
|
||||
// If the the added or created file or directory is not supported file name, ignore the file
|
||||
// But when watched directory is added/removed, we need to reload the file list
|
||||
if (fileOrDirectoryPath !== directory && hasExtension(fileOrDirectoryPath) && !isSupportedSourceFileName(fileOrDirectory, project.getCompilationSettings(), this.hostConfiguration.extraFileExtensions)) {
|
||||
this.logger.info(`Project: ${configFilename} Detected file add/remove of non supported extension: ${fileOrDirectory}`);
|
||||
return;
|
||||
}
|
||||
|
||||
// Reload is pending, do the reload
|
||||
if (project.pendingReload !== ConfigFileProgramReloadLevel.Full) {
|
||||
project.pendingReload = ConfigFileProgramReloadLevel.Partial;
|
||||
|
||||
@@ -1183,6 +1183,42 @@ export function someFn() { }`),
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
verifyTscWatch({
|
||||
scenario,
|
||||
subScenario: "should not trigger recompilation because of program emit",
|
||||
commandLineArgs: ["-b", "-w", `${project}/${SubProject.core}`, "-verbose"],
|
||||
sys: () => createWatchedSystem([libFile, ...core], { currentDirectory: projectsLocation }),
|
||||
changes: [
|
||||
noopChange,
|
||||
{
|
||||
caption: "Add new file",
|
||||
change: sys => sys.writeFile(`${project}/${SubProject.core}/file3.ts`, `export const y = 10;`),
|
||||
timeouts: checkSingleTimeoutQueueLengthAndRun
|
||||
},
|
||||
noopChange,
|
||||
]
|
||||
});
|
||||
|
||||
verifyTscWatch({
|
||||
scenario,
|
||||
subScenario: "should not trigger recompilation because of program emit with outDir specified",
|
||||
commandLineArgs: ["-b", "-w", `${project}/${SubProject.core}`, "-verbose"],
|
||||
sys: () => {
|
||||
const [coreConfig, ...rest] = core;
|
||||
const newCoreConfig: File = { path: coreConfig.path, content: JSON.stringify({ compilerOptions: { composite: true, outDir: "outDir" } }) };
|
||||
return createWatchedSystem([libFile, newCoreConfig, ...rest], { currentDirectory: projectsLocation });
|
||||
},
|
||||
changes: [
|
||||
noopChange,
|
||||
{
|
||||
caption: "Add new file",
|
||||
change: sys => sys.writeFile(`${project}/${SubProject.core}/file3.ts`, `export const y = 10;`),
|
||||
timeouts: checkSingleTimeoutQueueLengthAndRun
|
||||
},
|
||||
noopChange
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
describe("unittests:: tsbuild:: watchMode:: with demo project", () => {
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace ts {
|
||||
getPrograms: () => readonly CommandLineProgram[];
|
||||
}
|
||||
|
||||
function isBuilderProgram(program: Program | EmitAndSemanticDiagnosticsBuilderProgram): program is EmitAndSemanticDiagnosticsBuilderProgram {
|
||||
return !!(program as EmitAndSemanticDiagnosticsBuilderProgram).getState;
|
||||
function isBuilderProgram<T extends BuilderProgram>(program: Program | T): program is T {
|
||||
return !!(program as T).getState;
|
||||
}
|
||||
function isAnyProgram(program: Program | EmitAndSemanticDiagnosticsBuilderProgram | ParsedCommandLine): program is Program | EmitAndSemanticDiagnosticsBuilderProgram {
|
||||
return !!(program as Program | EmitAndSemanticDiagnosticsBuilderProgram).getCompilerOptions;
|
||||
|
||||
@@ -305,6 +305,12 @@ namespace ts.tscWatch {
|
||||
sys: () => WatchedSystem;
|
||||
}
|
||||
|
||||
export const noopChange: TscWatchCompileChange = {
|
||||
caption: "No change",
|
||||
change: noop,
|
||||
timeouts: sys => sys.checkTimeoutQueueLength(0),
|
||||
};
|
||||
|
||||
export type SystemSnap = ReturnType<WatchedSystem["snap"]>;
|
||||
function tscWatchCompile(input: TscWatchCompile) {
|
||||
it("tsc-watch:: Generates files matching the baseline", () => {
|
||||
|
||||
@@ -1031,7 +1031,15 @@ declare const eval: any`
|
||||
};
|
||||
return createWatchedSystem([file1, file2, libFile, tsconfig], { currentDirectory: projectRoot });
|
||||
},
|
||||
changes: emptyArray
|
||||
changes: [
|
||||
noopChange,
|
||||
{
|
||||
caption: "Add new file",
|
||||
change: sys => sys.writeFile(`${projectRoot}/src/file3.ts`, `export const y = 10;`),
|
||||
timeouts: sys => sys.checkTimeoutQueueLengthAndRun(2), // To update program and failed lookups
|
||||
},
|
||||
noopChange,
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1050,6 +1058,11 @@ declare const eval: any`
|
||||
{ module: ModuleKind.AMD, outDir: "build" }
|
||||
);
|
||||
|
||||
verifyWithOptions(
|
||||
"without outDir or outFile is specified with declaration enabled",
|
||||
{ module: ModuleKind.AMD, declaration: true }
|
||||
);
|
||||
|
||||
verifyWithOptions(
|
||||
"when outDir and declarationDir is specified",
|
||||
{ module: ModuleKind.AMD, outDir: "build", declaration: true, declarationDir: "decls" }
|
||||
|
||||
@@ -185,12 +185,10 @@ namespace ts.tscWatch {
|
||||
},
|
||||
changes: [
|
||||
{
|
||||
caption: "Pending updates because of file1.js creation",
|
||||
caption: "Directory watch updates because of file1.js creation",
|
||||
change: noop,
|
||||
timeouts: sys => {
|
||||
sys.checkTimeoutQueueLengthAndRun(1); // To update directory callbacks for file1.js output
|
||||
sys.checkTimeoutQueueLengthAndRun(2); // Update program again and Failed lookup update
|
||||
sys.checkTimeoutQueueLengthAndRun(1); // Actual program update
|
||||
sys.checkTimeoutQueueLength(0);
|
||||
},
|
||||
},
|
||||
@@ -255,6 +253,90 @@ namespace ts.tscWatch {
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
verifyTscWatch({
|
||||
scenario,
|
||||
subScenario: "watchDirectories/with non synchronous watch directory with outDir and declaration enabled",
|
||||
commandLineArgs: ["--w", "-p", `${projectRoot}/tsconfig.json`],
|
||||
sys: () => {
|
||||
const configFile: File = {
|
||||
path: `${projectRoot}/tsconfig.json`,
|
||||
content: JSON.stringify({ compilerOptions: { outDir: "dist", declaration: true } })
|
||||
};
|
||||
const file1: File = {
|
||||
path: `${projectRoot}/src/file1.ts`,
|
||||
content: `import { x } from "file2";`
|
||||
};
|
||||
const file2: File = {
|
||||
path: `${projectRoot}/node_modules/file2/index.d.ts`,
|
||||
content: `export const x = 10;`
|
||||
};
|
||||
const files = [libFile, file1, file2, configFile];
|
||||
return createWatchedSystem(files, { runWithoutRecursiveWatches: true });
|
||||
},
|
||||
changes: [
|
||||
noopChange,
|
||||
{
|
||||
caption: "Add new file, should schedule and run timeout to update directory watcher",
|
||||
change: sys => sys.writeFile(`${projectRoot}/src/file3.ts`, `export const y = 10;`),
|
||||
timeouts: checkSingleTimeoutQueueLengthAndRun, // Update the child watch
|
||||
},
|
||||
{
|
||||
caption: "Actual program update to include new file",
|
||||
change: noop,
|
||||
timeouts: sys => sys.checkTimeoutQueueLengthAndRun(2), // Scheduling failed lookup update and program update
|
||||
},
|
||||
{
|
||||
caption: "After program emit with new file, should schedule and run timeout to update directory watcher",
|
||||
change: noop,
|
||||
timeouts: checkSingleTimeoutQueueLengthAndRun, // Update the child watch
|
||||
},
|
||||
noopChange,
|
||||
],
|
||||
});
|
||||
|
||||
verifyTscWatch({
|
||||
scenario,
|
||||
subScenario: "watchDirectories/with non synchronous watch directory renaming a file",
|
||||
commandLineArgs: ["--w", "-p", `${projectRoot}/tsconfig.json`],
|
||||
sys: () => {
|
||||
const configFile: File = {
|
||||
path: `${projectRoot}/tsconfig.json`,
|
||||
content: JSON.stringify({ compilerOptions: { outDir: "dist" } })
|
||||
};
|
||||
const file1: File = {
|
||||
path: `${projectRoot}/src/file1.ts`,
|
||||
content: `import { x } from "./file2";`
|
||||
};
|
||||
const file2: File = {
|
||||
path: `${projectRoot}/src/file2.ts`,
|
||||
content: `export const x = 10;`
|
||||
};
|
||||
const files = [libFile, file1, file2, configFile];
|
||||
return createWatchedSystem(files, { runWithoutRecursiveWatches: true });
|
||||
},
|
||||
changes: [
|
||||
noopChange,
|
||||
{
|
||||
caption: "rename the file",
|
||||
change: sys => sys.renameFile(`${projectRoot}/src/file2.ts`, `${projectRoot}/src/renamed.ts`),
|
||||
timeouts: sys => {
|
||||
sys.checkTimeoutQueueLength(2); // 1. For updating program and 2. for updating child watches
|
||||
sys.runQueuedTimeoutCallbacks(1); // Update program
|
||||
},
|
||||
},
|
||||
{
|
||||
caption: "Pending directory watchers and program update",
|
||||
change: noop,
|
||||
timeouts: sys => {
|
||||
sys.checkTimeoutQueueLengthAndRun(1); // To update directory watchers
|
||||
sys.checkTimeoutQueueLengthAndRun(2); // To Update program and failed lookup update
|
||||
sys.checkTimeoutQueueLengthAndRun(1); // Actual program update
|
||||
sys.checkTimeoutQueueLength(0);
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
describe("handles watch compiler options", () => {
|
||||
|
||||
@@ -967,7 +967,7 @@ declare var console: {
|
||||
files: errorOnNewFileBeforeOldFile ?
|
||||
[fooBar, foo] :
|
||||
[foo, fooBar],
|
||||
existingTimeouts: 2
|
||||
existingTimeouts: withExclude ? 0 : 2
|
||||
});
|
||||
checkProjectAfterError(service);
|
||||
}
|
||||
|
||||
+302
@@ -0,0 +1,302 @@
|
||||
Input::
|
||||
//// [/a/lib/lib.d.ts]
|
||||
/// <reference no-default-lib="true"/>
|
||||
interface Boolean {}
|
||||
interface Function {}
|
||||
interface CallableFunction {}
|
||||
interface NewableFunction {}
|
||||
interface IArguments {}
|
||||
interface Number { toExponential: any; }
|
||||
interface Object {}
|
||||
interface RegExp {}
|
||||
interface String { charAt: any; }
|
||||
interface Array<T> { length: number; [n: number]: T; }
|
||||
|
||||
//// [/user/username/projects/sample1/core/tsconfig.json]
|
||||
{"compilerOptions":{"composite":true,"outDir":"outDir"}}
|
||||
|
||||
//// [/user/username/projects/sample1/core/index.ts]
|
||||
export const someString: string = "HELLO WORLD";
|
||||
export function leftPad(s: string, n: number) { return s + n; }
|
||||
export function multiply(a: number, b: number) { return a * b; }
|
||||
|
||||
|
||||
//// [/user/username/projects/sample1/core/anotherModule.ts]
|
||||
export const World = "hello";
|
||||
|
||||
|
||||
|
||||
/a/lib/tsc.js -b -w sample1/core -verbose
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:27 AM[0m] Starting compilation in watch mode...
|
||||
|
||||
|
||||
[[90m12:00:28 AM[0m] Projects in this build:
|
||||
* sample1/core/tsconfig.json
|
||||
|
||||
|
||||
[[90m12:00:29 AM[0m] Project 'sample1/core/tsconfig.json' is out of date because output file 'sample1/core/outDir/anotherModule.js' does not exist
|
||||
|
||||
|
||||
[[90m12:00:30 AM[0m] Building project '/user/username/projects/sample1/core/tsconfig.json'...
|
||||
|
||||
|
||||
[[90m12:00:44 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"]
|
||||
Program options: {"composite":true,"outDir":"/user/username/projects/sample1/core/outDir","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/sample1/core/anotherModule.ts
|
||||
/user/username/projects/sample1/core/index.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/sample1/core/anotherModule.ts
|
||||
/user/username/projects/sample1/core/index.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/sample1/core/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/sample1/core/anothermodule.ts:
|
||||
{"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}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/sample1/core:
|
||||
{"directoryName":"/user/username/projects/sample1/core","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/sample1/core/outDir/anotherModule.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.World = void 0;
|
||||
exports.World = "hello";
|
||||
|
||||
|
||||
//// [/user/username/projects/sample1/core/outDir/anotherModule.d.ts]
|
||||
export declare const World = "hello";
|
||||
|
||||
|
||||
//// [/user/username/projects/sample1/core/outDir/index.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.multiply = exports.leftPad = exports.someString = void 0;
|
||||
exports.someString = "HELLO WORLD";
|
||||
function leftPad(s, n) { return s + n; }
|
||||
exports.leftPad = leftPad;
|
||||
function multiply(a, b) { return a * b; }
|
||||
exports.multiply = multiply;
|
||||
|
||||
|
||||
//// [/user/username/projects/sample1/core/outDir/index.d.ts]
|
||||
export declare const someString: string;
|
||||
export declare function leftPad(s: string, n: number): string;
|
||||
export declare function multiply(a: number, b: number): number;
|
||||
|
||||
|
||||
//// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo]
|
||||
{
|
||||
"program": {
|
||||
"fileInfos": {
|
||||
"../../../../../../a/lib/lib.d.ts": {
|
||||
"version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"affectsGlobalScope": true
|
||||
},
|
||||
"../anothermodule.ts": {
|
||||
"version": "-2676574883-export const World = \"hello\";\r\n",
|
||||
"signature": "-9234818176-export declare const World = \"hello\";\n",
|
||||
"affectsGlobalScope": false
|
||||
},
|
||||
"../index.ts": {
|
||||
"version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",
|
||||
"signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n",
|
||||
"affectsGlobalScope": false
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"composite": true,
|
||||
"outDir": "./",
|
||||
"watch": true,
|
||||
"configFilePath": "../tsconfig.json"
|
||||
},
|
||||
"referencedMap": {},
|
||||
"exportedModulesMap": {},
|
||||
"semanticDiagnosticsPerFile": [
|
||||
"../../../../../../a/lib/lib.d.ts",
|
||||
"../anothermodule.ts",
|
||||
"../index.ts"
|
||||
]
|
||||
},
|
||||
"version": "FakeTSVersion"
|
||||
}
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/sample1/core/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/sample1/core/anothermodule.ts:
|
||||
{"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}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/sample1/core:
|
||||
{"directoryName":"/user/username/projects/sample1/core","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: Add new file
|
||||
|
||||
Input::
|
||||
//// [/user/username/projects/sample1/core/file3.ts]
|
||||
export const y = 10;
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:47 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:48 AM[0m] Project 'sample1/core/tsconfig.json' is out of date because oldest output 'sample1/core/outDir/anotherModule.js' is older than newest input 'sample1/core/file3.ts'
|
||||
|
||||
|
||||
[[90m12:00:49 AM[0m] Building project '/user/username/projects/sample1/core/tsconfig.json'...
|
||||
|
||||
|
||||
[[90m12:00:58 AM[0m] Updating unchanged output timestamps of project '/user/username/projects/sample1/core/tsconfig.json'...
|
||||
|
||||
|
||||
[[90m12:00:59 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/file3.ts","/user/username/projects/sample1/core/index.ts"]
|
||||
Program options: {"composite":true,"outDir":"/user/username/projects/sample1/core/outDir","watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/sample1/core/anotherModule.ts
|
||||
/user/username/projects/sample1/core/file3.ts
|
||||
/user/username/projects/sample1/core/index.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/sample1/core/file3.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/sample1/core/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/sample1/core/anothermodule.ts:
|
||||
{"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/file3.ts:
|
||||
{"fileName":"/user/username/projects/sample1/core/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/sample1/core:
|
||||
{"directoryName":"/user/username/projects/sample1/core","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/sample1/core/outDir/anotherModule.js] file changed its modified time
|
||||
//// [/user/username/projects/sample1/core/outDir/anotherModule.d.ts] file changed its modified time
|
||||
//// [/user/username/projects/sample1/core/outDir/index.js] file changed its modified time
|
||||
//// [/user/username/projects/sample1/core/outDir/index.d.ts] file changed its modified time
|
||||
//// [/user/username/projects/sample1/core/outDir/tsconfig.tsbuildinfo]
|
||||
{
|
||||
"program": {
|
||||
"fileInfos": {
|
||||
"../../../../../../a/lib/lib.d.ts": {
|
||||
"version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"affectsGlobalScope": true
|
||||
},
|
||||
"../anothermodule.ts": {
|
||||
"version": "-2676574883-export const World = \"hello\";\r\n",
|
||||
"signature": "-9234818176-export declare const World = \"hello\";\n",
|
||||
"affectsGlobalScope": false
|
||||
},
|
||||
"../file3.ts": {
|
||||
"version": "-13729955264-export const y = 10;",
|
||||
"signature": "-7152472870-export declare const y = 10;\n",
|
||||
"affectsGlobalScope": false
|
||||
},
|
||||
"../index.ts": {
|
||||
"version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",
|
||||
"signature": "-7362568283-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n",
|
||||
"affectsGlobalScope": false
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"composite": true,
|
||||
"outDir": "./",
|
||||
"watch": true,
|
||||
"configFilePath": "../tsconfig.json"
|
||||
},
|
||||
"referencedMap": {},
|
||||
"exportedModulesMap": {},
|
||||
"semanticDiagnosticsPerFile": [
|
||||
"../../../../../../a/lib/lib.d.ts",
|
||||
"../anothermodule.ts",
|
||||
"../file3.ts",
|
||||
"../index.ts"
|
||||
]
|
||||
},
|
||||
"version": "FakeTSVersion"
|
||||
}
|
||||
|
||||
//// [/user/username/projects/sample1/core/outDir/file3.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.y = void 0;
|
||||
exports.y = 10;
|
||||
|
||||
|
||||
//// [/user/username/projects/sample1/core/outDir/file3.d.ts]
|
||||
export declare const y = 10;
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/sample1/core/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/sample1/core/anothermodule.ts:
|
||||
{"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/file3.ts:
|
||||
{"fileName":"/user/username/projects/sample1/core/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/sample1/core:
|
||||
{"directoryName":"/user/username/projects/sample1/core","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
+324
@@ -0,0 +1,324 @@
|
||||
Input::
|
||||
//// [/a/lib/lib.d.ts]
|
||||
/// <reference no-default-lib="true"/>
|
||||
interface Boolean {}
|
||||
interface Function {}
|
||||
interface CallableFunction {}
|
||||
interface NewableFunction {}
|
||||
interface IArguments {}
|
||||
interface Number { toExponential: any; }
|
||||
interface Object {}
|
||||
interface RegExp {}
|
||||
interface String { charAt: any; }
|
||||
interface Array<T> { length: number; [n: number]: T; }
|
||||
|
||||
//// [/user/username/projects/sample1/core/tsconfig.json]
|
||||
{
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"skipDefaultLibCheck": true
|
||||
}
|
||||
}
|
||||
|
||||
//// [/user/username/projects/sample1/core/index.ts]
|
||||
export const someString: string = "HELLO WORLD";
|
||||
export function leftPad(s: string, n: number) { return s + n; }
|
||||
export function multiply(a: number, b: number) { return a * b; }
|
||||
|
||||
|
||||
//// [/user/username/projects/sample1/core/anotherModule.ts]
|
||||
export const World = "hello";
|
||||
|
||||
|
||||
|
||||
/a/lib/tsc.js -b -w sample1/core -verbose
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:27 AM[0m] Starting compilation in watch mode...
|
||||
|
||||
|
||||
[[90m12:00:28 AM[0m] Projects in this build:
|
||||
* sample1/core/tsconfig.json
|
||||
|
||||
|
||||
[[90m12:00:29 AM[0m] Project 'sample1/core/tsconfig.json' is out of date because output file 'sample1/core/anotherModule.js' does not exist
|
||||
|
||||
|
||||
[[90m12:00:30 AM[0m] Building project '/user/username/projects/sample1/core/tsconfig.json'...
|
||||
|
||||
|
||||
[[90m12:00:45 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/index.ts"]
|
||||
Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/sample1/core/anotherModule.ts
|
||||
/user/username/projects/sample1/core/index.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/sample1/core/anotherModule.ts
|
||||
/user/username/projects/sample1/core/index.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/sample1/core/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/sample1/core/anothermodule.ts:
|
||||
{"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}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/sample1/core:
|
||||
{"directoryName":"/user/username/projects/sample1/core","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/sample1/core/anotherModule.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.World = void 0;
|
||||
exports.World = "hello";
|
||||
|
||||
|
||||
//// [/user/username/projects/sample1/core/anotherModule.d.ts.map]
|
||||
{"version":3,"file":"anotherModule.d.ts","sourceRoot":"","sources":["anotherModule.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,UAAU,CAAC"}
|
||||
|
||||
//// [/user/username/projects/sample1/core/anotherModule.d.ts]
|
||||
export declare const World = "hello";
|
||||
//# sourceMappingURL=anotherModule.d.ts.map
|
||||
|
||||
//// [/user/username/projects/sample1/core/index.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.multiply = exports.leftPad = exports.someString = void 0;
|
||||
exports.someString = "HELLO WORLD";
|
||||
function leftPad(s, n) { return s + n; }
|
||||
exports.leftPad = leftPad;
|
||||
function multiply(a, b) { return a * b; }
|
||||
exports.multiply = multiply;
|
||||
|
||||
|
||||
//// [/user/username/projects/sample1/core/index.d.ts.map]
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,EAAE,MAAsB,CAAC;AAChD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB;AAC/D,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAAmB"}
|
||||
|
||||
//// [/user/username/projects/sample1/core/index.d.ts]
|
||||
export declare const someString: string;
|
||||
export declare function leftPad(s: string, n: number): string;
|
||||
export declare function multiply(a: number, b: number): number;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
|
||||
//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo]
|
||||
{
|
||||
"program": {
|
||||
"fileInfos": {
|
||||
"../../../../../a/lib/lib.d.ts": {
|
||||
"version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"affectsGlobalScope": true
|
||||
},
|
||||
"./anothermodule.ts": {
|
||||
"version": "-2676574883-export const World = \"hello\";\r\n",
|
||||
"signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",
|
||||
"affectsGlobalScope": false
|
||||
},
|
||||
"./index.ts": {
|
||||
"version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",
|
||||
"signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map",
|
||||
"affectsGlobalScope": false
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"composite": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"skipDefaultLibCheck": true,
|
||||
"watch": true,
|
||||
"configFilePath": "./tsconfig.json"
|
||||
},
|
||||
"referencedMap": {},
|
||||
"exportedModulesMap": {},
|
||||
"semanticDiagnosticsPerFile": [
|
||||
"../../../../../a/lib/lib.d.ts",
|
||||
"./anothermodule.ts",
|
||||
"./index.ts"
|
||||
]
|
||||
},
|
||||
"version": "FakeTSVersion"
|
||||
}
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/sample1/core/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/sample1/core/anothermodule.ts:
|
||||
{"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}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/sample1/core:
|
||||
{"directoryName":"/user/username/projects/sample1/core","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: Add new file
|
||||
|
||||
Input::
|
||||
//// [/user/username/projects/sample1/core/file3.ts]
|
||||
export const y = 10;
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:48 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:49 AM[0m] Project 'sample1/core/tsconfig.json' is out of date because oldest output 'sample1/core/anotherModule.js' is older than newest input 'sample1/core/file3.ts'
|
||||
|
||||
|
||||
[[90m12:00:50 AM[0m] Building project '/user/username/projects/sample1/core/tsconfig.json'...
|
||||
|
||||
|
||||
[[90m12:01:01 AM[0m] Updating unchanged output timestamps of project '/user/username/projects/sample1/core/tsconfig.json'...
|
||||
|
||||
|
||||
[[90m12:01:02 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/sample1/core/anotherModule.ts","/user/username/projects/sample1/core/file3.ts","/user/username/projects/sample1/core/index.ts"]
|
||||
Program options: {"composite":true,"declaration":true,"declarationMap":true,"skipDefaultLibCheck":true,"watch":true,"configFilePath":"/user/username/projects/sample1/core/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/sample1/core/anotherModule.ts
|
||||
/user/username/projects/sample1/core/file3.ts
|
||||
/user/username/projects/sample1/core/index.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/sample1/core/file3.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/sample1/core/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/sample1/core/anothermodule.ts:
|
||||
{"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/file3.ts:
|
||||
{"fileName":"/user/username/projects/sample1/core/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/sample1/core:
|
||||
{"directoryName":"/user/username/projects/sample1/core","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/sample1/core/anotherModule.js] file changed its modified time
|
||||
//// [/user/username/projects/sample1/core/anotherModule.d.ts.map] file changed its modified time
|
||||
//// [/user/username/projects/sample1/core/anotherModule.d.ts] file changed its modified time
|
||||
//// [/user/username/projects/sample1/core/index.js] file changed its modified time
|
||||
//// [/user/username/projects/sample1/core/index.d.ts.map] file changed its modified time
|
||||
//// [/user/username/projects/sample1/core/index.d.ts] file changed its modified time
|
||||
//// [/user/username/projects/sample1/core/tsconfig.tsbuildinfo]
|
||||
{
|
||||
"program": {
|
||||
"fileInfos": {
|
||||
"../../../../../a/lib/lib.d.ts": {
|
||||
"version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
|
||||
"affectsGlobalScope": true
|
||||
},
|
||||
"./anothermodule.ts": {
|
||||
"version": "-2676574883-export const World = \"hello\";\r\n",
|
||||
"signature": "-4454971016-export declare const World = \"hello\";\n//# sourceMappingURL=anotherModule.d.ts.map",
|
||||
"affectsGlobalScope": false
|
||||
},
|
||||
"./file3.ts": {
|
||||
"version": "-13729955264-export const y = 10;",
|
||||
"signature": "-2095538994-export declare const y = 10;\n//# sourceMappingURL=file3.d.ts.map",
|
||||
"affectsGlobalScope": false
|
||||
},
|
||||
"./index.ts": {
|
||||
"version": "-18749805970-export const someString: string = \"HELLO WORLD\";\r\nexport function leftPad(s: string, n: number) { return s + n; }\r\nexport function multiply(a: number, b: number) { return a * b; }\r\n",
|
||||
"signature": "-9047123202-export declare const someString: string;\nexport declare function leftPad(s: string, n: number): string;\nexport declare function multiply(a: number, b: number): number;\n//# sourceMappingURL=index.d.ts.map",
|
||||
"affectsGlobalScope": false
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"composite": true,
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"skipDefaultLibCheck": true,
|
||||
"watch": true,
|
||||
"configFilePath": "./tsconfig.json"
|
||||
},
|
||||
"referencedMap": {},
|
||||
"exportedModulesMap": {},
|
||||
"semanticDiagnosticsPerFile": [
|
||||
"../../../../../a/lib/lib.d.ts",
|
||||
"./anothermodule.ts",
|
||||
"./file3.ts",
|
||||
"./index.ts"
|
||||
]
|
||||
},
|
||||
"version": "FakeTSVersion"
|
||||
}
|
||||
|
||||
//// [/user/username/projects/sample1/core/file3.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.y = void 0;
|
||||
exports.y = 10;
|
||||
|
||||
|
||||
//// [/user/username/projects/sample1/core/file3.d.ts.map]
|
||||
{"version":3,"file":"file3.d.ts","sourceRoot":"","sources":["file3.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,CAAC,KAAK,CAAC"}
|
||||
|
||||
//// [/user/username/projects/sample1/core/file3.d.ts]
|
||||
export declare const y = 10;
|
||||
//# sourceMappingURL=file3.d.ts.map
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/sample1/core/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/sample1/core/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/sample1/core/anothermodule.ts:
|
||||
{"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/file3.ts:
|
||||
{"fileName":"/user/username/projects/sample1/core/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/sample1/core:
|
||||
{"directoryName":"/user/username/projects/sample1/core","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
+125
@@ -162,3 +162,128 @@ define(["require", "exports"], function (require, exports) {
|
||||
export declare const d = 30;
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: Add new file
|
||||
|
||||
Input::
|
||||
//// [/user/username/projects/myproject/src/file3.ts]
|
||||
export const y = 10;
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:43 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:48 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"]
|
||||
Program options: {"target":1,"module":2,"declaration":true,"strict":true,"esModuleInterop":true,"declarationDir":"/user/username/projects/myproject/decls","skipLibCheck":true,"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/file1.ts
|
||||
/user/username/projects/myproject/src/file2.ts
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/src/file3.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = void 0;
|
||||
exports.y = 10;
|
||||
});
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/decls/src/file3.d.ts]
|
||||
export declare const y = 10;
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
+125
@@ -162,3 +162,128 @@ define(["require", "exports"], function (require, exports) {
|
||||
export declare const d = 30;
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: Add new file
|
||||
|
||||
Input::
|
||||
//// [/user/username/projects/myproject/src/file3.ts]
|
||||
export const y = 10;
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:49 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:54 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"]
|
||||
Program options: {"target":1,"module":2,"declaration":true,"outDir":"/user/username/projects/myproject/build","strict":true,"esModuleInterop":true,"declarationDir":"/user/username/projects/myproject/decls","skipLibCheck":true,"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/file1.ts
|
||||
/user/username/projects/myproject/src/file2.ts
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/build/src/file3.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = void 0;
|
||||
exports.y = 10;
|
||||
});
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/decls/src/file3.d.ts]
|
||||
export declare const y = 10;
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
+121
@@ -153,3 +153,124 @@ define(["require", "exports"], function (require, exports) {
|
||||
});
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: Add new file
|
||||
|
||||
Input::
|
||||
//// [/user/username/projects/myproject/src/file3.ts]
|
||||
export const y = 10;
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:39 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:42 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"]
|
||||
Program options: {"target":1,"module":2,"outDir":"/user/username/projects/myproject/build","strict":true,"esModuleInterop":true,"skipLibCheck":true,"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/file1.ts
|
||||
/user/username/projects/myproject/src/file2.ts
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/build/src/file3.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = void 0;
|
||||
exports.y = 10;
|
||||
});
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
+132
@@ -147,3 +147,135 @@ define("src/file2", ["require", "exports"], function (require, exports) {
|
||||
});
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: Add new file
|
||||
|
||||
Input::
|
||||
//// [/user/username/projects/myproject/src/file3.ts]
|
||||
export const y = 10;
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:34 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:38 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"]
|
||||
Program options: {"target":1,"module":2,"outFile":"/user/username/projects/myproject/build/outFile.js","strict":true,"esModuleInterop":true,"skipLibCheck":true,"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/file1.ts
|
||||
/user/username/projects/myproject/src/file2.ts
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
No cached semantic diagnostics in the builder::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/build/outFile.js]
|
||||
define("file1", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.c = void 0;
|
||||
exports.c = 30;
|
||||
});
|
||||
define("src/file2", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.d = void 0;
|
||||
exports.d = 30;
|
||||
});
|
||||
define("src/file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = void 0;
|
||||
exports.y = 10;
|
||||
});
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
+288
@@ -0,0 +1,288 @@
|
||||
Input::
|
||||
//// [/user/username/projects/myproject/file1.ts]
|
||||
export const c = 30;
|
||||
|
||||
//// [/user/username/projects/myproject/src/file2.ts]
|
||||
import {c} from "file1"; export const d = 30;
|
||||
|
||||
//// [/a/lib/lib.d.ts]
|
||||
/// <reference no-default-lib="true"/>
|
||||
interface Boolean {}
|
||||
interface Function {}
|
||||
interface CallableFunction {}
|
||||
interface NewableFunction {}
|
||||
interface IArguments {}
|
||||
interface Number { toExponential: any; }
|
||||
interface Object {}
|
||||
interface RegExp {}
|
||||
interface String { charAt: any; }
|
||||
interface Array<T> { length: number; [n: number]: T; }
|
||||
|
||||
//// [/user/username/projects/myproject/tsconfig.json]
|
||||
{
|
||||
"compilerOptions": {
|
||||
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
||||
|
||||
/* Basic Options */
|
||||
// "incremental": true, /* Enable incremental compilation */
|
||||
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
||||
"module": "amd", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
||||
// "lib": [], /* Specify library files to be included in the compilation. */
|
||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
||||
// "checkJs": true, /* Report errors in .js files. */
|
||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
||||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
||||
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
||||
// "outFile": "./", /* Concatenate and emit output to single file. */
|
||||
// "outDir": "./", /* Redirect output structure to the directory. */
|
||||
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
||||
// "composite": true, /* Enable project compilation */
|
||||
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
||||
// "removeComments": true, /* Do not emit comments to output. */
|
||||
// "noEmit": true, /* Do not emit outputs. */
|
||||
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
||||
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
||||
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
||||
|
||||
/* Strict Type-Checking Options */
|
||||
"strict": true, /* Enable all strict type-checking options. */
|
||||
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
||||
// "strictNullChecks": true, /* Enable strict null checks. */
|
||||
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
||||
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
||||
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
||||
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
||||
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
||||
|
||||
/* Additional Checks */
|
||||
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
||||
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
||||
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
||||
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
||||
|
||||
/* Module Resolution Options */
|
||||
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
||||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
||||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
||||
// "typeRoots": [], /* List of folders to include type definitions from. */
|
||||
// "types": [], /* Type declaration files to be included in compilation. */
|
||||
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
||||
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
||||
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
||||
|
||||
/* Source Map Options */
|
||||
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
||||
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
||||
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
||||
|
||||
/* Experimental Options */
|
||||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
||||
|
||||
/* Advanced Options */
|
||||
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
||||
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/a/lib/tsc.js -w -p /user/username/projects/myproject/tsconfig.json
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:25 AM[0m] Starting compilation in watch mode...
|
||||
|
||||
|
||||
[[90m12:00:34 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts"]
|
||||
Program options: {"target":1,"module":2,"declaration":true,"strict":true,"esModuleInterop":true,"skipLibCheck":true,"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/file1.ts
|
||||
/user/username/projects/myproject/src/file2.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/file1.ts
|
||||
/user/username/projects/myproject/src/file2.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/file1.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.c = void 0;
|
||||
exports.c = 30;
|
||||
});
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/file1.d.ts]
|
||||
export declare const c = 30;
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/src/file2.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.d = void 0;
|
||||
exports.d = 30;
|
||||
});
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/src/file2.d.ts]
|
||||
export declare const d = 30;
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: Add new file
|
||||
|
||||
Input::
|
||||
//// [/user/username/projects/myproject/src/file3.ts]
|
||||
export const y = 10;
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:37 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:42 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"]
|
||||
Program options: {"target":1,"module":2,"declaration":true,"strict":true,"esModuleInterop":true,"skipLibCheck":true,"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/file1.ts
|
||||
/user/username/projects/myproject/src/file2.ts
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/src/file3.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = void 0;
|
||||
exports.y = 10;
|
||||
});
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/src/file3.d.ts]
|
||||
export declare const y = 10;
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
+121
@@ -153,3 +153,124 @@ define(["require", "exports"], function (require, exports) {
|
||||
});
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: Add new file
|
||||
|
||||
Input::
|
||||
//// [/user/username/projects/myproject/src/file3.ts]
|
||||
export const y = 10;
|
||||
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:33 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:36 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/file1.ts","/user/username/projects/myproject/src/file2.ts","/user/username/projects/myproject/src/file3.ts"]
|
||||
Program options: {"target":1,"module":2,"strict":true,"esModuleInterop":true,"skipLibCheck":true,"forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/file1.ts
|
||||
/user/username/projects/myproject/src/file2.ts
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/src/file3.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.y = void 0;
|
||||
exports.y = 10;
|
||||
});
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
|
||||
FsWatchesRecursive::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
+230
@@ -0,0 +1,230 @@
|
||||
Input::
|
||||
//// [/a/lib/lib.d.ts]
|
||||
/// <reference no-default-lib="true"/>
|
||||
interface Boolean {}
|
||||
interface Function {}
|
||||
interface CallableFunction {}
|
||||
interface NewableFunction {}
|
||||
interface IArguments {}
|
||||
interface Number { toExponential: any; }
|
||||
interface Object {}
|
||||
interface RegExp {}
|
||||
interface String { charAt: any; }
|
||||
interface Array<T> { length: number; [n: number]: T; }
|
||||
|
||||
//// [/user/username/projects/myproject/src/file1.ts]
|
||||
import { x } from "./file2";
|
||||
|
||||
//// [/user/username/projects/myproject/src/file2.ts]
|
||||
export const x = 10;
|
||||
|
||||
//// [/user/username/projects/myproject/tsconfig.json]
|
||||
{"compilerOptions":{"outDir":"dist"}}
|
||||
|
||||
|
||||
/a/lib/tsc.js --w -p /user/username/projects/myproject/tsconfig.json
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:25 AM[0m] Starting compilation in watch mode...
|
||||
|
||||
|
||||
[[90m12:00:33 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/file2.ts"]
|
||||
Program options: {"outDir":"/user/username/projects/myproject/dist","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/src/file2.ts
|
||||
/user/username/projects/myproject/src/file1.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/src/file2.ts
|
||||
/user/username/projects/myproject/src/file1.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/dist:
|
||||
{"directoryName":"/user/username/projects/myproject/dist","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/dist/file2.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.x = void 0;
|
||||
exports.x = 10;
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/dist/file1.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/dist:
|
||||
{"directoryName":"/user/username/projects/myproject/dist","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: rename the file
|
||||
|
||||
Input::
|
||||
//// [/user/username/projects/myproject/src/renamed.ts]
|
||||
export const x = 10;
|
||||
|
||||
//// [/user/username/projects/myproject/src/file2.ts] deleted
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:37 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[91merror[0m[90m TS6053: [0mFile '/user/username/projects/myproject/src/file2.ts' not found.
|
||||
|
||||
|
||||
[[90m12:00:41 AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/file2.ts"]
|
||||
Program options: {"outDir":"/user/username/projects/myproject/dist","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/src/file1.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/src/file1.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file1.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file2.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file2.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/dist:
|
||||
{"directoryName":"/user/username/projects/myproject/dist","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/dist/file1.js] file written with same contents
|
||||
|
||||
Change:: Pending directory watchers and program update
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:42 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[96muser/username/projects/myproject/src/file1.ts[0m:[93m1[0m:[93m19[0m - [91merror[0m[90m TS2307: [0mCannot find module './file2' or its corresponding type declarations.
|
||||
|
||||
[7m1[0m import { x } from "./file2";
|
||||
[7m [0m [91m ~~~~~~~~~[0m
|
||||
|
||||
|
||||
[[90m12:00:45 AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/renamed.ts"]
|
||||
Program options: {"outDir":"/user/username/projects/myproject/dist","watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/src/file1.ts
|
||||
/user/username/projects/myproject/src/renamed.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/src/file1.ts
|
||||
/user/username/projects/myproject/src/renamed.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file1.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/renamed.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/renamed.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/dist:
|
||||
{"directoryName":"/user/username/projects/myproject/dist","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/dist/renamed.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.x = void 0;
|
||||
exports.x = 10;
|
||||
|
||||
|
||||
+296
@@ -0,0 +1,296 @@
|
||||
Input::
|
||||
//// [/a/lib/lib.d.ts]
|
||||
/// <reference no-default-lib="true"/>
|
||||
interface Boolean {}
|
||||
interface Function {}
|
||||
interface CallableFunction {}
|
||||
interface NewableFunction {}
|
||||
interface IArguments {}
|
||||
interface Number { toExponential: any; }
|
||||
interface Object {}
|
||||
interface RegExp {}
|
||||
interface String { charAt: any; }
|
||||
interface Array<T> { length: number; [n: number]: T; }
|
||||
|
||||
//// [/user/username/projects/myproject/src/file1.ts]
|
||||
import { x } from "file2";
|
||||
|
||||
//// [/user/username/projects/myproject/node_modules/file2/index.d.ts]
|
||||
export const x = 10;
|
||||
|
||||
//// [/user/username/projects/myproject/tsconfig.json]
|
||||
{"compilerOptions":{"outDir":"dist","declaration":true}}
|
||||
|
||||
|
||||
/a/lib/tsc.js --w -p /user/username/projects/myproject/tsconfig.json
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:29 AM[0m] Starting compilation in watch mode...
|
||||
|
||||
|
||||
[[90m12:00:37 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/src/file1.ts"]
|
||||
Program options: {"outDir":"/user/username/projects/myproject/dist","declaration":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/node_modules/file2/index.d.ts
|
||||
/user/username/projects/myproject/src/file1.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/node_modules/file2/index.d.ts
|
||||
/user/username/projects/myproject/src/file1.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/node_modules/file2/index.d.ts:
|
||||
{"fileName":"/user/username/projects/myproject/node_modules/file2/index.d.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/file2:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/file2","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/dist:
|
||||
{"directoryName":"/user/username/projects/myproject/dist","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/dist/file1.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/dist/file1.d.ts]
|
||||
export {};
|
||||
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/node_modules/file2/index.d.ts:
|
||||
{"fileName":"/user/username/projects/myproject/node_modules/file2/index.d.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/file2:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/file2","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/dist:
|
||||
{"directoryName":"/user/username/projects/myproject/dist","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: Add new file, should schedule and run timeout to update directory watcher
|
||||
|
||||
Input::
|
||||
//// [/user/username/projects/myproject/src/file3.ts]
|
||||
export const y = 10;
|
||||
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/node_modules/file2/index.d.ts:
|
||||
{"fileName":"/user/username/projects/myproject/node_modules/file2/index.d.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/file2:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/file2","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/dist:
|
||||
{"directoryName":"/user/username/projects/myproject/dist","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: Actual program update to include new file
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:40 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:45 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/src/file1.ts","/user/username/projects/myproject/src/file3.ts"]
|
||||
Program options: {"outDir":"/user/username/projects/myproject/dist","declaration":true,"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/node_modules/file2/index.d.ts
|
||||
/user/username/projects/myproject/src/file1.ts
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
/user/username/projects/myproject/src/file3.ts
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/node_modules/file2/index.d.ts:
|
||||
{"fileName":"/user/username/projects/myproject/node_modules/file2/index.d.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/file2:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/file2","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/dist:
|
||||
{"directoryName":"/user/username/projects/myproject/dist","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
//// [/user/username/projects/myproject/dist/file3.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
exports.y = void 0;
|
||||
exports.y = 10;
|
||||
|
||||
|
||||
//// [/user/username/projects/myproject/dist/file3.d.ts]
|
||||
export declare const y = 10;
|
||||
|
||||
|
||||
|
||||
Change:: After program emit with new file, should schedule and run timeout to update directory watcher
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/node_modules/file2/index.d.ts:
|
||||
{"fileName":"/user/username/projects/myproject/node_modules/file2/index.d.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/file2:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/file2","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/dist:
|
||||
{"directoryName":"/user/username/projects/myproject/dist","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
|
||||
Change:: No change
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file1.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file1.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/node_modules/file2/index.d.ts:
|
||||
{"fileName":"/user/username/projects/myproject/node_modules/file2/index.d.ts","pollingInterval":250}
|
||||
/a/lib/lib.d.ts:
|
||||
{"fileName":"/a/lib/lib.d.ts","pollingInterval":250}
|
||||
/user/username/projects/myproject/src/file3.ts:
|
||||
{"fileName":"/user/username/projects/myproject/src/file3.ts","pollingInterval":250}
|
||||
|
||||
FsWatches::
|
||||
/user/username/projects/myproject/src:
|
||||
{"directoryName":"/user/username/projects/myproject/src","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/file2:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/file2","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/node_modules/@types:
|
||||
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject:
|
||||
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
/user/username/projects/myproject/dist:
|
||||
{"directoryName":"/user/username/projects/myproject/dist","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
|
||||
|
||||
FsWatchesRecursive::
|
||||
|
||||
exitCode:: ExitStatus.undefined
|
||||
|
||||
+7
-23
@@ -76,27 +76,11 @@ exports.__esModule = true;
|
||||
|
||||
|
||||
|
||||
Change:: Pending updates because of file1.js creation
|
||||
Change:: Directory watch updates because of file1.js creation
|
||||
|
||||
Input::
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:33 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:34 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
Program root files: ["/user/username/projects/myproject/src/file1.ts"]
|
||||
Program options: {"watch":true,"project":"/user/username/projects/myproject/tsconfig.json","configFilePath":"/user/username/projects/myproject/tsconfig.json"}
|
||||
Program files::
|
||||
/a/lib/lib.d.ts
|
||||
/user/username/projects/myproject/node_modules/file2/index.d.ts
|
||||
/user/username/projects/myproject/src/file1.ts
|
||||
|
||||
Semantic diagnostics in builder refreshed for::
|
||||
|
||||
WatchedFiles::
|
||||
/user/username/projects/myproject/tsconfig.json:
|
||||
@@ -132,7 +116,7 @@ Input::
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:38 AM[0m] File change detected. Starting incremental compilation...
|
||||
[[90m12:00:36 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[96muser/username/projects/myproject/src/file1.ts[0m:[93m1[0m:[93m19[0m - [91merror[0m[90m TS2307: [0mCannot find module 'file2' or its corresponding type declarations.
|
||||
@@ -141,7 +125,7 @@ Output::
|
||||
[7m [0m [91m ~~~~~~~[0m
|
||||
|
||||
|
||||
[[90m12:00:42 AM[0m] Found 1 error. Watching for file changes.
|
||||
[[90m12:00:40 AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
@@ -184,7 +168,7 @@ Input::
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:43 AM[0m] File change detected. Starting incremental compilation...
|
||||
[[90m12:00:41 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[96muser/username/projects/myproject/src/file1.ts[0m:[93m1[0m:[93m19[0m - [91merror[0m[90m TS2307: [0mCannot find module 'file2' or its corresponding type declarations.
|
||||
@@ -193,7 +177,7 @@ Output::
|
||||
[7m [0m [91m ~~~~~~~[0m
|
||||
|
||||
|
||||
[[90m12:00:44 AM[0m] Found 1 error. Watching for file changes.
|
||||
[[90m12:00:42 AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
@@ -386,10 +370,10 @@ Input::
|
||||
|
||||
Output::
|
||||
>> Screen clear
|
||||
[[90m12:00:51 AM[0m] File change detected. Starting incremental compilation...
|
||||
[[90m12:00:49 AM[0m] File change detected. Starting incremental compilation...
|
||||
|
||||
|
||||
[[90m12:00:55 AM[0m] Found 0 errors. Watching for file changes.
|
||||
[[90m12:00:53 AM[0m] Found 0 errors. Watching for file changes.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user