Skip to content

Commit

Permalink
fix(create-library): options should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Jun 19, 2024
1 parent ed61774 commit 8d44628
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/create-library.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { existsSync } from "fs";
import fs from "fs/promises";
import path from "path";
import { existsSync } from "node:fs";
import fs from "node:fs/promises";
import path from "node:path";
import tg from "tiny-glob";
import { templateSvelte, templateTs } from "./template";
import { toModuleName } from "./to-module-name";
Expand Down Expand Up @@ -63,7 +63,7 @@ ${moduleNames

export async function createLibrary(
glob: string,
options: Partial<CreateLibraryOptions>
options?: Partial<CreateLibraryOptions>
) {
const outDir = options?.outDir ?? "lib";

Expand Down

0 comments on commit 8d44628

Please sign in to comment.