Skip to content

Commit

Permalink
fix: reorganise imports and export
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesPatrickGill committed Dec 1, 2022
1 parent 456d181 commit 2dc211a
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export {
ManifestFile,
};

// New Parser Functions *************
// **********************************
// Straight to Depgraph Functionality *************
// ************************************************
import {
extractPkgsFromYarnLockV1,
parseYarnLockV1Project,
Expand All @@ -49,22 +49,6 @@ import {
parseYarnLockV2Project,
buildDepGraphYarnLockV2Simple,
} from './dep-graph-builders';
export {
extractPkgsFromYarnLockV1,
parseYarnLockV1Project,
parseYarnLockV1WorkspaceProject,
buildDepGraphYarnLockV1SimpleCyclesPruned,
buildDepGraphYarnLockV1Simple,
buildDepGraphYarnLockV1WorkspaceCyclesPruned,
buildDepGraphYarnLockV1Workspace,
extractPkgsFromYarnLockV2,
parseYarnLockV2Project,
buildDepGraphYarnLockV2Simple,
};
// **********************************

// New Parser types *************
// **********************************
import type {
PackageJsonBase,
NormalisedPkgs,
Expand All @@ -77,12 +61,20 @@ import {
NodeLockfileVersion,
} from './utils';
export {
extractPkgsFromYarnLockV1,
parseYarnLockV1Project,
parseYarnLockV1WorkspaceProject,
buildDepGraphYarnLockV1SimpleCyclesPruned,
buildDepGraphYarnLockV1Simple,
buildDepGraphYarnLockV1WorkspaceCyclesPruned,
buildDepGraphYarnLockV1Workspace,
extractPkgsFromYarnLockV2,
parseYarnLockV2Project,
buildDepGraphYarnLockV2Simple,
PackageJsonBase,
ProjectParseOptions,
NormalisedPkgs,
NormalisedPkgs as YarnLockPackages,
};
export {
getLockfileVersionFromFile,
getNpmLockfileVersion,
getYarnLockfileVersion,
Expand Down

0 comments on commit 2dc211a

Please sign in to comment.