Skip to content

Commit

Permalink
perf(cli): reduce bundle size
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Aug 28, 2023
1 parent d1d4c77 commit 683e05e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/cli/src/lockfile/npm.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import type { PackageNode } from '../types';
import type { Node, Link } from '@npmcli/arborist';
import type Arborist from '@npmcli/arborist';
// @ts-expect-error -- patched package
import PatchedArborist from '../npm/arborist.cjs';
import Arborist from '@npmcli/arborist';
import { cache } from '../lib/cache';

export const searchPackagesFromNPM = cache(async (dirPath: string): Promise<PackageNode[]> => {
const arb: Arborist = new PatchedArborist({
const arb = new Arborist({
path: dirPath,
workspacesEnabled: true
});
Expand Down

0 comments on commit 683e05e

Please sign in to comment.