Skip to content

Commit

Permalink
update telemetry tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Bamieh committed Jan 26, 2021
1 parent ec3bc7d commit 21b3059
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 142 deletions.
2 changes: 0 additions & 2 deletions packages/kbn-telemetry-tools/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@

export { runTelemetryCheck } from './cli/run_telemetry_check';
export { runTelemetryExtract } from './cli/run_telemetry_extract';
export { getInterfacesDescriptors } from './tools/interface_to_object';
export { loadProgram } from './tools/utils';

This file was deleted.

61 changes: 0 additions & 61 deletions packages/kbn-telemetry-tools/src/tools/interface_to_object.test.ts

This file was deleted.

53 changes: 0 additions & 53 deletions packages/kbn-telemetry-tools/src/tools/interface_to_object.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/kbn-telemetry-tools/src/tools/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@ export const readFileAsync = promisify(readFile);
export const writeFileAsync = promisify(writeFile);
export const globAsync = promisify(glob);

export function loadProgram(configPath: string, files: string[]) {
const tsConfig = ts.findConfigFile('./', ts.sys.fileExists, 'tsconfig.json');
if (!tsConfig) {
throw new Error('Could not find a valid tsconfig.json.');
}
const program = ts.createProgram(files, tsConfig as any);
const typeChecker = program.getTypeChecker();
return { program, typeChecker };
}

export function isPropertyWithKey(property: ts.Node, identifierName: string) {
if (ts.isPropertyAssignment(property) || ts.isMethodDeclaration(property)) {
if (ts.isIdentifier(property.name)) {
Expand Down

0 comments on commit 21b3059

Please sign in to comment.