Skip to content

Commit

Permalink
fix(esbuild-meta): add missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherPHolder committed Apr 18, 2024
1 parent 4b098ff commit 973e10e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/esbuild-meta/src/lib/filter-meta.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CommandModule, CommandBuilder, Options, InferredOptionTypes, Argv } from 'yargs';
import { Metafile } from 'esbuild';
import {
extractEntryPoints,
filterMetaFromEntryPoints,
Expand Down Expand Up @@ -46,7 +47,7 @@ const filterMetaBuilder: CommandBuilder<unknown, FilterMetaOptions> = (argv: Arg
}

const filterMetaHandler: FilterMetaCommandModule['handler'] = (argv: FilterMetaOptions) => {
const meta = getJson([argv.distPath]);
const meta = getJson<Metafile>([argv.distPath]);
const entryPoints = extractEntryPoints(meta, argv.entryPoints);
filterMetaFromEntryPoints(meta, entryPoints);
if (argv.excludeDynamicImports) {
Expand Down

0 comments on commit 973e10e

Please sign in to comment.