mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
refactor(cli): use conditional array to manage cloud connector list (#3592)
This commit is contained in:
parent
29be040668
commit
a3c8515f3f
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import fs from 'fs/promises';
|
|||
import path from 'path';
|
||||
import { promisify } from 'util';
|
||||
|
||||
import { assert, conditionalString, trySafe } from '@silverhand/essentials';
|
||||
import { assert, conditionalArray, conditionalString, trySafe } from '@silverhand/essentials';
|
||||
import chalk from 'chalk';
|
||||
import { got } from 'got';
|
||||
import inquirer from 'inquirer';
|
||||
|
@ -211,7 +211,7 @@ const fetchOfficialConnectorList = async (includingCloudConnectors = false) => {
|
|||
// eslint-disable-next-line no-await-in-loop
|
||||
const { objects } = await fetchList(page * 20, 20);
|
||||
|
||||
const excludeList = ['mock', 'kit', ...(includingCloudConnectors ? [] : ['logto'])];
|
||||
const excludeList = ['mock', 'kit', ...conditionalArray(!includingCloudConnectors && 'logto')];
|
||||
|
||||
// eslint-disable-next-line @silverhand/fp/no-mutating-methods
|
||||
packages.push(
|
||||
|
|
Loading…
Add table
Reference in a new issue