@vibgrate/cli 1.0.72 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11706,21 +11706,21 @@ async function runScan(rootDir, opts) {
|
|
|
11706
11706
|
{ id: "discovery", label: "Discovering workspace", weight: 3 },
|
|
11707
11707
|
{ id: "vcs", label: "Detecting version control" },
|
|
11708
11708
|
{ id: "walk", label: "Indexing files", weight: 8 },
|
|
11709
|
-
{ id: "node", label: "
|
|
11710
|
-
{ id: "dotnet", label: "
|
|
11711
|
-
{ id: "python", label: "
|
|
11712
|
-
{ id: "java", label: "
|
|
11713
|
-
{ id: "ruby", label: "
|
|
11714
|
-
{ id: "swift", label: "
|
|
11715
|
-
{ id: "go", label: "
|
|
11716
|
-
{ id: "rust", label: "
|
|
11717
|
-
{ id: "php", label: "
|
|
11718
|
-
{ id: "dart", label: "
|
|
11719
|
-
{ id: "elixir", label: "
|
|
11720
|
-
{ id: "docker", label: "
|
|
11721
|
-
{ id: "helm", label: "
|
|
11722
|
-
{ id: "terraform", label: "
|
|
11723
|
-
{ id: "polyglot", label: "
|
|
11709
|
+
{ id: "node", label: "Found Node projects", weight: 4 },
|
|
11710
|
+
{ id: "dotnet", label: "Found .NET projects", weight: 2 },
|
|
11711
|
+
{ id: "python", label: "Found Python projects", weight: 3 },
|
|
11712
|
+
{ id: "java", label: "Found Java projects", weight: 3 },
|
|
11713
|
+
{ id: "ruby", label: "Found Ruby projects", weight: 2 },
|
|
11714
|
+
{ id: "swift", label: "Found Swift projects", weight: 2 },
|
|
11715
|
+
{ id: "go", label: "Found Go projects", weight: 2 },
|
|
11716
|
+
{ id: "rust", label: "Found Rust projects", weight: 2 },
|
|
11717
|
+
{ id: "php", label: "Found PHP projects", weight: 2 },
|
|
11718
|
+
{ id: "dart", label: "Found Dart projects", weight: 2 },
|
|
11719
|
+
{ id: "elixir", label: "Found Elixir projects", weight: 2 },
|
|
11720
|
+
{ id: "docker", label: "Found Docker images", weight: 2 },
|
|
11721
|
+
{ id: "helm", label: "Found Helm charts", weight: 2 },
|
|
11722
|
+
{ id: "terraform", label: "Found Terraform configs", weight: 2 },
|
|
11723
|
+
{ id: "polyglot", label: "Found additional language projects", weight: 2 },
|
|
11724
11724
|
...scanners !== false ? [
|
|
11725
11725
|
...scannerPolicy.platformMatrix && scanners?.platformMatrix?.enabled !== false ? [{ id: "platform", label: "Platform matrix" }] : [],
|
|
11726
11726
|
...scannerPolicy.toolingInventory && scanners?.toolingInventory?.enabled !== false ? [{ id: "tooling", label: "Tooling inventory" }] : [],
|
|
@@ -11790,139 +11790,169 @@ async function runScan(rootDir, opts) {
|
|
|
11790
11790
|
progress.updateStats({ treeSummary: indexedTreeCount });
|
|
11791
11791
|
}
|
|
11792
11792
|
progress.completeStep("walk", `${treeCount.totalFiles.toLocaleString()} files indexed`);
|
|
11793
|
-
progress.startStep("node");
|
|
11794
11793
|
const nodeProjects = await scanNodeProjects(rootDir, npmCache, fileCache, projectScanTimeoutMs);
|
|
11795
|
-
|
|
11796
|
-
progress.
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11801
|
-
|
|
11802
|
-
|
|
11794
|
+
if (nodeProjects.length > 0) {
|
|
11795
|
+
progress.startStep("node");
|
|
11796
|
+
for (const p of nodeProjects) {
|
|
11797
|
+
progress.addDependencies(p.dependencies.length);
|
|
11798
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11799
|
+
}
|
|
11800
|
+
filesScanned += nodeProjects.length;
|
|
11801
|
+
progress.addProjects(nodeProjects.length);
|
|
11802
|
+
progress.completeStep("node", `${nodeProjects.length} project${nodeProjects.length !== 1 ? "s" : ""}`, nodeProjects.length);
|
|
11803
|
+
}
|
|
11803
11804
|
const dotnetProjects = await scanDotnetProjects(rootDir, nugetCache, fileCache, projectScanTimeoutMs);
|
|
11804
|
-
|
|
11805
|
-
progress.
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11805
|
+
if (dotnetProjects.length > 0) {
|
|
11806
|
+
progress.startStep("dotnet");
|
|
11807
|
+
for (const p of dotnetProjects) {
|
|
11808
|
+
progress.addDependencies(p.dependencies.length);
|
|
11809
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11810
|
+
}
|
|
11811
|
+
filesScanned += dotnetProjects.length;
|
|
11812
|
+
progress.addProjects(dotnetProjects.length);
|
|
11813
|
+
progress.completeStep("dotnet", `${dotnetProjects.length} project${dotnetProjects.length !== 1 ? "s" : ""}`, dotnetProjects.length);
|
|
11814
|
+
}
|
|
11812
11815
|
const pythonProjects = await scanPythonProjects(rootDir, pypiCache, fileCache, projectScanTimeoutMs);
|
|
11813
|
-
|
|
11814
|
-
progress.
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11816
|
+
if (pythonProjects.length > 0) {
|
|
11817
|
+
progress.startStep("python");
|
|
11818
|
+
for (const p of pythonProjects) {
|
|
11819
|
+
progress.addDependencies(p.dependencies.length);
|
|
11820
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11821
|
+
}
|
|
11822
|
+
filesScanned += pythonProjects.length;
|
|
11823
|
+
progress.addProjects(pythonProjects.length);
|
|
11824
|
+
progress.completeStep("python", `${pythonProjects.length} project${pythonProjects.length !== 1 ? "s" : ""}`, pythonProjects.length);
|
|
11825
|
+
}
|
|
11821
11826
|
const javaProjects = await scanJavaProjects(rootDir, mavenCache, fileCache, projectScanTimeoutMs);
|
|
11822
|
-
|
|
11823
|
-
progress.
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11827
|
+
if (javaProjects.length > 0) {
|
|
11828
|
+
progress.startStep("java");
|
|
11829
|
+
for (const p of javaProjects) {
|
|
11830
|
+
progress.addDependencies(p.dependencies.length);
|
|
11831
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11832
|
+
}
|
|
11833
|
+
filesScanned += javaProjects.length;
|
|
11834
|
+
progress.addProjects(javaProjects.length);
|
|
11835
|
+
progress.completeStep("java", `${javaProjects.length} project${javaProjects.length !== 1 ? "s" : ""}`, javaProjects.length);
|
|
11836
|
+
}
|
|
11830
11837
|
const rubyProjects = await scanRubyProjects(rootDir, rubygemsCache, fileCache, projectScanTimeoutMs);
|
|
11831
|
-
|
|
11832
|
-
progress.
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11838
|
+
if (rubyProjects.length > 0) {
|
|
11839
|
+
progress.startStep("ruby");
|
|
11840
|
+
for (const p of rubyProjects) {
|
|
11841
|
+
progress.addDependencies(p.dependencies.length);
|
|
11842
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11843
|
+
}
|
|
11844
|
+
filesScanned += rubyProjects.length;
|
|
11845
|
+
progress.addProjects(rubyProjects.length);
|
|
11846
|
+
progress.completeStep("ruby", `${rubyProjects.length} project${rubyProjects.length !== 1 ? "s" : ""}`, rubyProjects.length);
|
|
11847
|
+
}
|
|
11839
11848
|
const swiftProjects = await scanSwiftProjects(rootDir, swiftCache, fileCache, projectScanTimeoutMs);
|
|
11840
|
-
|
|
11841
|
-
progress.
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
|
|
11847
|
-
|
|
11849
|
+
if (swiftProjects.length > 0) {
|
|
11850
|
+
progress.startStep("swift");
|
|
11851
|
+
for (const p of swiftProjects) {
|
|
11852
|
+
progress.addDependencies(p.dependencies.length);
|
|
11853
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11854
|
+
}
|
|
11855
|
+
filesScanned += swiftProjects.length;
|
|
11856
|
+
progress.addProjects(swiftProjects.length);
|
|
11857
|
+
progress.completeStep("swift", `${swiftProjects.length} project${swiftProjects.length !== 1 ? "s" : ""}`, swiftProjects.length);
|
|
11858
|
+
}
|
|
11848
11859
|
const goProjects = await scanGoProjects(rootDir, goCache, fileCache, projectScanTimeoutMs);
|
|
11849
|
-
|
|
11850
|
-
progress.
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11860
|
+
if (goProjects.length > 0) {
|
|
11861
|
+
progress.startStep("go");
|
|
11862
|
+
for (const p of goProjects) {
|
|
11863
|
+
progress.addDependencies(p.dependencies.length);
|
|
11864
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11865
|
+
}
|
|
11866
|
+
filesScanned += goProjects.length;
|
|
11867
|
+
progress.addProjects(goProjects.length);
|
|
11868
|
+
progress.completeStep("go", `${goProjects.length} project${goProjects.length !== 1 ? "s" : ""}`, goProjects.length);
|
|
11869
|
+
}
|
|
11857
11870
|
const rustProjects = await scanRustProjects(rootDir, cargoCache, fileCache, projectScanTimeoutMs);
|
|
11858
|
-
|
|
11859
|
-
progress.
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11871
|
+
if (rustProjects.length > 0) {
|
|
11872
|
+
progress.startStep("rust");
|
|
11873
|
+
for (const p of rustProjects) {
|
|
11874
|
+
progress.addDependencies(p.dependencies.length);
|
|
11875
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11876
|
+
}
|
|
11877
|
+
filesScanned += rustProjects.length;
|
|
11878
|
+
progress.addProjects(rustProjects.length);
|
|
11879
|
+
progress.completeStep("rust", `${rustProjects.length} project${rustProjects.length !== 1 ? "s" : ""}`, rustProjects.length);
|
|
11880
|
+
}
|
|
11866
11881
|
const phpProjects = await scanPhpProjects(rootDir, composerCache, fileCache, projectScanTimeoutMs);
|
|
11867
|
-
|
|
11868
|
-
progress.
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11882
|
+
if (phpProjects.length > 0) {
|
|
11883
|
+
progress.startStep("php");
|
|
11884
|
+
for (const p of phpProjects) {
|
|
11885
|
+
progress.addDependencies(p.dependencies.length);
|
|
11886
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11887
|
+
}
|
|
11888
|
+
filesScanned += phpProjects.length;
|
|
11889
|
+
progress.addProjects(phpProjects.length);
|
|
11890
|
+
progress.completeStep("php", `${phpProjects.length} project${phpProjects.length !== 1 ? "s" : ""}`, phpProjects.length);
|
|
11891
|
+
}
|
|
11875
11892
|
const dartProjects = await scanDartProjects(rootDir, pubCache, fileCache, projectScanTimeoutMs);
|
|
11876
|
-
|
|
11877
|
-
progress.
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
|
|
11883
|
-
|
|
11893
|
+
if (dartProjects.length > 0) {
|
|
11894
|
+
progress.startStep("dart");
|
|
11895
|
+
for (const p of dartProjects) {
|
|
11896
|
+
progress.addDependencies(p.dependencies.length);
|
|
11897
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11898
|
+
}
|
|
11899
|
+
filesScanned += dartProjects.length;
|
|
11900
|
+
progress.addProjects(dartProjects.length);
|
|
11901
|
+
progress.completeStep("dart", `${dartProjects.length} project${dartProjects.length !== 1 ? "s" : ""}`, dartProjects.length);
|
|
11902
|
+
}
|
|
11884
11903
|
const elixirProjects = await scanElixirProjects(rootDir, packageManifest, fileCache, projectScanTimeoutMs, offlineMode);
|
|
11885
|
-
|
|
11886
|
-
progress.
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11904
|
+
if (elixirProjects.length > 0) {
|
|
11905
|
+
progress.startStep("elixir");
|
|
11906
|
+
for (const p of elixirProjects) {
|
|
11907
|
+
progress.addDependencies(p.dependencies.length);
|
|
11908
|
+
if (p.frameworks) progress.addFrameworks(p.frameworks.length);
|
|
11909
|
+
}
|
|
11910
|
+
filesScanned += elixirProjects.length;
|
|
11911
|
+
progress.addProjects(elixirProjects.length);
|
|
11912
|
+
progress.completeStep("elixir", `${elixirProjects.length} project${elixirProjects.length !== 1 ? "s" : ""}`, elixirProjects.length);
|
|
11913
|
+
}
|
|
11893
11914
|
const dockerProjects = await scanDockerProjects(rootDir, packageManifest, fileCache, projectScanTimeoutMs, offlineMode);
|
|
11894
|
-
|
|
11895
|
-
progress.
|
|
11915
|
+
if (dockerProjects.length > 0) {
|
|
11916
|
+
progress.startStep("docker");
|
|
11917
|
+
for (const p of dockerProjects) {
|
|
11918
|
+
progress.addDependencies(p.dependencies.length);
|
|
11919
|
+
}
|
|
11920
|
+
filesScanned += dockerProjects.length;
|
|
11921
|
+
progress.addProjects(dockerProjects.length);
|
|
11922
|
+
progress.completeStep("docker", `${dockerProjects.length} project${dockerProjects.length !== 1 ? "s" : ""}`, dockerProjects.length);
|
|
11896
11923
|
}
|
|
11897
|
-
filesScanned += dockerProjects.length;
|
|
11898
|
-
progress.addProjects(dockerProjects.length);
|
|
11899
|
-
progress.completeStep("docker", `${dockerProjects.length} project${dockerProjects.length !== 1 ? "s" : ""}`, dockerProjects.length);
|
|
11900
|
-
progress.startStep("helm");
|
|
11901
11924
|
const helmProjects = await scanHelmProjects(rootDir, packageManifest, fileCache, projectScanTimeoutMs, offlineMode);
|
|
11902
|
-
|
|
11903
|
-
progress.
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11925
|
+
if (helmProjects.length > 0) {
|
|
11926
|
+
progress.startStep("helm");
|
|
11927
|
+
for (const p of helmProjects) {
|
|
11928
|
+
progress.addDependencies(p.dependencies.length);
|
|
11929
|
+
if (p.frameworks) progress.addFrameworks(p.frameworks.length);
|
|
11930
|
+
}
|
|
11931
|
+
filesScanned += helmProjects.length;
|
|
11932
|
+
progress.addProjects(helmProjects.length);
|
|
11933
|
+
progress.completeStep("helm", `${helmProjects.length} project${helmProjects.length !== 1 ? "s" : ""}`, helmProjects.length);
|
|
11934
|
+
}
|
|
11910
11935
|
const terraformProjects = await scanTerraformProjects(rootDir, packageManifest, fileCache, projectScanTimeoutMs, offlineMode);
|
|
11911
|
-
|
|
11912
|
-
progress.
|
|
11936
|
+
if (terraformProjects.length > 0) {
|
|
11937
|
+
progress.startStep("terraform");
|
|
11938
|
+
for (const p of terraformProjects) {
|
|
11939
|
+
progress.addDependencies(p.dependencies.length);
|
|
11940
|
+
}
|
|
11941
|
+
filesScanned += terraformProjects.length;
|
|
11942
|
+
progress.addProjects(terraformProjects.length);
|
|
11943
|
+
progress.completeStep("terraform", `${terraformProjects.length} project${terraformProjects.length !== 1 ? "s" : ""}`, terraformProjects.length);
|
|
11913
11944
|
}
|
|
11914
|
-
filesScanned += terraformProjects.length;
|
|
11915
|
-
progress.addProjects(terraformProjects.length);
|
|
11916
|
-
progress.completeStep("terraform", `${terraformProjects.length} project${terraformProjects.length !== 1 ? "s" : ""}`, terraformProjects.length);
|
|
11917
|
-
progress.startStep("polyglot");
|
|
11918
11945
|
const polyglotProjects = await scanPolyglotProjects(rootDir, fileCache);
|
|
11919
|
-
|
|
11920
|
-
progress.
|
|
11921
|
-
|
|
11946
|
+
if (polyglotProjects.length > 0) {
|
|
11947
|
+
progress.startStep("polyglot");
|
|
11948
|
+
for (const p of polyglotProjects) {
|
|
11949
|
+
progress.addDependencies(p.dependencies.length);
|
|
11950
|
+
progress.addFrameworks(p.frameworks.length);
|
|
11951
|
+
}
|
|
11952
|
+
filesScanned += polyglotProjects.length;
|
|
11953
|
+
progress.addProjects(polyglotProjects.length);
|
|
11954
|
+
progress.completeStep("polyglot", `${polyglotProjects.length} project${polyglotProjects.length !== 1 ? "s" : ""}`, polyglotProjects.length);
|
|
11922
11955
|
}
|
|
11923
|
-
filesScanned += polyglotProjects.length;
|
|
11924
|
-
progress.addProjects(polyglotProjects.length);
|
|
11925
|
-
progress.completeStep("polyglot", `${polyglotProjects.length} project${polyglotProjects.length !== 1 ? "s" : ""}`, polyglotProjects.length);
|
|
11926
11956
|
const rawProjects = [...nodeProjects, ...dotnetProjects, ...pythonProjects, ...javaProjects, ...rubyProjects, ...swiftProjects, ...goProjects, ...rustProjects, ...phpProjects, ...dartProjects, ...elixirProjects, ...dockerProjects, ...helmProjects, ...terraformProjects, ...polyglotProjects];
|
|
11927
11957
|
const deduplicatedMap = /* @__PURE__ */ new Map();
|
|
11928
11958
|
for (const project of rawProjects) {
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
baselineCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U3HD6W56.js";
|
|
5
5
|
import {
|
|
6
6
|
VERSION,
|
|
7
7
|
dsnCommand,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
pushCommand,
|
|
11
11
|
scanCommand,
|
|
12
12
|
writeDefaultConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2A2BCGNP.js";
|
|
14
14
|
import {
|
|
15
15
|
ensureDir,
|
|
16
16
|
pathExists,
|
|
@@ -39,7 +39,7 @@ var initCommand = new Command("init").description("Initialize vibgrate in a proj
|
|
|
39
39
|
console.log(chalk.green("\u2714") + ` Created ${chalk.bold("vibgrate.config.ts")}`);
|
|
40
40
|
}
|
|
41
41
|
if (opts.baseline) {
|
|
42
|
-
const { runBaseline } = await import("./baseline-
|
|
42
|
+
const { runBaseline } = await import("./baseline-DJT6OPVC.js");
|
|
43
43
|
await runBaseline(rootDir);
|
|
44
44
|
}
|
|
45
45
|
console.log("");
|
package/dist/index.js
CHANGED