Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Dec 17, 2023
1 parent 58ae6e7 commit fedebeb
Show file tree
Hide file tree
Showing 3 changed files with 954 additions and 47 deletions.
4 changes: 3 additions & 1 deletion Script/Configuration/ESBuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export default {
setup({ onStart, initialOptions: { outdir } }) {
onStart(async () => {
try {
await (await import("fs/promises")).rm(outdir, {
await (
await import("fs/promises")
).rm(outdir, {
recursive: true,
});
} catch (_Error) {}
Expand Down
8 changes: 5 additions & 3 deletions Script/Configuration/ESBuild.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default ({
export default {
format: "esm",
minify: false,
outdir: "Target",
Expand All @@ -11,7 +11,9 @@ export default ({
setup({ onStart, initialOptions: { outdir } }) {
onStart(async () => {
try {
await (await import("fs/promises")).rm(outdir, {
await (
await import("fs/promises")
).rm(outdir, {
recursive: true,
});
} catch (_Error) {}
Expand All @@ -28,6 +30,6 @@ export default ({
],
}),
],
} satisfies BuildOptions);
} satisfies BuildOptions;

import type { BuildOptions } from "esbuild";
Loading

0 comments on commit fedebeb

Please sign in to comment.