-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #527 from snyk/refactor/supported-wizard-langs
refactor: Keep track of supported wizard package managers instead
- Loading branch information
Showing
8 changed files
with
56 additions
and
57 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
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,25 @@ | ||
export type SupportedPackageManagers = 'rubygems' | 'npm' | 'yarn' | | ||
'maven' | 'pip' | 'sbt' | 'gradle' | 'golangdep' | 'govendor' | | ||
'nuget' | 'paket' | 'composer'; | ||
|
||
export const SUPPORTED_PACKAGE_MANAGER_NAME: { | ||
readonly [packageManager in SupportedPackageManagers]: string; | ||
} = { | ||
rubygems: 'RubyGems', | ||
npm: 'npm', | ||
yarn: 'Yarn', | ||
maven: 'Maven', | ||
pip: 'pip', | ||
sbt: 'SBT', | ||
gradle: 'Gradle', | ||
golangdep: 'dep (Go)', | ||
govendor: 'govendor', | ||
nuget: 'NuGet', | ||
paket: 'Paket', | ||
composer: 'Composer', | ||
}; | ||
|
||
export const WIZARD_SUPPORTED_PACKAGE_MANAGERS: SupportedPackageManagers[] | ||
= ['yarn', 'npm']; | ||
export const PROTECT_SUPPORTED_PACKAGE_MANAGERS: SupportedPackageManagers[] | ||
= ['yarn', 'npm']; |
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