Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Sep 8, 2024
1 parent cb92211 commit e6b969e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions Source/Function/Build.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import type { BuildOptions } from "esbuild";

import type Interface from "../Interface/Build.js";

/**
* @module Build
*
Expand Down Expand Up @@ -50,9 +54,7 @@ export default (async (...[File, Option]: Parameters<Interface>) => {
});

if (Option?.Watch) {
const Context = await (await import("esbuild")).context(Configuration);

await Context.watch();
await (await (await import("esbuild")).context(Configuration)).watch();
} else {
console.log(
await (
Expand All @@ -68,10 +70,6 @@ export default (async (...[File, Option]: Parameters<Interface>) => {
}
}) satisfies Interface as Interface;

import type { BuildOptions } from "esbuild";

import type Interface from "../Interface/Build.js";

export const { default: Exec } = await import("../Function/Exec.js");

export const { default: Merge } = await import("../Function/Merge.js");
Expand Down
2 changes: 1 addition & 1 deletion Target/Function/Build.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type Interface from "../Interface/Build.js";
/**
* @module Build
*
*/
declare const _default: Interface;
export default _default;
import type Interface from "../Interface/Build.js";
export declare const Exec: import("../Interface/Exec.js").default;
export declare const Merge: <Ts extends readonly unknown[]>(...objects: Ts) => import("deepmerge-ts").DeepMergeHKT<Ts, Readonly<{
DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
Expand Down
2 changes: 1 addition & 1 deletion Target/Function/Build.js

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

0 comments on commit e6b969e

Please sign in to comment.