Skip to content

Commit d7c0ca6

Browse files
committed
Fix cli and build options to match prettier output.
1 parent 3499a2f commit d7c0ca6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cli-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ ${codeBlock(
608608
@param packageName The name of the dependency.
609609
@returns Cooldown days restriction for given package (when null cooldown will be skipped for given package).
610610
*/`)}
611-
${chalk.green('cooldown')}: (packageName) ${chalk.cyan('=>')} packageName.startsWith(${chalk.yellow("'@my-company'")}) ? ${chalk.cyan('null')} : ${chalk.cyan('3')}`,
611+
${chalk.green('cooldown')}: packageName ${chalk.cyan('=>')} (packageName.startsWith(${chalk.yellow("'@my-company'")}) ? ${chalk.cyan('null')} : ${chalk.cyan('3')})`,
612612
{ markdown },
613613
)}
614614
`

src/scripts/build-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ const renderOption = (option: CLIOption<unknown>) => {
8383
/** Generate /src/types/RunOptions from cli-options so there is a single source of truth. */
8484
const generateRunOptions = (options: CLIOption<unknown>[]) => {
8585
const header = `/** This file is generated automatically from the options specified in /src/cli-options.ts. Do not edit manually. Run "npm run build" or "npm run build:options" to build. */
86+
import { CooldownFunction } from './CooldownFunction'
8687
import { FilterFunction } from './FilterFunction'
8788
import { FilterResultsFunction } from './FilterResultsFunction'
8889
import { GroupFunction } from './GroupFunction'
8990
import { PackageFile } from './PackageFile'
9091
import { TargetFunction } from './TargetFunction'
91-
import { CooldownFunction } from './CooldownFunction'
9292
9393
/** Options that can be given on the CLI or passed to the ncu module to control all behavior. */
9494
export interface RunOptions {

0 commit comments

Comments
 (0)