Skip to content

Commit

Permalink
feat: add pattern option to mkdist builder
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightjack committed Nov 21, 2022
1 parent f8444f7 commit d8e5db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/builder/mkdist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export async function mkdistBuild (ctx: BuildContext) {
format: entry.format,
cleanDist: false,
declaration: entry.declaration,
pattern: entry.pattern,
// @ts-ignore
ext: entry.ext
};
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export interface MkdistBuildEntry extends BaseBuildEntry {
builder: "mkdist"
format?: "esm" | "cjs"
ext?: "cjs" | "mjs" | "js" | "ts"
pattern?: string | string[]
}

export type BuildEntry = BaseBuildEntry | RollupBuildEntry | UntypedBuildEntry | MkdistBuildEntry
Expand Down

0 comments on commit d8e5db6

Please sign in to comment.