[6.x][kbn-pm] Update ora typings. Remove redundant types in commands. (#17099)

This commit is contained in:
Aleh Zasypkin 2018-03-12 14:07:10 +01:00 committed by GitHub
parent 1429347c97
commit c750011c2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 18 deletions

View file

@ -33252,7 +33252,6 @@ const CleanCommand = exports.CleanCommand = {
console.log(_chalk2.default.bold.red('\n\nDeleting directories:\n'));
for (const dir of directoriesToDelete) {
const deleting = (0, _del2.default)(dir, { force: true });
// Remove once https://github.com/DefinitelyTyped/DefinitelyTyped/pull/23699 is merged.
_ora2.default.promise(deleting, (0, _path.relative)(rootPath, dir));
yield deleting;
}

View file

@ -24,7 +24,7 @@
"@types/log-symbols": "^2.0.0",
"@types/mkdirp": "^0.5.2",
"@types/node": "^8.9.4",
"@types/ora": "^1.3.1",
"@types/ora": "^1.3.2",
"@types/read-pkg": "^3.0.0",
"@types/strip-ansi": "^3.0.0",
"@types/strong-log-transformer": "^1.0.0",

View file

@ -1,10 +1,6 @@
import chalk from 'chalk';
import {
ProjectGraph,
ProjectMap,
topologicallyBatchProjects,
} from '../utils/projects';
import { topologicallyBatchProjects } from '../utils/projects';
import { linkProjectExecutables } from '../utils/link_project_executables';
import { parallelizeBatches } from '../utils/parallelize';
import { Command } from './';

View file

@ -4,7 +4,6 @@ import { relative } from 'path';
import ora from 'ora';
import { isDirectory } from '../utils/fs';
import { ProjectGraph, ProjectMap } from '../utils/projects';
import { Command } from './';
export const CleanCommand: Command = {
@ -31,8 +30,7 @@ export const CleanCommand: Command = {
for (const dir of directoriesToDelete) {
const deleting = del(dir, { force: true });
// Remove once https://github.com/DefinitelyTyped/DefinitelyTyped/pull/23699 is merged.
(ora as any).promise(deleting, relative(rootPath, dir));
ora.promise(deleting, relative(rootPath, dir));
await deleting;
}
}

View file

@ -1,10 +1,6 @@
import chalk from 'chalk';
import {
ProjectGraph,
ProjectMap,
topologicallyBatchProjects,
} from '../utils/projects';
import { topologicallyBatchProjects } from '../utils/projects';
import { parallelizeBatches } from '../utils/parallelize';
import { Command } from './';

View file

@ -110,9 +110,9 @@
version "2.4.0"
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
"@types/ora@^1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@types/ora/-/ora-1.3.1.tgz#53db0e10b7ea2f014548e87ea81c755986502e52"
"@types/ora@^1.3.2":
version "1.3.2"
resolved "https://registry.yarnpkg.com/@types/ora/-/ora-1.3.2.tgz#ded29aeec023deaa1e56b99cb51234954f35a7cd"
dependencies:
"@types/node" "*"