Skip to content

Commit

Permalink
Document .ncurc.cjs (#1280).
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Mar 19, 2023
1 parent 49196c5 commit 3771b01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ ncu "/^(?!react-).*$/" # windows
--color Force color in terminal.
--concurrency <n> Max number of concurrent HTTP requests to
registry. (default: 8)
--configFileName <s> Config file name. (default: .ncurc.{json,yml,js})
--configFileName <s> Config file name. (default:
.ncurc.{json,yml,js,cjs})
--configFilePath <path> Directory of .ncurc config file. (default:
directory of `packageFile`)
--cwd <path> Working directory in which npm will be executed.
Expand Down
2 changes: 1 addition & 1 deletion src/cli-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ const cliOptions: CLIOption[] = [
{
long: 'configFileName',
arg: 's',
description: 'Config file name. (default: .ncurc.{json,yml,js})',
description: 'Config file name. (default: .ncurc.{json,yml,js,cjs})',
type: 'string',
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/types/RunOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface RunOptions {
/** Max number of concurrent HTTP requests to registry. (default: 8) */
concurrency?: number

/** Config file name. (default: .ncurc.{json,yml,js}) */
/** Config file name. (default: .ncurc.{json,yml,js,cjs}) */
configFileName?: string

/** Directory of .ncurc config file. (default: directory of `packageFile`) */
Expand Down

0 comments on commit 3771b01

Please sign in to comment.