-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config option to include the URL (#77)
* Add `outdatedIncludeURL` configuration * Add URL config option * Docs
- Loading branch information
Showing
9 changed files
with
119 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,21 @@ | ||
import { Plugin } from "@yarnpkg/core" | ||
import { Plugin, SettingsType } from "@yarnpkg/core" | ||
import { OutdatedCommand } from "./OutdatedCommand" | ||
|
||
declare module "@yarnpkg/core" { | ||
interface ConfigurationValueMap { | ||
outdatedIncludeUrl: boolean | ||
} | ||
} | ||
|
||
const plugin: Plugin = { | ||
commands: [OutdatedCommand], | ||
configuration: { | ||
outdatedIncludeUrl: { | ||
default: false, | ||
description: `If true, the outdated command will include the package homepage URL by default`, | ||
type: SettingsType.BOOLEAN as const, | ||
}, | ||
}, | ||
} | ||
|
||
export default plugin |
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,10 @@ | ||
➤ YN0000: ┌ Checking for outdated dependencies | ||
➤ YN0000: └ Completed | ||
|
||
➤ YN0000: Package Current Latest Package Type | ||
➤ YN0000: major 1.0.0 2.0.0 dependencies | ||
➤ YN0000: minor 1.0.0 1.1.0 dependencies | ||
➤ YN0000: patch 1.0.0 1.0.1 dependencies | ||
|
||
➤ YN0000: 3 dependencies are out of date | ||
➤ YN0000: Done with warnings |
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