Skip to content

Commit ae94ecd

Browse files
committed
fix lint
1 parent 1f23ac0 commit ae94ecd

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

libraries/botbuilder-vendors/src/actions/install.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { logger } from '../utils';
1515
* @param param0.dependencies List of dependencies.
1616
* @param param0.pkgDir Directory of the package.
1717
* @param param0.directory Directory to install vendor packages.
18+
* @param param0.shouldSetDependencies Conditional to know if the process should set the dependencies.
1819
*/
1920
export async function install({ vendors, dependencies, pkgDir, directory, shouldSetDependencies }: any) {
2021
for (let i = 0; i < vendors.length; i++) {

libraries/botbuilder-vendors/src/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ export const command = (argv: string[]) => async () => {
5858

5959
logger.package.vendors.header({ vendors: newVendors.length });
6060

61-
await install({ vendors: newVendors, dependencies, pkgDir, directory, shouldSetDependencies: flags.setDependencies });
61+
await install({
62+
vendors: newVendors,
63+
dependencies,
64+
pkgDir,
65+
directory,
66+
shouldSetDependencies: flags.setDependencies,
67+
});
6268
await build({ pkgDir, vendors, directory });
6369

6470
logger.package.footer();

libraries/botbuilder-vendors/src/utils/logger.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,12 @@ export const logger = {
6262
},
6363
dependencies: {
6464
header({ dependencies, shouldSetDependencies }: any) {
65-
const tags = shouldSetDependencies ? dependencies > 0 ? [`${colors.green}[added]`] : [`${colors.red}[not found]`] : [`${colors.blue}[skipped]`];
66-
tags.push(`${colors.yellow}[--set-dependencies=${shouldSetDependencies}]`)
65+
const tags = shouldSetDependencies
66+
? dependencies > 0
67+
? [`${colors.green}[added]`]
68+
: [`${colors.red}[not found]`]
69+
: [`${colors.blue}[skipped]`];
70+
tags.push(`${colors.yellow}[--set-dependencies=${shouldSetDependencies}]`);
6771
console.log(
6872
`├─ dependencies: ${colors.magenta}${dependencies} ${plural(dependencies, 'package')} ${tags.join('')}${colors.reset}`,
6973
);

0 commit comments

Comments
 (0)