"Fossies" - the Fresh Open Source Software Archive 
Member "cli-1.1259.0/src/lib/package-managers.ts" (30 Nov 2023, 2109 Bytes) of package /linux/misc/snyk-cli-1.1259.0.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 export type SupportedPackageManagers =
2 | 'rubygems'
3 | 'npm'
4 | 'yarn'
5 | 'maven'
6 | 'pip'
7 | 'sbt'
8 | 'gradle'
9 | 'golangdep'
10 | 'govendor'
11 | 'gomodules'
12 | 'nuget'
13 | 'paket'
14 | 'composer'
15 | 'cocoapods'
16 | 'poetry'
17 | 'hex'
18 | 'Unmanaged (C/C++)'
19 | 'swift';
20
21 export enum SUPPORTED_MANIFEST_FILES {
22 GEMFILE = 'Gemfile',
23 GEMFILE_LOCK = 'Gemfile.lock',
24 GEMSPEC = '.gemspec',
25 PACKAGE_LOCK_JSON = 'package-lock.json',
26 POM_XML = 'pom.xml',
27 JAR = '.jar',
28 WAR = '.war',
29 BUILD_GRADLE = 'build.gradle',
30 BUILD_GRADLE_KTS = 'build.gradle.kts',
31 BUILD_SBT = 'build.sbt',
32 YARN_LOCK = 'yarn.lock',
33 PACKAGE_JSON = 'package.json',
34 PIPFILE = 'Pipfile',
35 SETUP_PY = 'setup.py',
36 REQUIREMENTS_TXT = 'requirements.txt',
37 GOPKG_LOCK = 'Gopkg.lock',
38 GO_MOD = 'go.mod',
39 VENDOR_JSON = 'vendor.json',
40 PROJECT_ASSETS_JSON = 'project.assets.json',
41 PACKAGES_CONFIG = 'packages.config',
42 PROJECT_JSON = 'project.json',
43 PAKET_DEPENDENCIES = 'paket.dependencies',
44 COMPOSER_LOCK = 'composer.lock',
45 PODFILE_LOCK = 'Podfile.lock',
46 COCOAPODS_PODFILE_YAML = 'CocoaPods.podfile.yaml',
47 COCOAPODS_PODFILE = 'CocoaPods.podfile',
48 PODFILE = 'Podfile',
49 POETRY_LOCK = 'poetry.lock',
50 MIX_EXS = 'mix.exs',
51 PACKAGE_SWIFT = 'Package.swift',
52 }
53
54 export const SUPPORTED_PACKAGE_MANAGER_NAME: {
55 readonly [packageManager in SupportedPackageManagers]: string;
56 } = {
57 rubygems: 'RubyGems',
58 npm: 'npm',
59 yarn: 'Yarn',
60 maven: 'Maven',
61 pip: 'pip',
62 sbt: 'SBT',
63 gradle: 'Gradle',
64 golangdep: 'dep (Go)',
65 gomodules: 'Go Modules',
66 govendor: 'govendor',
67 nuget: 'NuGet',
68 paket: 'Paket',
69 composer: 'Composer',
70 cocoapods: 'CocoaPods',
71 poetry: 'Poetry',
72 hex: 'Hex',
73 'Unmanaged (C/C++)': 'Unmanaged (C/C++)',
74 swift: 'Swift',
75 };
76
77 export const GRAPH_SUPPORTED_PACKAGE_MANAGERS: SupportedPackageManagers[] = [
78 'npm',
79 'sbt',
80 'yarn',
81 'rubygems',
82 'poetry',
83 ];
84 // For ecosystems with a flat set of libraries (e.g. Python, JVM), one can
85 // "pin" a transitive dependency
86 export const PINNING_SUPPORTED_PACKAGE_MANAGERS: SupportedPackageManagers[] = [
87 'pip',
88 ];