-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: respect config file when no explicit cli flags (#88)
- Loading branch information
Showing
7 changed files
with
84 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import type { CheckOptions, CommonOptions, UsageOptions } from './types' | ||
|
||
export const LOG_LEVELS = ['debug', 'info', 'warn', 'error', 'silent'] as const | ||
|
||
export const MODE_CHOICES = ['default', 'major', 'minor', 'patch', 'latest', 'newest'] as const | ||
|
||
export const DEFAULT_COMMON_OPTIONS: CommonOptions = { | ||
cwd: '', | ||
loglevel: 'info', | ||
failOnOutdated: false, | ||
silent: false, | ||
recursive: false, | ||
force: false, | ||
ignorePaths: '', | ||
include: '', | ||
exclude: '', | ||
dev: false, | ||
prod: false, | ||
} | ||
|
||
export const DEFAULT_USAGE_OPTIONS: UsageOptions = { | ||
...DEFAULT_COMMON_OPTIONS, | ||
detail: false, | ||
recursive: true, | ||
} | ||
|
||
export const DEFAULT_CHECK_OPTIONS: CheckOptions = { | ||
...DEFAULT_COMMON_OPTIONS, | ||
mode: 'default', | ||
write: false, | ||
global: false, | ||
// TODO: enable by default: !process.env.CI && process.stdout.isTTY, | ||
interactive: false, | ||
install: false, | ||
update: false, | ||
all: false, | ||
sort: 'diff-asc', | ||
includeLocked: false, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters