Skip to content

Commit

Permalink
Fix resolution of theme entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceRussell committed Dec 10, 2024
1 parent 828df21 commit 4270f45
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion package/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default function <ThemeName extends string, Schema extends z.ZodTypeAny>(
name: themeName,
schema: configSchema = z.any(),
entrypoint: themeEntrypoint = callsites()
.reverse()
.map((callsite) => (callsite as NodeJS.CallSite).getScriptNameOrSourceURL())
.find((path) => path && !path.startsWith("file://") && path !== thisFile)!,
srcDir: themeSrc = "src",
Expand Down

0 comments on commit 4270f45

Please sign in to comment.