diff --git a/src/commands/analyze.ts b/src/commands/analyze.ts index ceb7f03..c94a91a 100644 --- a/src/commands/analyze.ts +++ b/src/commands/analyze.ts @@ -84,11 +84,6 @@ export async function run(ctx: CommandContext) { const totalDeps = stats.dependencyCount.production + stats.dependencyCount.development; - const totalDeepDeps = stats.dependencyCount.cjs + stats.dependencyCount.esm; - const esmPercentage = - totalDeepDeps > 0 - ? Math.floor((stats.dependencyCount.esm / totalDeepDeps) * 100) - : 0; const summaryPairs: Array<[string, string]> = [ ['Package Name', stats.name], ['Version', stats.version], @@ -101,10 +96,6 @@ export async function run(ctx: CommandContext) { [ 'Dependencies', `${totalDeps} (${stats.dependencyCount.production} production, ${stats.dependencyCount.development} development)` - ], - [ - 'ES Modules', - `${esmPercentage}% (${stats.dependencyCount.esm} ESM, ${stats.dependencyCount.cjs} CJS)` ] ]; diff --git a/src/test/__snapshots__/cli.test.ts.snap b/src/test/__snapshots__/cli.test.ts.snap index 27d303b..1852ad5 100644 --- a/src/test/__snapshots__/cli.test.ts.snap +++ b/src/test/__snapshots__/cli.test.ts.snap @@ -10,7 +10,6 @@ exports[`CLI > should display package report 1`] = ` │ Version 1.0.0 │ Install Size 170.0 B │ Dependencies 1 (1 production, 0 development) -│ ES Modules 0% (0 ESM, 0 CJS) │ ● Results: │ @@ -35,7 +34,6 @@ exports[`CLI > should run successfully with default options 1`] = ` │ Version 1.0.0 │ Install Size 170.0 B │ Dependencies 1 (1 production, 0 development) -│ ES Modules 0% (0 ESM, 0 CJS) │ ● Results: │