From 1d0a2748d42fa80aff0c075331a6f6999f093ee4 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 25 Jan 2024 23:30:32 +0200 Subject: [PATCH] squash! --- .github/workflows/Node.yml | 2 +- Source/Function/Directory.ts | 4 ++-- Source/Function/Integration.ts | 2 +- Source/Interface/Directory.ts | 2 +- Source/Variable/Option.ts | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Node.yml b/.github/workflows/Node.yml index 88d34a1d..827bb7ab 100644 --- a/.github/workflows/Node.yml +++ b/.github/workflows/Node.yml @@ -85,7 +85,7 @@ jobs: - run: pnpm run prepublishOnly working-directory: . - - uses: actions/upload-artifact@v4.3.0 + - uses: actions/upload-artifact@v4.1.0 with: name: .-Node-${{ matrix.node-version }}-Target path: ./Target diff --git a/Source/Function/Directory.ts b/Source/Function/Directory.ts index 4c8409e5..6d9e6fa7 100644 --- a/Source/Function/Directory.ts +++ b/Source/Function/Directory.ts @@ -4,9 +4,9 @@ * */ export default (async (...[Path]: Parameters) => { - let Clean = (await import("node:path")).parse(Path).dir; + let Clean = (await import("path")).parse(Path).dir; - Clean = (await import("node:path")).normalize(Clean); + Clean = (await import("path")).normalize(Clean); Clean = Clean.replace(/\\/g, "/"); Clean = Clean.replace( (await import("../Function/Integration.js")).System, diff --git a/Source/Function/Integration.ts b/Source/Function/Integration.ts index 57fb22af..8ed7ce15 100644 --- a/Source/Function/Integration.ts +++ b/Source/Function/Integration.ts @@ -55,7 +55,7 @@ export default ((...[_Option = {}]: Parameters) => { outDir: { pathname }, }, }) => { - System = (await import("node:path")) + System = (await import("path")) .parse(pathname) .dir.replace(/\\/g, "/"); diff --git a/Source/Interface/Directory.ts b/Source/Interface/Directory.ts index e51c5e33..5521ca9b 100644 --- a/Source/Interface/Directory.ts +++ b/Source/Interface/Directory.ts @@ -6,4 +6,4 @@ export default interface Type { (Path: string): Promise; } -import type { ParsedPath } from "node:path"; +import type { ParsedPath } from "path"; diff --git a/Source/Variable/Option.ts b/Source/Variable/Option.ts index b7a297a0..850c038a 100644 --- a/Source/Variable/Option.ts +++ b/Source/Variable/Option.ts @@ -29,7 +29,7 @@ export default (await import("../Function/Merge.js")).default( Failed: async ({ Input }) => `${red("Error:")} Cannot compress file ${gray( await Directory(Input), - )}${red((await import("node:path")).parse(Input).base)}`, + )}${red((await import("path")).parse(Input).base)}`, Passed: async ({ Before, Buffer }) => Before > _Buffer.byteLength(Buffer.toString()), Accomplished: async ({ Input, Before, After }) => { @@ -43,7 +43,7 @@ export default (await import("../Function/Merge.js")).default( `${((Saving / Before) * 100).toFixed(2)}%`, )} reduction in ${gray(await Directory(Input))}${( await import("kleur/colors") - ).cyan((await import("node:path")).parse(Input).base)}`; + ).cyan((await import("path")).parse(Input).base)}`; }, Changed: async (Plan) => Object.defineProperty(Plan.Info, "Total", { @@ -63,4 +63,4 @@ const { gray, red } = await import("kleur/colors"); const { default: Directory } = await import("../Function/Directory.js"); -const { Buffer: _Buffer } = await import("node:buffer"); +const { Buffer: _Buffer } = await import("buffer");