diff --git a/src/compiler/scanner.ts b/src/compiler/scanner.ts index 1026b02a68c2a..92d10f0b131fc 100644 --- a/src/compiler/scanner.ts +++ b/src/compiler/scanner.ts @@ -2068,10 +2068,19 @@ namespace ts { // First non-whitespace character on this line. let firstNonWhitespace = 0; + let lastNonWhitespace = -1; + // These initial values are special because the first line is: // firstNonWhitespace = 0 to indicate that we want leading whitespace, while (pos < end) { + + // We want to keep track of the last non-whitespace (but including + // newlines character for hitting the end of the JSX Text region) + if (!isWhiteSpaceSingleLine(char)) { + lastNonWhitespace = pos; + } + char = text.charCodeAt(pos); if (char === CharacterCodes.openBrace) { break; @@ -2084,6 +2093,8 @@ namespace ts { break; } + if (lastNonWhitespace > 0) lastNonWhitespace++; + // FirstNonWhitespace is 0, then we only see whitespaces so far. If we see a linebreak, we want to ignore that whitespaces. // i.e (- : whitespace) //
---- @@ -2096,10 +2107,13 @@ namespace ts { else if (!isWhiteSpaceLike(char)) { firstNonWhitespace = pos; } + pos++; } - tokenValue = text.substring(startPos, pos); + const endPosition = lastNonWhitespace === -1 ? pos : lastNonWhitespace; + tokenValue = text.substring(startPos, endPosition); + return firstNonWhitespace === -1 ? SyntaxKind.JsxTextAllWhiteSpaces : SyntaxKind.JsxText; } diff --git a/src/services/formatting/formatting.ts b/src/services/formatting/formatting.ts index bd32b5da46c37..d7d8d1bcb7757 100644 --- a/src/services/formatting/formatting.ts +++ b/src/services/formatting/formatting.ts @@ -649,6 +649,11 @@ namespace ts.formatting { if (tokenInfo.token.end > node.end) { break; } + if (node.kind === SyntaxKind.JsxText) { + // Intentation rules for jsx text are handled by `indentMultilineCommentOrJsxText` inside `processChildNode`; just fastforward past it here + formattingScanner.advance(); + continue; + } consumeTokenAndAdvanceScanner(tokenInfo, node, nodeDynamicIndentation, node); } @@ -736,10 +741,21 @@ namespace ts.formatting { const childIndentation = computeIndentation(child, childStartLine, childIndentationAmount, node, parentDynamicIndentation, effectiveParentStartLine); processNode(child, childContextNode, childStartLine, undecoratedChildStartLine, childIndentation.indentation, childIndentation.delta); - if (child.kind === SyntaxKind.JsxText) { const range: TextRange = { pos: child.getStart(), end: child.getEnd() }; - indentMultilineCommentOrJsxText(range, childIndentation.indentation, /*firstLineIsIndented*/ true, /*indentFinalLine*/ false); + if (range.pos !== range.end) { // don't indent zero-width jsx text + const siblings = parent.getChildren(sourceFile); + const currentIndex = findIndex(siblings, arg => arg.pos === child.pos); + const previousNode = siblings[currentIndex - 1]; + if (previousNode) { + // The jsx text needs no indentation whatsoever if it ends on the same line the previous sibling ends on + if (sourceFile.getLineAndCharacterOfPosition(range.end).line !== sourceFile.getLineAndCharacterOfPosition(previousNode.end).line) { + // The first line is (already) "indented" if the text starts on the same line as the previous sibling element ends on + const firstLineIsIndented = sourceFile.getLineAndCharacterOfPosition(range.pos).line === sourceFile.getLineAndCharacterOfPosition(previousNode.end).line; + indentMultilineCommentOrJsxText(range, childIndentation.indentation, firstLineIsIndented, /*indentFinalLine*/ false, /*jsxStyle*/ true); + } + } + } } childContextNode = node; @@ -1039,7 +1055,7 @@ namespace ts.formatting { return indentationString !== sourceFile.text.substr(startLinePosition, indentationString.length); } - function indentMultilineCommentOrJsxText(commentRange: TextRange, indentation: number, firstLineIsIndented: boolean, indentFinalLine = true) { + function indentMultilineCommentOrJsxText(commentRange: TextRange, indentation: number, firstLineIsIndented: boolean, indentFinalLine = true, jsxTextStyleIndent?: boolean) { // split comment in lines let startLine = sourceFile.getLineAndCharacterOfPosition(commentRange.pos).line; const endLine = sourceFile.getLineAndCharacterOfPosition(commentRange.end).line; @@ -1070,7 +1086,7 @@ namespace ts.formatting { const nonWhitespaceColumnInFirstPart = SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(startLinePos, parts[0].pos, sourceFile, options); - if (indentation === nonWhitespaceColumnInFirstPart.column) { + if (indentation === nonWhitespaceColumnInFirstPart.column && !jsxTextStyleIndent) { return; } @@ -1081,14 +1097,19 @@ namespace ts.formatting { } // shift all parts on the delta size - const delta = indentation - nonWhitespaceColumnInFirstPart.column; + let delta = indentation - nonWhitespaceColumnInFirstPart.column; for (let i = startIndex; i < parts.length; i++ , startLine++) { const startLinePos = getStartPositionOfLine(startLine, sourceFile); const nonWhitespaceCharacterAndColumn = i === 0 ? nonWhitespaceColumnInFirstPart : SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(parts[i].pos, parts[i].end, sourceFile, options); - + if (jsxTextStyleIndent) { + // skip adding indentation to blank lines + if (isLineBreak(sourceFile.text.charCodeAt(getStartPositionOfLine(startLine, sourceFile)))) continue; + // reset delta on every line + delta = indentation - nonWhitespaceCharacterAndColumn.column; + } const newIndentation = nonWhitespaceCharacterAndColumn.column + delta; if (newIndentation > 0) { const indentationString = getIndentationString(newIndentation, options); diff --git a/src/services/formatting/formattingScanner.ts b/src/services/formatting/formattingScanner.ts index 98f7adc43aa12..7449cdbb92edb 100644 --- a/src/services/formatting/formattingScanner.ts +++ b/src/services/formatting/formattingScanner.ts @@ -122,7 +122,13 @@ namespace ts.formatting { } function shouldRescanJsxText(node: Node): boolean { - return node.kind === SyntaxKind.JsxText; + const isJSXText = isJsxText(node); + if (isJSXText) { + const containingElement = findAncestor(node.parent, p => isJsxElement(p)); + if (!containingElement) return false; // should never happen + return !isParenthesizedExpression(containingElement.parent); + } + return false; } function shouldRescanSlashToken(container: Node): boolean { diff --git a/src/services/suggestionDiagnostics.ts b/src/services/suggestionDiagnostics.ts index e95406a463592..5767bad6a13f6 100644 --- a/src/services/suggestionDiagnostics.ts +++ b/src/services/suggestionDiagnostics.ts @@ -37,23 +37,8 @@ namespace ts { function check(node: Node) { if (isJsFile) { - switch (node.kind) { - case SyntaxKind.FunctionExpression: - const decl = getDeclarationOfExpando(node); - if (decl) { - const symbol = decl.symbol; - if (symbol && (symbol.exports && symbol.exports.size || symbol.members && symbol.members.size)) { - diags.push(createDiagnosticForNode(isVariableDeclaration(node.parent) ? node.parent.name : node, Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration)); - break; - } - } - // falls through if no diagnostic was created - case SyntaxKind.FunctionDeclaration: - const symbol = node.symbol; - if (symbol.members && (symbol.members.size > 0)) { - diags.push(createDiagnosticForNode(isVariableDeclaration(node.parent) ? node.parent.name : node, Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration)); - } - break; + if (canBeConvertedToClass(node)) { + diags.push(createDiagnosticForNode(isVariableDeclaration(node.parent) ? node.parent.name : node, Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration)); } } else { @@ -193,4 +178,22 @@ namespace ts { function getKeyFromNode(exp: FunctionLikeDeclaration) { return `${exp.pos.toString()}:${exp.end.toString()}`; } + + function canBeConvertedToClass(node: Node): boolean { + if (node.kind === SyntaxKind.FunctionExpression) { + if (isVariableDeclaration(node.parent) && node.symbol.members?.size) { + return true; + } + + const decl = getDeclarationOfExpando(node); + const symbol = decl?.symbol; + return !!(symbol && (symbol.exports?.size || symbol.members?.size)); + } + + if (node.kind === SyntaxKind.FunctionDeclaration) { + return !!node.symbol.members?.size; + } + + return false; + } } diff --git a/tests/baselines/reference/docker/azure-sdk.log b/tests/baselines/reference/docker/azure-sdk.log index a8a12bd94808a..7fd3e09f1a754 100644 --- a/tests/baselines/reference/docker/azure-sdk.log +++ b/tests/baselines/reference/docker/azure-sdk.log @@ -43,10 +43,10 @@ npm ERR! /root/.npm/_logs/XXXX-XX-XXXXXXXXX-debug.log XX of XX: [@azure/service-bus] completed successfully in ? seconds npm ERR! code ELIFECYCLE npm ERR! errno 2 -npm ERR! @azure/storage-file-datalake@X.X.X-preview.7 build:es6: `tsc -p tsconfig.json` +npm ERR! @azure/storage-file-datalake@X.X.X-preview.8 build:es6: `tsc -p tsconfig.json` npm ERR! Exit status 2 npm ERR! -npm ERR! Failed at the @azure/storage-file-datalake@X.X.X-preview.7 build:es?script. +npm ERR! Failed at the @azure/storage-file-datalake@X.X.X-preview.8 build:es?script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/XXXX-XX-XXXXXXXXX-debug.log @@ -142,26 +142,26 @@ npm ERR! /root/.npm/_logs/XXXX-XX-XXXXXXXXX-debug.log @azure/storage-file-datalake (? seconds) npm ERR! code ELIFECYCLE npm ERR! errno 2 -npm ERR! @azure/storage-file-datalake@X.X.X-preview.7 build:es6: `tsc -p tsconfig.json` +npm ERR! @azure/storage-file-datalake@X.X.X-preview.8 build:es6: `tsc -p tsconfig.json` npm ERR! Exit status 2 npm ERR! -npm ERR! Failed at the @azure/storage-file-datalake@X.X.X-preview.7 build:es?script. +npm ERR! Failed at the @azure/storage-file-datalake@X.X.X-preview.8 build:es?script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/XXXX-XX-XXXXXXXXX-debug.log ================================ -Error: Project(s) failed to build +Error: Project(s) failed rush rebuild - Errors! ( ? seconds) Standard error: -XX of XX: [@azure/app-configuration] failed to build! +XX of XX: [@azure/app-configuration] failed! XX of XX: [@azure/cosmos] completed with warnings in ? seconds -XX of XX: [@azure/eventhubs-checkpointstore-blob] failed to build! -XX of XX: [@azure/keyvault-certificates] failed to build! -XX of XX: [@azure/storage-file-datalake] failed to build! +XX of XX: [@azure/eventhubs-checkpointstore-blob] failed! +XX of XX: [@azure/keyvault-certificates] failed! +XX of XX: [@azure/storage-file-datalake] failed! [@azure/app-configuration] Returned error code: 2 [@azure/eventhubs-checkpointstore-blob] Returned error code: 2 [@azure/keyvault-certificates] Returned error code: 2 diff --git a/tests/baselines/reference/docker/office-ui-fabric.log b/tests/baselines/reference/docker/office-ui-fabric.log index 4432930782959..a5d03b2f02336 100644 --- a/tests/baselines/reference/docker/office-ui-fabric.log +++ b/tests/baselines/reference/docker/office-ui-fabric.log @@ -6,31 +6,10 @@ Standard output: @uifabric/example-data: yarn run vX.X.X @uifabric/example-data: $ just-scripts build @uifabric/example-data: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] -@uifabric/example-data: [XX:XX:XX XM] ■ Running tslint -@uifabric/example-data: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/tslint/lib/tslintCli.js" --project "/office-ui-fabric-react/packages/example-data/tsconfig.json" -t stylish -r /office-ui-fabric-react/node_modules/tslint-microsoft-contrib @uifabric/example-data: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/example-data/tsconfig.json @uifabric/example-data: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/example-data/tsconfig.json" @uifabric/example-data: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/example-data/tsconfig.json @uifabric/example-data: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/example-data/tsconfig.json" -@uifabric/example-data: [XX:XX:XX XM] ■ Running webpack-cli as a node process -@uifabric/example-data: [XX:XX:XX XM] ■ webpack-cli arguments: /usr/local/bin/node --max-old-space-size=4096 /office-ui-fabric-react/node_modules/webpack-cli/bin/cli.js -@uifabric/example-data: Webpack version: 4.X.X -@uifabric/example-data: Hash: [redacted] -@uifabric/example-data: Version: webpack 4.X.X -@uifabric/example-data: Child -@uifabric/example-data: Hash: [redacted] -@uifabric/example-data: Time: ?s -@uifabric/example-data: Built at: XX/XX/XX XX:XX:XX XM -@uifabric/example-data: Asset Size Chunks Chunk Names -@uifabric/example-data: example-data.js X KiB example-data [emitted] example-data -@uifabric/example-data: example-data.js.map X KiB example-data [emitted] example-data -@uifabric/example-data: Entrypoint example-data = example-data.js example-data.js.map -@uifabric/example-data: [./lib/facepile.js] X KiB {example-data} [built] -@uifabric/example-data: [./lib/index.js] X KiB {example-data} [built] -@uifabric/example-data: [./lib/listItems.js] X KiB {example-data} [built] -@uifabric/example-data: [./lib/lorem.js] X KiB {example-data} [built] -@uifabric/example-data: [./lib/people.js] X KiB {example-data} [built] -@uifabric/example-data: [./lib/testImages.js] X KiB {example-data} [built] @uifabric/example-data: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/example-data/lib/index.d.ts' @uifabric/example-data: Done in ?s. @uifabric/migration: yarn run vX.X.X @@ -50,8 +29,6 @@ Standard output: @uifabric/set-version: yarn run vX.X.X @uifabric/set-version: $ just-scripts build @uifabric/set-version: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] -@uifabric/set-version: [XX:XX:XX XM] ■ Running tslint -@uifabric/set-version: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/tslint/lib/tslintCli.js" --project "/office-ui-fabric-react/packages/set-version/tsconfig.json" -t stylish -r /office-ui-fabric-react/node_modules/tslint-microsoft-contrib @uifabric/set-version: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/set-version/tsconfig.json @uifabric/set-version: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/set-version/tsconfig.json" @uifabric/set-version: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/set-version/tsconfig.json @@ -60,101 +37,25 @@ Standard output: @uifabric/webpack-utils: yarn run vX.X.X @uifabric/webpack-utils: $ just-scripts build @uifabric/webpack-utils: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] -@uifabric/webpack-utils: [XX:XX:XX XM] ■ Running tslint -@uifabric/webpack-utils: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/tslint/lib/tslintCli.js" --project "/office-ui-fabric-react/packages/webpack-utils/tsconfig.json" -t stylish -r /office-ui-fabric-react/node_modules/tslint-microsoft-contrib @uifabric/webpack-utils: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/webpack-utils/tsconfig.json @uifabric/webpack-utils: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module commonjs --project "/office-ui-fabric-react/packages/webpack-utils/tsconfig.json" @uifabric/webpack-utils: Done in ?s. @uifabric/merge-styles: yarn run vX.X.X @uifabric/merge-styles: $ just-scripts build @uifabric/merge-styles: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] -@uifabric/merge-styles: [XX:XX:XX XM] ■ Running tslint -@uifabric/merge-styles: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/tslint/lib/tslintCli.js" --project "/office-ui-fabric-react/packages/merge-styles/tsconfig.json" -t stylish -r /office-ui-fabric-react/node_modules/tslint-microsoft-contrib @uifabric/merge-styles: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/merge-styles/tsconfig.json @uifabric/merge-styles: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/merge-styles/tsconfig.json" @uifabric/merge-styles: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/merge-styles/tsconfig.json @uifabric/merge-styles: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/merge-styles/tsconfig.json" -@uifabric/merge-styles: [XX:XX:XX XM] ■ Running Jest -@uifabric/merge-styles: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/jest/bin/jest.js" --config "/office-ui-fabric-react/packages/merge-styles/jest.config.js" --passWithNoTests --colors --forceExit -@uifabric/merge-styles: [XX:XX:XX XM] ■ Running webpack-cli as a node process -@uifabric/merge-styles: [XX:XX:XX XM] ■ webpack-cli arguments: /usr/local/bin/node --max-old-space-size=4096 /office-ui-fabric-react/node_modules/webpack-cli/bin/cli.js -@uifabric/merge-styles: Webpack version: 4.X.X -@uifabric/merge-styles: Hash: [redacted] -@uifabric/merge-styles: Version: webpack 4.X.X -@uifabric/merge-styles: Child -@uifabric/merge-styles: Hash: [redacted] -@uifabric/merge-styles: Time: ?s -@uifabric/merge-styles: Built at: XX/XX/XX XX:XX:XX XM -@uifabric/merge-styles: Asset Size Chunks Chunk Names -@uifabric/merge-styles: merge-styles.js X KiB merge-styles [emitted] merge-styles -@uifabric/merge-styles: merge-styles.js.map X KiB merge-styles [emitted] merge-styles -@uifabric/merge-styles: Entrypoint merge-styles = merge-styles.js merge-styles.js.map -@uifabric/merge-styles: [../set-version/lib/index.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [../set-version/lib/setVersion.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/StyleOptionsState.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/Stylesheet.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/concatStyleSets.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/concatStyleSetsWithProps.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/extractStyleParts.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/fontFace.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/index.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/keyframes.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/mergeStyleSets.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/mergeStyles.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/styleToClassName.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/transforms/kebabRules.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: [./lib/version.js] X KiB {merge-styles} [built] -@uifabric/merge-styles: + 5 hidden modules -@uifabric/merge-styles: Child -@uifabric/merge-styles: Hash: [redacted] -@uifabric/merge-styles: Time: ?s -@uifabric/merge-styles: Built at: XX/XX/XX XX:XX:XX XM -@uifabric/merge-styles: Asset Size Chunks Chunk Names -@uifabric/merge-styles: merge-styles.min.js X KiB 0 [emitted] merge-styles -@uifabric/merge-styles: merge-styles.min.js.map X KiB 0 [emitted] merge-styles -@uifabric/merge-styles: Entrypoint merge-styles = merge-styles.min.js merge-styles.min.js.map -@uifabric/merge-styles: [0] ./lib/index.js + 19 modules X KiB {0} [built] -@uifabric/merge-styles: | ./lib/index.js X KiB [built] -@uifabric/merge-styles: | ./lib/Stylesheet.js X KiB [built] -@uifabric/merge-styles: | ./lib/StyleOptionsState.js X KiB [built] -@uifabric/merge-styles: | ./lib/mergeStyles.js X KiB [built] -@uifabric/merge-styles: | ./lib/concatStyleSets.js X KiB [built] -@uifabric/merge-styles: | ./lib/mergeStyleSets.js X KiB [built] -@uifabric/merge-styles: | ./lib/concatStyleSetsWithProps.js X KiB [built] -@uifabric/merge-styles: | ./lib/fontFace.js X KiB [built] -@uifabric/merge-styles: | ./lib/keyframes.js X KiB [built] -@uifabric/merge-styles: | ./lib/version.js X KiB [built] -@uifabric/merge-styles: | ./lib/extractStyleParts.js X KiB [built] -@uifabric/merge-styles: | ./lib/styleToClassName.js X KiB [built] -@uifabric/merge-styles: | ../set-version/lib/index.js X KiB [built] -@uifabric/merge-styles: | ./lib/transforms/kebabRules.js X KiB [built] -@uifabric/merge-styles: | ./lib/transforms/prefixRules.js X KiB [built] -@uifabric/merge-styles: | + 5 hidden modules -@uifabric/merge-styles: PASS src/styleToClassName.test.ts -@uifabric/merge-styles: PASS src/mergeStyleSets.test.ts -@uifabric/merge-styles: PASS src/mergeStyles.test.ts -@uifabric/merge-styles: PASS src/concatStyleSets.test.ts -@uifabric/merge-styles: PASS src/transforms/rtlifyRules.test.ts -@uifabric/merge-styles: PASS src/mergeCssSets.test.ts -@uifabric/merge-styles: PASS src/transforms/prefixRules.test.ts -@uifabric/merge-styles: PASS src/transforms/provideUnits.test.ts -@uifabric/merge-styles: PASS src/keyframes.test.ts -@uifabric/merge-styles: PASS src/mergeCss.test.ts -@uifabric/merge-styles: PASS src/server.test.ts -@uifabric/merge-styles: PASS src/Stylesheet.test.ts -@uifabric/merge-styles: PASS src/extractStyleParts.test.ts -@uifabric/merge-styles: PASS src/concatStyleSetsWithProps.test.ts @uifabric/merge-styles: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/merge-styles/lib/index.d.ts' @uifabric/merge-styles: Done in ?s. @uifabric/jest-serializer-merge-styles: yarn run vX.X.X @uifabric/jest-serializer-merge-styles: $ just-scripts build +@uifabric/jest-serializer-merge-styles: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] @uifabric/jest-serializer-merge-styles: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/jest-serializer-merge-styles/tsconfig.json @uifabric/jest-serializer-merge-styles: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/jest-serializer-merge-styles/tsconfig.json" @uifabric/jest-serializer-merge-styles: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/jest-serializer-merge-styles/tsconfig.json @uifabric/jest-serializer-merge-styles: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/jest-serializer-merge-styles/tsconfig.json" -@uifabric/jest-serializer-merge-styles: [XX:XX:XX XM] ■ Running Jest -@uifabric/jest-serializer-merge-styles: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/jest/bin/jest.js" --config "/office-ui-fabric-react/packages/jest-serializer-merge-styles/jest.config.js" --passWithNoTests --colors --forceExit -@uifabric/jest-serializer-merge-styles: PASS src/index.test.tsx @uifabric/jest-serializer-merge-styles: Done in ?s. @uifabric/test-utilities: yarn run vX.X.X @uifabric/test-utilities: $ just-scripts build @@ -167,50 +68,67 @@ Standard output: @uifabric/utilities: yarn run vX.X.X @uifabric/utilities: $ just-scripts build @uifabric/utilities: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] -@uifabric/utilities: [XX:XX:XX XM] ■ Running tslint -@uifabric/utilities: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/tslint/lib/tslintCli.js" --project "/office-ui-fabric-react/packages/utilities/tsconfig.json" -t stylish -r /office-ui-fabric-react/node_modules/tslint-microsoft-contrib @uifabric/utilities: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/utilities/tsconfig.json @uifabric/utilities: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/utilities/tsconfig.json" @uifabric/utilities: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/utilities/tsconfig.json @uifabric/utilities: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/utilities/tsconfig.json" -@uifabric/utilities: [XX:XX:XX XM] ■ Running Jest -@uifabric/utilities: [XX:XX:XX XM] ■ /usr/local/bin/node "/office-ui-fabric-react/node_modules/jest/bin/jest.js" --config "/office-ui-fabric-react/packages/utilities/jest.config.js" --passWithNoTests --colors --forceExit -@uifabric/utilities: PASS src/warn/warnControlledUsage.test.ts -@uifabric/utilities: PASS src/focus.test.tsx -@uifabric/utilities: PASS src/styled.test.tsx -@uifabric/utilities: PASS src/customizations/Customizer.test.tsx -@uifabric/utilities: PASS src/EventGroup.test.ts -@uifabric/utilities: PASS src/array.test.ts -@uifabric/utilities: PASS src/math.test.ts -@uifabric/utilities: PASS src/warn/warn.test.ts -@uifabric/utilities: PASS src/dom/dom.test.ts -@uifabric/utilities: PASS src/customizations/customizable.test.tsx -@uifabric/utilities: PASS src/initials.test.ts -@uifabric/utilities: PASS src/selection/Selection.test.ts -@uifabric/utilities: PASS src/initializeFocusRects.test.ts -@uifabric/utilities: PASS src/memoize.test.ts -@uifabric/utilities: PASS src/rtl.test.ts -@uifabric/utilities: PASS src/osDetector.test.ts -@uifabric/utilities: PASS src/mobileDetector.test.ts -@uifabric/utilities: PASS src/aria.test.ts -@uifabric/utilities: PASS src/setFocusVisibility.test.ts -@uifabric/utilities: PASS src/properties.test.ts -@uifabric/utilities: PASS src/asAsync.test.tsx -@uifabric/utilities: PASS src/object.test.ts -@uifabric/utilities: PASS src/classNamesFunction.test.ts -@uifabric/utilities: PASS src/merge.test.ts -@uifabric/utilities: PASS src/customizations/Customizations.test.ts -@uifabric/utilities: PASS src/safeSetTimeout.test.tsx -@uifabric/utilities: PASS src/safeRequestAnimationFrame.test.tsx -@uifabric/utilities: PASS src/overflow.test.ts -@uifabric/utilities: PASS src/appendFunction.test.ts -@uifabric/utilities: PASS src/controlled.test.ts -@uifabric/utilities: PASS src/extendComponent.test.tsx -@uifabric/utilities: PASS src/initializeComponentRef.test.tsx -@uifabric/utilities: PASS src/BaseComponent.test.tsx -@uifabric/utilities: PASS src/keyboard.test.ts @uifabric/utilities: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/utilities/lib/index.d.ts' -@uifabric/utilities: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. +@uifabric/utilities: Done in ?s. +@uifabric/react-hooks: yarn run vX.X.X +@uifabric/react-hooks: $ just-scripts build +@uifabric/react-hooks: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/react-hooks/tsconfig.json +@uifabric/react-hooks: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/react-hooks/tsconfig.json" +@uifabric/react-hooks: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/react-hooks/tsconfig.json +@uifabric/react-hooks: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/react-hooks/tsconfig.json" +@uifabric/react-hooks: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/react-hooks/lib/index.d.ts' +@uifabric/react-hooks: Done in ?s. +@uifabric/styling: yarn run vX.X.X +@uifabric/styling: $ just-scripts build +@uifabric/styling: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] +@uifabric/styling: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/styling/tsconfig.json +@uifabric/styling: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/styling/tsconfig.json" +@uifabric/styling: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/styling/tsconfig.json +@uifabric/styling: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/styling/tsconfig.json" +@uifabric/styling: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/styling/lib/index.d.ts' +@uifabric/styling: Done in ?s. +@uifabric/file-type-icons: yarn run vX.X.X +@uifabric/file-type-icons: $ just-scripts build +@uifabric/file-type-icons: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] +@uifabric/file-type-icons: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/file-type-icons/tsconfig.json +@uifabric/file-type-icons: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/file-type-icons/tsconfig.json" +@uifabric/file-type-icons: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/file-type-icons/tsconfig.json +@uifabric/file-type-icons: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/file-type-icons/tsconfig.json" +@uifabric/file-type-icons: Done in ?s. +@uifabric/foundation: yarn run vX.X.X +@uifabric/foundation: $ just-scripts build +@uifabric/foundation: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] +@uifabric/foundation: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/foundation/tsconfig.json +@uifabric/foundation: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/foundation/tsconfig.json" +@uifabric/foundation: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/foundation/tsconfig.json +@uifabric/foundation: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/foundation/tsconfig.json" +@uifabric/foundation: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/foundation/lib/index.d.ts' +@uifabric/foundation: Done in ?s. +@uifabric/icons: yarn run vX.X.X +@uifabric/icons: $ just-scripts build +@uifabric/icons: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] +@uifabric/icons: [XX:XX:XX XM] ■ Copying [src/**/*.json] to '/office-ui-fabric-react/packages/icons/lib' +@uifabric/icons: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/icons/tsconfig.json +@uifabric/icons: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/icons/tsconfig.json" +@uifabric/icons: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/icons/tsconfig.json +@uifabric/icons: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/icons/tsconfig.json" +@uifabric/icons: [XX:XX:XX XM] ■ Extracting Public API surface from '/office-ui-fabric-react/packages/icons/lib/index.d.ts' +@uifabric/icons: Done in ?s. +office-ui-fabric-react: yarn run vX.X.X +office-ui-fabric-react: $ just-scripts build +office-ui-fabric-react: [XX:XX:XX XM] ■ Removing [lib, temp, dist, lib-amd, lib-commonjs, lib-es2015, coverage, src/**/*.scss.ts] +office-ui-fabric-react: [XX:XX:XX XM] ■ Copying [../../node_modules/office-ui-fabric-core/dist/sass/**/*, src/common/_highContrast.scss, src/common/_i18n.scss, src/common/_semanticSlots.scss, src/common/_themeOverrides.scss, src/common/_legacyThemePalette.scss, src/common/_effects.scss, src/common/_themeVariables.scss, src/common/ThemingSass.scss] to '/office-ui-fabric-react/packages/office-ui-fabric-react/dist/sass' +office-ui-fabric-react: [XX:XX:XX XM] ■ Copying [../../node_modules/office-ui-fabric-core/dist/css/**/*] to '/office-ui-fabric-react/packages/office-ui-fabric-react/dist/css' +office-ui-fabric-react: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/office-ui-fabric-react/tsconfig.json +office-ui-fabric-react: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib-commonjs --module commonjs --project "/office-ui-fabric-react/packages/office-ui-fabric-react/tsconfig.json" +office-ui-fabric-react: [XX:XX:XX XM] ■ Running /office-ui-fabric-react/node_modules/typescript/lib/tsc.js with /office-ui-fabric-react/packages/office-ui-fabric-react/tsconfig.json +office-ui-fabric-react: [XX:XX:XX XM] ■ Executing: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/office-ui-fabric-react/tsconfig.json" +office-ui-fabric-react: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. @@ -221,32 +139,92 @@ lerna info Executing command in 42 packages: "yarn run build" @uifabric/example-data: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect @uifabric/set-version: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect @uifabric/merge-styles: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect -@uifabric/merge-styles: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. -@uifabric/merge-styles: Force exiting Jest -@uifabric/merge-styles: -@uifabric/merge-styles: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished? -@uifabric/jest-serializer-merge-styles: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. -@uifabric/jest-serializer-merge-styles: Force exiting Jest -@uifabric/jest-serializer-merge-styles: -@uifabric/jest-serializer-merge-styles: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished? +@uifabric/jest-serializer-merge-styles: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect @uifabric/utilities: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect -@uifabric/utilities: ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. -@uifabric/utilities: Force exiting Jest -@uifabric/utilities: -@uifabric/utilities: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished? -@uifabric/utilities: Warning: You have changed the public API signature for this project. Please copy the file "temp/utilities.api.md" to "etc/utilities.api.md", or perform a local build (which does this automatically). See the Git repo documentation for more info. -@uifabric/utilities: [XX:XX:XX XM] x Error detected while running '_wrapFunction' -@uifabric/utilities: [XX:XX:XX XM] x ------------------------------------ -@uifabric/utilities: [XX:XX:XX XM] x Error: The public API file is out of date. Please run the API snapshot and commit the updated API file. -@uifabric/utilities: at apiExtractorVerify (/office-ui-fabric-react/node_modules/just-scripts/lib/tasks/apiExtractorTask.js:26:19) -@uifabric/utilities: at _wrapFunction (/office-ui-fabric-react/node_modules/just-task/lib/wrapTask.js:13:36) -@uifabric/utilities: at verify-api-extractor (/office-ui-fabric-react/node_modules/undertaker/lib/set-task.js:13:15) -@uifabric/utilities: at _wrapFunction (/office-ui-fabric-react/node_modules/just-task/lib/wrapTask.js:10:16) -@uifabric/utilities: at bound (domain.js:419:14) -@uifabric/utilities: at runBound (domain.js:432:12) -@uifabric/utilities: at asyncRunner (/office-ui-fabric-react/node_modules/async-done/index.js:55:18) -@uifabric/utilities: at processTicksAndRejections (internal/process/task_queues.js:75:11) -@uifabric/utilities: [XX:XX:XX XM] x ------------------------------------ -@uifabric/utilities: [XX:XX:XX XM] x Error previously detected. See above for error messages. -@uifabric/utilities: error Command failed with exit code 1. -lerna ERR! yarn run build exited 1 in '@uifabric/utilities' +@uifabric/react-hooks: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect +@uifabric/styling: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect +@uifabric/file-type-icons: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect +@uifabric/foundation: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect +@uifabric/icons: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect +office-ui-fabric-react: [XX:XX:XX XM] ▲ One of these [node-sass, postcss, autoprefixer] is not installed, so this task has no effect +office-ui-fabric-react: [XX:XX:XX XM] x Error detected while running 'ts:esm' +office-ui-fabric-react: [XX:XX:XX XM] x ------------------------------------ +office-ui-fabric-react: [XX:XX:XX XM] x Error: Command failed: /usr/local/bin/node "/office-ui-fabric-react/node_modules/typescript/lib/tsc.js" --pretty --target es5 --outDir lib --module esnext --project "/office-ui-fabric-react/packages/office-ui-fabric-react/tsconfig.json" +office-ui-fabric-react: at ChildProcess.exithandler (child_process.js:295:12) +office-ui-fabric-react: at ChildProcess.emit (events.js:223:5) +office-ui-fabric-react: at ChildProcess.EventEmitter.emit (domain.js:498:23) +office-ui-fabric-react: at maybeClose (internal/child_process.js:1021:16) +office-ui-fabric-react: at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) +office-ui-fabric-react: [XX:XX:XX XM] x stdout: +office-ui-fabric-react: [XX:XX:XX XM] x src/components/Calendar/Calendar.tsx:8:31 - error TS2307: Cannot find module './Calendar.scss'. +office-ui-fabric-react: 8 import * as stylesImport from './Calendar.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/Calendar/CalendarDay.tsx:21:31 - error TS2307: Cannot find module './Calendar.scss'. +office-ui-fabric-react: 21 import * as stylesImport from './Calendar.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/Calendar/CalendarMonth.tsx:15:31 - error TS2307: Cannot find module './Calendar.scss'. +office-ui-fabric-react: 15 import * as stylesImport from './Calendar.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/Calendar/CalendarYear.tsx:5:31 - error TS2307: Cannot find module './Calendar.scss'. +office-ui-fabric-react: 5 import * as stylesImport from './Calendar.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.base.tsx:70:38 - error TS2554: Expected 1 arguments, but got 2. +office-ui-fabric-react: 70 {onRenderField(this.props, this._onRenderField)} +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/ComboBox/ComboBox.tsx:457:13 - error TS2554: Expected 1 arguments, but got 2. +office-ui-fabric-react: 457 this._onRenderContainer +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/ContextualMenu/examples/ContextualMenu.Icon.Example.tsx:12:31 - error TS2307: Cannot find module './ContextualMenuExample.scss'. +office-ui-fabric-react: 12 import * as stylesImport from './ContextualMenuExample.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/ExtendedPicker/BaseExtendedPicker.tsx:5:31 - error TS2307: Cannot find module './BaseExtendedPicker.scss'. +office-ui-fabric-react: 5 import * as stylesImport from './BaseExtendedPicker.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/FloatingPicker/BaseFloatingPicker.tsx:2:31 - error TS2307: Cannot find module './BaseFloatingPicker.scss'. +office-ui-fabric-react: 2 import * as stylesImport from './BaseFloatingPicker.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/FloatingPicker/PeoplePicker/PeoplePickerItems/SelectedItemDefault.tsx:8:31 - error TS2307: Cannot find module './PickerItemsDefault.scss'. +office-ui-fabric-react: 8 import * as stylesImport from './PickerItemsDefault.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/FloatingPicker/PeoplePicker/PeoplePickerItems/SuggestionItemDefault.tsx:7:31 - error TS2307: Cannot find module '../PeoplePicker.scss'. +office-ui-fabric-react: 7 import * as stylesImport from '../PeoplePicker.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/FloatingPicker/Suggestions/SuggestionsControl.tsx:12:31 - error TS2307: Cannot find module './SuggestionsControl.scss'. +office-ui-fabric-react: 12 import * as stylesImport from './SuggestionsControl.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/FloatingPicker/Suggestions/SuggestionsCore.tsx:5:31 - error TS2307: Cannot find module './SuggestionsCore.scss'. +office-ui-fabric-react: 5 import * as stylesImport from './SuggestionsCore.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/Layer/examples/Layer.Basic.Example.tsx:2:25 - error TS2307: Cannot find module './Layer.Example.scss'. +office-ui-fabric-react: 2 import * as styles from './Layer.Example.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/Layer/examples/Layer.Hosted.Example.tsx:8:25 - error TS2307: Cannot find module './Layer.Example.scss'. +office-ui-fabric-react: 8 import * as styles from './Layer.Example.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/SelectedItemsList/SelectedPeopleList/Items/ExtendedSelectedItem.tsx:8:31 - error TS2307: Cannot find module './ExtendedSelectedItem.scss'. +office-ui-fabric-react: 8 import * as stylesImport from './ExtendedSelectedItem.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/pickers/BasePicker.tsx:14:31 - error TS2307: Cannot find module './BasePicker.scss'. +office-ui-fabric-react: 14 import * as stylesImport from './BasePicker.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/pickers/PeoplePicker/PeoplePickerItems/SelectedItemDefault.tsx:9:31 - error TS2307: Cannot find module './PickerItemsDefault.scss'. +office-ui-fabric-react: 9 import * as stylesImport from './PickerItemsDefault.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/pickers/PeoplePicker/PeoplePickerItems/SelectedItemWithMenu.tsx:9:31 - error TS2307: Cannot find module './PickerItemsDefault.scss'. +office-ui-fabric-react: 9 import * as stylesImport from './PickerItemsDefault.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/pickers/PeoplePicker/PeoplePickerItems/SuggestionItemDefault.tsx:7:31 - error TS2307: Cannot find module './SuggestionItemDefault.scss'. +office-ui-fabric-react: 7 import * as stylesImport from './SuggestionItemDefault.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/pickers/Suggestions/Suggestions.tsx:13:31 - error TS2307: Cannot find module './Suggestions.scss'. +office-ui-fabric-react: 13 import * as stylesImport from './Suggestions.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: src/components/pickers/Suggestions/SuggestionsItem.tsx:8:31 - error TS2307: Cannot find module './Suggestions.scss'. +office-ui-fabric-react: 8 import * as stylesImport from './Suggestions.scss'; +office-ui-fabric-react: ~~~~~~~~~~~~~~~~~~~~ +office-ui-fabric-react: Found 22 errors. +office-ui-fabric-react: [XX:XX:XX XM] x ------------------------------------ +office-ui-fabric-react: [XX:XX:XX XM] x Error previously detected. See above for error messages. +office-ui-fabric-react: [XX:XX:XX XM] x Other tasks that did not complete: [ts:commonjs] +office-ui-fabric-react: error Command failed with exit code 1. +lerna ERR! yarn run build exited 1 in 'office-ui-fabric-react' diff --git a/tests/baselines/reference/docker/vscode.log b/tests/baselines/reference/docker/vscode.log index 45c7728bdb5d0..3b2d10060c553 100644 --- a/tests/baselines/reference/docker/vscode.log +++ b/tests/baselines/reference/docker/vscode.log @@ -1,11 +1,28 @@ -Exit Code: 0 +Exit Code: 1 Standard output: yarn run vX.X.X $ gulp compile --max_old_space_size=4095 [XX:XX:XX] Node flags detected: --max_old_space_size=4095 [XX:XX:XX] Using gulpfile /vscode/gulpfile.js -Done in ?s. +[XX:XX:XX] Error: /vscode/src/vs/workbench/contrib/remote/browser/remote.ts(637,8): Parameter 'choice' implicitly has an 'any' type. +[XX:XX:XX] Error: /vscode/src/vs/workbench/contrib/remote/browser/remote.ts(652,8): Parameter 'choice' implicitly has an 'any' type. +[XX:XX:XX] Error: /vscode/src/vs/workbench/contrib/remote/browser/remote.ts(637,8): Parameter 'choice' implicitly has an 'any' type. +[XX:XX:XX] Error: /vscode/src/vs/workbench/contrib/remote/browser/remote.ts(652,8): Parameter 'choice' implicitly has an 'any' type. +info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Standard error: +[XX:XX:XX] 'compile' errored after +[XX:XX:XX] Error: Found 2 errors + at Stream. (/vscode/build/lib/reporter.js:74:29) + at _end (/vscode/node_modules/through/index.js:65:9) + at Stream.stream.end (/vscode/node_modules/through/index.js:74:5) + at Stream.onend (internal/streams/legacy.js:42:10) + at Stream.emit (events.js:203:15) + at Stream.EventEmitter.emit (domain.js:466:23) + at drain (/vscode/node_modules/through/index.js:34:23) + at Stream.stream.queue.stream.push (/vscode/node_modules/through/index.js:45:5) + at Stream.end (/vscode/node_modules/through/index.js:15:35) + at _end (/vscode/node_modules/through/index.js:65:9) +error Command failed with exit code 1. diff --git a/tests/baselines/reference/docker/xterm.js.log b/tests/baselines/reference/docker/xterm.js.log index 7fa6b68dfe85f..00081de08ca3a 100644 --- a/tests/baselines/reference/docker/xterm.js.log +++ b/tests/baselines/reference/docker/xterm.js.log @@ -15,6 +15,10 @@ node_modules/@types/ws/index.d.ts(44,39): error TS2694: Namespace '"url"' has no node_modules/@types/ws/index.d.ts(45,39): error TS2694: Namespace '"url"' has no exported member 'URL'. node_modules/@types/ws/index.d.ts(44,39): error TS2694: Namespace '"url"' has no exported member 'URL'. node_modules/@types/ws/index.d.ts(45,39): error TS2694: Namespace '"url"' has no exported member 'URL'. +node_modules/@types/ws/index.d.ts(44,39): error TS2694: Namespace '"url"' has no exported member 'URL'. +node_modules/@types/ws/index.d.ts(45,39): error TS2694: Namespace '"url"' has no exported member 'URL'. +node_modules/@types/ws/index.d.ts(44,39): error TS2694: Namespace '"url"' has no exported member 'URL'. +node_modules/@types/ws/index.d.ts(45,39): error TS2694: Namespace '"url"' has no exported member 'URL'. diff --git a/tests/baselines/reference/user/chrome-devtools-frontend.log b/tests/baselines/reference/user/chrome-devtools-frontend.log index 0a62d4af67571..10b7717b12d84 100644 --- a/tests/baselines/reference/user/chrome-devtools-frontend.log +++ b/tests/baselines/reference/user/chrome-devtools-frontend.log @@ -680,6 +680,7 @@ node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighth Type 'number' is not assignable to type 'void'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(19744,7): error TS2339: Property 'expected' does not exist on type 'Error'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(20005,8): error TS2339: Property 'runLighthouseForConnection' does not exist on type 'Window & typeof globalThis'. +node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(20015,15): error TS2554: Expected 0 arguments, but got 1. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(20035,8): error TS2339: Property 'runLighthouseInWorker' does not exist on type 'Window & typeof globalThis'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(20039,15): error TS2339: Property 'runLighthouseForConnection' does not exist on type 'Window & typeof globalThis'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(20046,8): error TS2339: Property 'getDefaultCategories' does not exist on type 'Window & typeof globalThis'. diff --git a/tests/baselines/reference/user/follow-redirects.log b/tests/baselines/reference/user/follow-redirects.log index 34010feffeb43..4a398936a3862 100644 --- a/tests/baselines/reference/user/follow-redirects.log +++ b/tests/baselines/reference/user/follow-redirects.log @@ -1,18 +1,21 @@ Exit Code: 1 Standard output: -node_modules/follow-redirects/index.js(82,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(83,10): error TS2339: Property 'abort' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(130,10): error TS2339: Property 'once' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(133,12): error TS2339: Property 'socket' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(143,8): error TS2339: Property 'once' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(144,8): error TS2339: Property 'once' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(214,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(253,16): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(303,12): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(337,35): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. +node_modules/follow-redirects/index.js(96,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(97,10): error TS2339: Property 'abort' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(144,10): error TS2339: Property 'once' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(147,12): error TS2339: Property 'socket' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(157,8): error TS2339: Property 'once' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(158,8): error TS2339: Property 'once' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(228,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(267,16): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(317,12): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(343,35): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'. -node_modules/follow-redirects/index.js(345,14): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(357,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(354,14): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(366,13): error TS2339: Property 'cause' does not exist on type 'CustomError'. +node_modules/follow-redirects/index.js(367,12): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(374,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(483,25): error TS2339: Property 'code' does not exist on type 'Error'. diff --git a/tests/baselines/reference/user/puppeteer.log b/tests/baselines/reference/user/puppeteer.log index 4694668e4349f..83f720a6fcc89 100644 --- a/tests/baselines/reference/user/puppeteer.log +++ b/tests/baselines/reference/user/puppeteer.log @@ -22,6 +22,7 @@ lib/Coverage.js(208,15): error TS2503: Cannot find namespace 'Protocol'. lib/EmulationManager.js(36,16): error TS2503: Cannot find namespace 'Protocol'. lib/ExecutionContext.js(26,15): error TS2503: Cannot find namespace 'Protocol'. lib/ExecutionContext.js(158,18): error TS2503: Cannot find namespace 'Protocol'. +lib/ExecutionContext.js(186,14): error TS2503: Cannot find namespace 'Protocol'. lib/FrameManager.js(151,15): error TS2503: Cannot find namespace 'Protocol'. lib/FrameManager.js(173,15): error TS2503: Cannot find namespace 'Protocol'. lib/FrameManager.js(230,15): error TS2503: Cannot find namespace 'Protocol'. @@ -42,7 +43,7 @@ lib/NetworkManager.js(295,15): error TS2503: Cannot find namespace 'Protocol'. lib/NetworkManager.js(319,15): error TS2503: Cannot find namespace 'Protocol'. lib/NetworkManager.js(529,15): error TS2503: Cannot find namespace 'Protocol'. lib/NetworkManager.js(668,15): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(94,33): error TS2345: Argument of type 'CDPSession' is not assignable to parameter of type 'Puppeteer.CDPSession'. +lib/Page.js(93,33): error TS2345: Argument of type 'CDPSession' is not assignable to parameter of type 'Puppeteer.CDPSession'. Types of property 'on' are incompatible. Type '(event: string | symbol, listener: (...args: any[]) => void) => CDPSession' is not assignable to type '(event: T, listener: (arg: any) => void) => CDPSession'. Types of parameters 'event' and 'event' are incompatible. @@ -52,20 +53,20 @@ lib/Page.js(94,33): error TS2345: Argument of type 'CDPSession' is not assignabl Type 'T' is not assignable to type 'symbol'. Type 'string | number | symbol' is not assignable to type 'symbol'. Type 'string' is not assignable to type 'symbol'. -lib/Page.js(147,15): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(220,15): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(388,20): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(451,7): error TS2740: Type '(...args: any[]) => Promise' is missing the following properties from type 'Window': applicationCache, clientInformation, closed, customElements, and 222 more. -lib/Page.js(461,9): error TS2349: This expression is not callable. +lib/Page.js(142,15): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(217,15): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(385,20): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(448,7): error TS2740: Type '(...args: any[]) => Promise' is missing the following properties from type 'Window': applicationCache, clientInformation, closed, customElements, and 222 more. +lib/Page.js(458,9): error TS2349: This expression is not callable. Type 'Window' has no call signatures. -lib/Page.js(497,15): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(507,22): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(520,15): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(530,15): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(555,15): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(608,14): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(944,19): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(1354,15): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(494,15): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(504,22): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(517,15): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(527,15): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(552,15): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(605,14): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(941,19): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(1352,15): error TS2503: Cannot find namespace 'Protocol'. lib/Target.js(23,15): error TS2503: Cannot find namespace 'Protocol'. lib/Target.js(87,7): error TS2322: Type 'Promise' is not assignable to type 'Promise'. Type 'Worker | Worker' is not assignable to type 'Worker'. diff --git a/tests/baselines/reference/user/sift.log b/tests/baselines/reference/user/sift.log index 198e2fd125bae..9ff40e8ee18ed 100644 --- a/tests/baselines/reference/user/sift.log +++ b/tests/baselines/reference/user/sift.log @@ -1,6 +1,52 @@ Exit Code: 1 Standard output: -node_modules/sift/index.d.ts(80,15): error TS2307: Cannot find module './core'. +node_modules/sift/src/core.ts(13,3): error TS7010: 'reset', which lacks return-type annotation, implicitly has an 'any' return type. +node_modules/sift/src/core.ts(14,3): error TS7010: 'next', which lacks return-type annotation, implicitly has an 'any' return type. +node_modules/sift/src/core.ts(48,27): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +node_modules/sift/src/core.ts(85,3): error TS2564: Property 'success' has no initializer and is not definitely assigned in the constructor. +node_modules/sift/src/core.ts(86,3): error TS2564: Property 'done' has no initializer and is not definitely assigned in the constructor. +node_modules/sift/src/core.ts(99,12): error TS7010: 'next', which lacks return-type annotation, implicitly has an 'any' return type. +node_modules/sift/src/core.ts(103,3): error TS2564: Property 'success' has no initializer and is not definitely assigned in the constructor. +node_modules/sift/src/core.ts(104,3): error TS2564: Property 'done' has no initializer and is not definitely assigned in the constructor. +node_modules/sift/src/core.ts(126,12): error TS7010: 'next', which lacks return-type annotation, implicitly has an 'any' return type. +node_modules/sift/src/core.ts(179,7): error TS2345: Argument of type '(value: any, key: string | number, owner: any) => boolean' is not assignable to parameter of type 'Tester'. + Types of parameters 'key' and 'key' are incompatible. + Type 'string | number | undefined' is not assignable to type 'string | number'. + Type 'undefined' is not assignable to type 'string | number'. +node_modules/sift/src/core.ts(195,30): error TS7006: Parameter 'a' implicitly has an 'any' type. +node_modules/sift/src/core.ts(200,12): error TS7006: Parameter 'b' implicitly has an 'any' type. +node_modules/sift/src/core.ts(203,10): error TS7006: Parameter 'b' implicitly has an 'any' type. +node_modules/sift/src/core.ts(207,11): error TS2564: Property '_test' has no initializer and is not definitely assigned in the constructor. +node_modules/sift/src/core.ts(211,8): error TS7006: Parameter 'item' implicitly has an 'any' type. +node_modules/sift/src/core.ts(242,51): error TS7051: Parameter has a name but no type. Did you mean 'arg0: any'? +node_modules/sift/src/core.ts(248,9): error TS7006: Parameter 'b' implicitly has an 'any' type. +node_modules/sift/src/core.ts(261,13): error TS7006: Parameter 'a' implicitly has an 'any' type. +node_modules/sift/src/core.ts(261,16): error TS7006: Parameter 'b' implicitly has an 'any' type. +node_modules/sift/src/core.ts(283,31): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +node_modules/sift/src/core.ts(290,12): error TS7022: 'selfOperations' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. +node_modules/sift/src/core.ts(334,31): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +node_modules/sift/src/core.ts(336,9): error TS7034: Variable 'nestedOperations' implicitly has type 'any[]' in some locations where its type cannot be determined. +node_modules/sift/src/core.ts(339,29): error TS7005: Variable 'nestedOperations' implicitly has an 'any[]' type. +node_modules/sift/src/operations.ts(18,11): error TS2564: Property '_test' has no initializer and is not definitely assigned in the constructor. +node_modules/sift/src/operations.ts(35,11): error TS2564: Property '_queryOperation' has no initializer and is not definitely assigned in the constructor. +node_modules/sift/src/operations.ts(61,11): error TS2564: Property '_ops' has no initializer and is not definitely assigned in the constructor. +node_modules/sift/src/operations.ts(63,33): error TS7006: Parameter 'op' implicitly has an 'any' type. +node_modules/sift/src/operations.ts(147,5): error TS7006: Parameter 'b' implicitly has an 'any' type. +node_modules/sift/src/operations.ts(166,5): error TS7006: Parameter 'b' implicitly has an 'any' type. +node_modules/sift/src/operations.ts(174,23): error TS7006: Parameter 'b' implicitly has an 'any' type. +node_modules/sift/src/operations.ts(181,7): error TS7034: Variable 'test' implicitly has type 'any' in some locations where its type cannot be determined. +node_modules/sift/src/operations.ts(185,15): error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig. +node_modules/sift/src/operations.ts(193,30): error TS7006: Parameter 'b' implicitly has an 'any' type. +node_modules/sift/src/operations.ts(193,35): error TS7005: Variable 'test' implicitly has an 'any' type. +node_modules/sift/src/utils.ts(2,27): error TS7006: Parameter 'a' implicitly has an 'any' type. +node_modules/sift/src/utils.ts(2,30): error TS7006: Parameter 'b' implicitly has an 'any' type. +node_modules/sift/src/utils.ts(3,36): error TS7006: Parameter 'type' implicitly has an 'any' type. +node_modules/sift/src/utils.ts(5,19): error TS7006: Parameter 'value' implicitly has an 'any' type. +node_modules/sift/src/utils.ts(10,22): error TS7006: Parameter 'value' implicitly has an 'any' type. +node_modules/sift/src/utils.ts(12,27): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions. +node_modules/sift/src/utils.ts(27,32): error TS7006: Parameter 'value' implicitly has an 'any' type. +node_modules/sift/src/utils.ts(38,24): error TS7006: Parameter 'a' implicitly has an 'any' type. +node_modules/sift/src/utils.ts(38,27): error TS7006: Parameter 'b' implicitly has an 'any' type. diff --git a/tests/baselines/reference/user/uglify-js.log b/tests/baselines/reference/user/uglify-js.log index ba4059e5ed215..cee210e47b94c 100644 --- a/tests/baselines/reference/user/uglify-js.log +++ b/tests/baselines/reference/user/uglify-js.log @@ -9,76 +9,76 @@ node_modules/uglify-js/lib/ast.js(965,25): error TS2339: Property 'self' does no node_modules/uglify-js/lib/ast.js(966,37): error TS2339: Property 'parent' does not exist on type 'TreeWalker'. node_modules/uglify-js/lib/ast.js(984,31): error TS2339: Property 'parent' does not exist on type 'TreeWalker'. node_modules/uglify-js/lib/ast.js(988,29): error TS2339: Property 'parent' does not exist on type 'TreeWalker'. -node_modules/uglify-js/lib/compress.js(187,42): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(535,41): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(875,33): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(1139,38): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(1155,51): error TS2349: This expression is not callable. +node_modules/uglify-js/lib/compress.js(188,42): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(536,41): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(876,33): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(1141,38): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(1156,51): error TS2349: This expression is not callable. Not all constituents of type 'true | ((node: any, tw: any) => any)' are callable. Type 'true' has no call signatures. -node_modules/uglify-js/lib/compress.js(1229,53): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(1250,53): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(1296,112): error TS2454: Variable 'args' is used before being assigned. -node_modules/uglify-js/lib/compress.js(1297,29): error TS2532: Object is possibly 'undefined'. -node_modules/uglify-js/lib/compress.js(1315,29): error TS2322: Type 'false' is not assignable to type 'number'. -node_modules/uglify-js/lib/compress.js(1323,29): error TS2322: Type 'false' is not assignable to type 'never'. -node_modules/uglify-js/lib/compress.js(1441,53): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(1552,38): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(1576,38): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(1591,46): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(1622,39): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(1654,38): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(1670,39): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(1767,42): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(1798,41): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(1920,49): error TS2345: Argument of type 'number[]' is not assignable to parameter of type '[number, number, ...never[]]'. +node_modules/uglify-js/lib/compress.js(1230,53): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(1251,53): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(1297,112): error TS2454: Variable 'args' is used before being assigned. +node_modules/uglify-js/lib/compress.js(1298,29): error TS2532: Object is possibly 'undefined'. +node_modules/uglify-js/lib/compress.js(1316,29): error TS2322: Type 'false' is not assignable to type 'number'. +node_modules/uglify-js/lib/compress.js(1324,29): error TS2322: Type 'false' is not assignable to type 'never'. +node_modules/uglify-js/lib/compress.js(1469,53): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(1580,38): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(1604,38): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(1619,46): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(1650,39): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(1682,38): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(1698,39): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(1795,42): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(1826,41): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(1948,49): error TS2345: Argument of type 'number[]' is not assignable to parameter of type '[number, number, ...never[]]'. Type 'number[]' is missing the following properties from type '[number, number, ...never[]]': 0, 1 -node_modules/uglify-js/lib/compress.js(2251,59): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(2289,53): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[number, number, ...never[]]'. +node_modules/uglify-js/lib/compress.js(2279,59): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(2317,53): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[number, number, ...never[]]'. Type 'any[]' is missing the following properties from type '[number, number, ...never[]]': 0, 1 -node_modules/uglify-js/lib/compress.js(2437,34): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3206,55): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'. -node_modules/uglify-js/lib/compress.js(3207,25): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/compress.js(3207,55): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -node_modules/uglify-js/lib/compress.js(3207,56): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/compress.js(3248,42): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3327,33): error TS2532: Object is possibly 'undefined'. -node_modules/uglify-js/lib/compress.js(3734,38): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3760,29): error TS2322: Type '"f"' is not assignable to type 'boolean'. -node_modules/uglify-js/lib/compress.js(3893,33): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3946,29): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3964,29): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(4079,63): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(4209,12): error TS2339: Property 'push' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(4305,38): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(4326,24): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(4336,28): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(4421,32): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(4660,17): error TS2447: The '|=' operator is not allowed for boolean types. Consider using '||' instead. -node_modules/uglify-js/lib/compress.js(4728,45): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(4839,33): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(4931,21): error TS2403: Subsequent variable declarations must have the same type. Variable 'body' must be of type 'any[]', but here has type 'any'. -node_modules/uglify-js/lib/compress.js(4946,21): error TS2403: Subsequent variable declarations must have the same type. Variable 'body' must be of type 'any[]', but here has type 'any'. -node_modules/uglify-js/lib/compress.js(5057,33): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(5207,17): error TS2403: Subsequent variable declarations must have the same type. Variable 'body' must be of type 'any[]', but here has type 'any'. -node_modules/uglify-js/lib/compress.js(5300,37): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(5549,57): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[string | RegExp, (string | undefined)?]'. +node_modules/uglify-js/lib/compress.js(2465,34): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3234,55): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'. +node_modules/uglify-js/lib/compress.js(3235,25): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/compress.js(3235,55): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +node_modules/uglify-js/lib/compress.js(3235,56): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/compress.js(3276,42): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3355,33): error TS2532: Object is possibly 'undefined'. +node_modules/uglify-js/lib/compress.js(3762,38): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3788,29): error TS2322: Type '"f"' is not assignable to type 'boolean'. +node_modules/uglify-js/lib/compress.js(3921,33): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3974,29): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3992,29): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(4107,63): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(4237,12): error TS2339: Property 'push' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(4333,38): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(4354,24): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(4364,28): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(4449,32): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(4688,17): error TS2447: The '|=' operator is not allowed for boolean types. Consider using '||' instead. +node_modules/uglify-js/lib/compress.js(4756,45): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(4867,33): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(4959,21): error TS2403: Subsequent variable declarations must have the same type. Variable 'body' must be of type 'any[]', but here has type 'any'. +node_modules/uglify-js/lib/compress.js(4974,21): error TS2403: Subsequent variable declarations must have the same type. Variable 'body' must be of type 'any[]', but here has type 'any'. +node_modules/uglify-js/lib/compress.js(5085,33): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(5235,17): error TS2403: Subsequent variable declarations must have the same type. Variable 'body' must be of type 'any[]', but here has type 'any'. +node_modules/uglify-js/lib/compress.js(5328,37): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(5584,57): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[string | RegExp, (string | undefined)?]'. Property '0' is missing in type 'any[]' but required in type '[string | RegExp, (string | undefined)?]'. -node_modules/uglify-js/lib/compress.js(5713,45): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(5720,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'code' must be of type 'string', but here has type '{ get: () => string; toString: () => string; indent: (half: any) => void; indentation: () => number; current_width: () => number; should_break: () => boolean; has_parens: () => boolean; newline: () => void; print: (str: any) => void; ... 23 more ...; parent: (n: any) => any; }'. -node_modules/uglify-js/lib/compress.js(5724,36): error TS2532: Object is possibly 'undefined'. -node_modules/uglify-js/lib/compress.js(5729,41): error TS2339: Property 'get' does not exist on type 'string'. -node_modules/uglify-js/lib/compress.js(6236,18): error TS2454: Variable 'is_strict_comparison' is used before being assigned. -node_modules/uglify-js/lib/compress.js(6860,29): error TS2367: This condition will always return 'false' since the types 'boolean' and 'string' have no overlap. -node_modules/uglify-js/lib/compress.js(6902,47): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(6983,39): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(7055,39): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(7061,41): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(7548,43): error TS2454: Variable 'property' is used before being assigned. -node_modules/uglify-js/lib/compress.js(7563,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'value' must be of type 'number', but here has type 'any'. -node_modules/uglify-js/lib/compress.js(7566,46): error TS2339: Property 'has_side_effects' does not exist on type 'number'. -node_modules/uglify-js/lib/compress.js(7572,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'value' must be of type 'number', but here has type 'any'. -node_modules/uglify-js/lib/compress.js(7605,34): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(5748,45): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(5755,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'code' must be of type 'string', but here has type '{ get: () => string; toString: () => string; indent: (half: any) => void; indentation: () => number; current_width: () => number; should_break: () => boolean; has_parens: () => boolean; newline: () => void; print: (str: any) => void; ... 23 more ...; parent: (n: any) => any; }'. +node_modules/uglify-js/lib/compress.js(5759,36): error TS2532: Object is possibly 'undefined'. +node_modules/uglify-js/lib/compress.js(5764,41): error TS2339: Property 'get' does not exist on type 'string'. +node_modules/uglify-js/lib/compress.js(6279,18): error TS2454: Variable 'is_strict_comparison' is used before being assigned. +node_modules/uglify-js/lib/compress.js(6903,29): error TS2367: This condition will always return 'false' since the types 'boolean' and 'string' have no overlap. +node_modules/uglify-js/lib/compress.js(6945,47): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(7026,39): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(7098,39): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(7104,41): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(7665,43): error TS2454: Variable 'property' is used before being assigned. +node_modules/uglify-js/lib/compress.js(7680,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'value' must be of type 'number', but here has type 'any'. +node_modules/uglify-js/lib/compress.js(7683,46): error TS2339: Property 'has_side_effects' does not exist on type 'number'. +node_modules/uglify-js/lib/compress.js(7689,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'value' must be of type 'number', but here has type 'any'. +node_modules/uglify-js/lib/compress.js(7722,34): error TS2554: Expected 0 arguments, but got 1. node_modules/uglify-js/lib/minify.js(186,75): error TS2339: Property 'compress' does not exist on type 'Compressor'. node_modules/uglify-js/lib/mozilla-ast.js(566,33): error TS2554: Expected 0 arguments, but got 1. node_modules/uglify-js/lib/output.js(459,37): error TS2554: Expected 0 arguments, but got 1. diff --git a/tests/baselines/reference/user/webpack.log b/tests/baselines/reference/user/webpack.log index 244f3088778c4..5540a0655dfbf 100644 --- a/tests/baselines/reference/user/webpack.log +++ b/tests/baselines/reference/user/webpack.log @@ -4,27 +4,11 @@ lib/ContextModule.js(436,34): error TS2341: Property 'moduleGraph' is private an lib/ContextModule.js(465,34): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'. lib/ContextModule.js(767,34): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'. lib/Dependency.js(139,29): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'. -lib/ExternalModule.js(284,54): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'. +lib/ExternalModule.js(285,54): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'. +lib/FileSystemInfo.js(373,4): error TS2345: Argument of type '({ type, context, path, expected }: { type: any; context: any; path: any; expected: any; }, callback: any) => void' is not assignable to parameter of type 'AsyncFunction<{ type: number; path: string; context?: string; expected?: string; }, Error>'. + Types of parameters '__0' and 'callback' are incompatible. + Type '(err?: Error, result?: { type: number; path: string; context?: string; expected?: string; }) => void' is missing the following properties from type '{ type: any; context: any; path: any; expected: any; }': type, context, path, expected lib/Module.js(625,34): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'. -lib/MultiCompiler.js(15,65): error TS2300: Duplicate identifier 'AsyncSeriesHook'. -lib/MultiCompiler.js(16,77): error TS2300: Duplicate identifier 'SyncBailHook'. -lib/MultiCompiler.js(17,70): error TS2300: Duplicate identifier 'WatchOptions'. -lib/MultiCompiler.js(18,37): error TS2300: Duplicate identifier 'Compiler'. -lib/MultiCompiler.js(19,34): error TS2300: Duplicate identifier 'Stats'. -lib/MultiCompiler.js(20,37): error TS2300: Duplicate identifier 'Watching'. -lib/MultiCompiler.js(21,52): error TS2300: Duplicate identifier 'InputFileSystem'. -lib/MultiCompiler.js(22,59): error TS2300: Duplicate identifier 'IntermediateFileSystem'. -lib/MultiCompiler.js(23,53): error TS2300: Duplicate identifier 'OutputFileSystem'. -lib/MultiCompiler.js(25,23): error TS2300: Duplicate identifier 'CompilerStatus'. -lib/MultiCompiler.js(33,14): error TS2300: Duplicate identifier 'Callback'. -lib/MultiCompiler.js(39,14): error TS2300: Duplicate identifier 'RunWithDependenciesHandler'. -lib/MultiCompiler.js(105,6): error TS2300: Duplicate identifier 'outputPath'. -lib/MultiCompiler.js(120,6): error TS2300: Duplicate identifier 'inputFileSystem'. -lib/MultiCompiler.js(124,6): error TS2300: Duplicate identifier 'outputFileSystem'. -lib/MultiCompiler.js(128,6): error TS2300: Duplicate identifier 'intermediateFileSystem'. -lib/MultiCompiler.js(135,6): error TS2300: Duplicate identifier 'inputFileSystem'. -lib/MultiCompiler.js(144,6): error TS2300: Duplicate identifier 'outputFileSystem'. -lib/MultiCompiler.js(153,6): error TS2300: Duplicate identifier 'intermediateFileSystem'. lib/dependencies/ExportsInfoDependency.js(81,9): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'. lib/dependencies/HarmonyExportImportedSpecifierDependency.js(567,40): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'. lib/dependencies/HarmonyImportDependency.js(195,37): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'. diff --git a/tests/cases/fourslash/convertFunctionToEs6Class_noQuickInfoForIIFE.ts b/tests/cases/fourslash/convertFunctionToEs6Class_noQuickInfoForIIFE.ts new file mode 100644 index 0000000000000..9211fecd911c3 --- /dev/null +++ b/tests/cases/fourslash/convertFunctionToEs6Class_noQuickInfoForIIFE.ts @@ -0,0 +1,14 @@ +/// + +// @allowJs: true + +// @Filename: /a.js +////(/*1*/function () { +//// const foo = () => { +//// this.x = 10; +//// }; +//// foo; +////})(); + +goTo.marker("1"); +verify.not.codeFixAvailable() diff --git a/tests/cases/fourslash/formatTsxClosingAfterJsxText.ts b/tests/cases/fourslash/formatTsxClosingAfterJsxText.ts new file mode 100644 index 0000000000000..36c5cd2688416 --- /dev/null +++ b/tests/cases/fourslash/formatTsxClosingAfterJsxText.ts @@ -0,0 +1,31 @@ +/// +// @Filename: foo.tsx +//// +////const a = ( +////
+//// text +////
+////) +////const b = ( +////
+//// text +//// twice +////
+////) +//// + + +format.document(); +verify.currentFileContentIs(` +const a = ( +
+ text +
+) +const b = ( +
+ text + twice +
+) +`);