Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Oct 10, 2024
1 parent 0db7dbc commit 5339070
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const baseConfig = {
entryPoints: [resolve(relativeProjectRoot, "src", "croner.ts")],
bundle: true,
minify: true,
sourcemap: false
sourcemap: false,
};

/* - All esbuild targets */
Expand All @@ -26,23 +26,23 @@ const buildConfigs = [
...baseConfig,
outfile: resolve(resolvedDistPath, "croner.cjs"),
platform: "node",
format: "cjs"
format: "cjs",
},
{
...baseConfig,
outfile: resolve(resolvedDistPath, "croner.umd.js"),
platform: "browser",
format: "iife",
globalName: "Cron"
globalName: "Cron",
},
{
...baseConfig,
outdir: resolvedDistPath,
platform: "neutral",
format: "esm",
plugins: [dtsPlugin({
experimentalBundling: true
})]
experimentalBundling: true,
})],
},
];

Expand Down
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ function CronOptionsHandler(options?: CronOptions): CronOptions {
return options;
}

export { CronOptionsHandler, type CronOptions };
export { type CronOptions, CronOptionsHandler };

0 comments on commit 5339070

Please sign in to comment.