Skip to content

Commit

Permalink
Merge pull request #17 from razroo/ZETA-5022-get-all-dependencies
Browse files Browse the repository at this point in the history
ZETA-5022: Export getAllDependencies
  • Loading branch information
CharlieGreenman authored Mar 27, 2023
2 parents 5a2acb8 + 7d33f90 commit 2c69b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface PackageJson {
optionalDependencies?: Record<string, string>;
}

function getAllDependencies(pkg: PackageJson): Set<[string, string]> {
export function getAllDependencies(pkg: PackageJson): Set<[string, string]> {
return new Set([
...Object.entries(pkg.dependencies || []),
...Object.entries(pkg.devDependencies || []),
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { coreProgrammingLanguagesMap } from "./core-programming-languages/core-programming-languages";
export { readPackageJson, findPackageJson, searchForPackageJson, determineLanguagesWithVersionUsed, determineLanguagesUsed, getProjectDependencies } from "./core/package-json";
export { readPackageJson, findPackageJson, searchForPackageJson, determineLanguagesWithVersionUsed, determineLanguagesUsed, getProjectDependencies, getAllDependencies } from "./core/package-json";

0 comments on commit 2c69b22

Please sign in to comment.