Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Apr 4, 2024
1 parent 54d3349 commit 1ccd0e3
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Source/Class/Build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export default new (await import("commander")).Command()
.argument("<File...>", "File.")
.option("-ES, --ESBuild <File>", "ESBuild.")
.option("-TS, --TypeScript <File>", "TypeScript.")
.action((await import("@Function/Build.js")).default)
.action((await import("../Function/Build.js")).default)
.parse();
10 changes: 5 additions & 5 deletions Source/Function/Build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default (async (...[File, Option]: Parameters<Type>) => {
Pipe.reverse();

const Configuration = Merge(
(await import("@Variable/ESBuild.js")).default,
(await import("../Variable/ESBuild.js")).default,
{
entryPoints: Object.fromEntries(
Pipe.map((File) => [
Expand All @@ -40,7 +40,7 @@ export default (async (...[File, Option]: Parameters<Type>) => {
? Merge(
Configuration,
await (
await import("@Function/File.js")
await import("../Function/File.js")
).default(Option.ESBuild)
)
: Configuration
Expand All @@ -56,11 +56,11 @@ export default (async (...[File, Option]: Parameters<Type>) => {
Exec(`tsc-alias -p ${Option?.TypeScript ?? "tsconfig.json"}`);
}) satisfies Type as Type;

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

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

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

export const { resolve } = await import("path");

Expand Down
2 changes: 1 addition & 1 deletion Source/Function/Exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ export default (async (
}
}) satisfies Type as Type;

import type Type from "@Interface/Exec.js";
import type Type from "../Interface/Exec.js";
4 changes: 2 additions & 2 deletions Source/Function/File.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default (async (...[Path]: Parameters<Type>) => {
).default.convertCompilerOptionsFromJson(
(
await (
await import("@Function/JSON.js")
await import("../Function/JSON.js")
).default(
"../../tsconfig.json",
(await import("path")).dirname(
Expand Down Expand Up @@ -51,4 +51,4 @@ export default (async (...[Path]: Parameters<Type>) => {
).default;
}) satisfies Type as Type;

import type Type from "@Interface/File.js";
import type Type from "../Interface/File.js";
2 changes: 1 addition & 1 deletion Source/Function/JSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ export default (async (...[File, From]: Parameters<Type>) =>
).toString(),
)) satisfies Type as Type;

import type Type from "@Interface/JSON.js";
import type Type from "../Interface/JSON.js";
4 changes: 2 additions & 2 deletions Source/Function/Merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export default (await import("deepmerge-ts")).deepmergeCustom<Generic>({
mergeArrays: false,
}) satisfies Type<Generic> as Type<Generic>;

import type Type from "@Interface/Merge.js";
import type { Generic } from "@Interface/Merge.js";
import type Type from "../Interface/Merge.js";
import type { Generic } from "../Interface/Merge.js";
2 changes: 1 addition & 1 deletion Source/Variable/ESBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default {
"process.env.VERSION_PACKAGE": `'${
(
await (
await import("@Function/JSON.js")
await import("../Function/JSON.js")
).default("package.json")
)?.version
}'`,
Expand Down
2 changes: 1 addition & 1 deletion Target/Class/Build.js

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

4 changes: 2 additions & 2 deletions Target/Function/Build.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
declare const _default: Type;
export default _default;
import type Type from "../Interface/Build.js";
export declare const Exec: import("@Interface/Exec.js").default;
export declare const Merge: import("@Interface/Merge.js").default<import("@Interface/Merge.js").Generic>;
export declare const Exec: import("../Interface/Exec.js").default;
export declare const Merge: import("../Interface/Merge.js").default<import("../Interface/Merge.js").Generic>;
export declare const resolve: (...paths: string[]) => string;
export declare const Pipe: string[];
export declare const Current: string;

0 comments on commit 1ccd0e3

Please sign in to comment.