Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Sep 22, 2023
1 parent 1b03fca commit 2e1f650
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Source/Command/Build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default async (
File,
])
),
} satisfies Option);
} satisfies Option) as Option;

await Build(
Option?.ESBuild ? Merge(ESBuild, await File(Option?.ESBuild)) : ESBuild
Expand Down
6 changes: 2 additions & 4 deletions Source/Configuration/ESBuild.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import type { PluginBuild as Build, BuildOptions as Option } from "esbuild";
import { copy as Copy } from "esbuild-plugin-copy";
import {
rm as Remove,
} from "fs/promises";
import { rm as Remove } from "fs/promises";

const Out = "Target";

Expand Down Expand Up @@ -38,4 +36,4 @@ export default {
],
}),
],
} satisfies Option;
} satisfies Option as Option;
2 changes: 1 addition & 1 deletion Source/Configuration/TypeScript.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"isolatedModules": true,
"jsx": "preserve",
"lib": ["ESNext"],
"module": "ESNext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
Expand Down
11 changes: 2 additions & 9 deletions Target/Configuration/ESBuild.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
declare const _default: {
format: "esm";
minify: true;
outdir: string;
platform: "node";
target: string;
write: true;
plugins: any[];
};
import type { BuildOptions as Option } from "esbuild";
declare const _default: Option;
export default _default;
2 changes: 1 addition & 1 deletion Target/Configuration/ESBuild.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Target/Configuration/TypeScript.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"isolatedModules": true,
"jsx": "preserve",
"lib": ["ESNext"],
"module": "ESNext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
Expand Down

0 comments on commit 2e1f650

Please sign in to comment.