Skip to content

Commit 9a1ffa6

Browse files
committed
Merge branch 'console' of github.com:firebase/firebase-js-sdk into feat/pipelines
2 parents bcfaf2a + e3e2078 commit 9a1ffa6

File tree

2 files changed

+6
-63
lines changed

2 files changed

+6
-63
lines changed

repo-scripts/prune-dts/prune-dts.ts

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -268,61 +268,6 @@ function prunePrivateImports<
268268
}
269269
}
270270

271-
/**
272-
* Iterates over the provided symbols and returns named declarations for these
273-
* symbols if they are missing from `currentClass`. This allows us to merge
274-
* class hierarchies for classes whose inherited types are not part of the
275-
* public API.
276-
*
277-
* This method relies on a private API in TypeScript's `codefix` package.
278-
*/
279-
function convertPropertiesForEnclosingClass(
280-
program: ts.Program,
281-
host: ts.CompilerHost,
282-
sourceFile: ts.SourceFile,
283-
parentClassSymbols: ts.Symbol[],
284-
currentClass: ts.ClassDeclaration
285-
): ts.ClassElement[] {
286-
const newMembers: ts.ClassElement[] = [];
287-
// The `codefix` package is not public but it does exactly what we want. It's
288-
// the same package that is used by VSCode to fill in missing members, which
289-
// is what we are using it for in this script. `codefix` handles missing
290-
// properties, methods and correctly deduces generics.
291-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
292-
(ts as any).codefix.createMissingMemberNodes(
293-
currentClass,
294-
parentClassSymbols,
295-
sourceFile,
296-
{ program, host },
297-
/* userPreferences= */ {},
298-
/* importAdder= */ undefined,
299-
(missingMember: ts.ClassElement) => {
300-
const originalSymbol = parentClassSymbols.find(
301-
symbol =>
302-
symbol.escapedName ==
303-
(missingMember.name as ts.Identifier).escapedText
304-
);
305-
if (originalSymbol) {
306-
const jsDocComment = extractJSDocComment(originalSymbol, newMembers);
307-
if (jsDocComment) {
308-
ts.setSyntheticLeadingComments(missingMember, [
309-
{
310-
kind: ts.SyntaxKind.MultiLineCommentTrivia,
311-
text: `*\n${jsDocComment}\n`,
312-
hasTrailingNewLine: true,
313-
pos: -1,
314-
end: -1
315-
}
316-
]);
317-
}
318-
319-
newMembers.push(missingMember);
320-
}
321-
}
322-
);
323-
return newMembers;
324-
}
325-
326271
/**
327272
* Iterates over the provided symbols and returns named declarations for these
328273
* symbols if they are missing from `currentInterface`. This allows us to merge

scripts/run_tests_in_ci.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ const argv = yargs.options({
6161
const dir = path.resolve(myPath);
6262
const { name } = require(`${dir}/package.json`);
6363

64-
let stdout = '';
65-
let stderr = '';
64+
let testProcessOutput = '';
6665
try {
6766
if (process.env?.BROWSERS) {
6867
for (const package in crossBrowserPackages) {
@@ -74,27 +73,26 @@ const argv = yargs.options({
7473
const testProcess = spawn('yarn', ['--cwd', dir, scriptName]);
7574

7675
testProcess.childProcess.stdout.on('data', data => {
77-
stdout += data.toString();
76+
testProcessOutput += '[stdout]' + data.toString();
7877
});
7978
testProcess.childProcess.stderr.on('data', data => {
80-
stderr += data.toString();
79+
testProcessOutput += '[stderr]' + data.toString();
8180
});
8281

8382
await testProcess;
8483
console.log('Success: ' + name);
85-
writeLogs('Success', name, stdout + '\n' + stderr);
84+
writeLogs('Success', name, testProcessOutput);
8685
} catch (e) {
8786
console.error('Failure: ' + name);
88-
console.log(stdout);
89-
console.error(stderr);
87+
console.error(testProcessOutput);
9088

9189
if (process.env.CHROME_VERSION_NOTES) {
9290
console.error();
9391
console.error(process.env.CHROME_VERSION_NOTES);
9492
console.error();
9593
}
9694

97-
writeLogs('Failure', name, stdout + '\n' + stderr);
95+
writeLogs('Failure', name, testProcessOutput);
9896

9997
process.exit(1);
10098
}

0 commit comments

Comments
 (0)