Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Jan 25, 2024
1 parent 78bdccf commit 1d0a274
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions Source/Function/Directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*
*/
export default (async (...[Path]: Parameters<Type>) => {
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,
Expand Down
2 changes: 1 addition & 1 deletion Source/Function/Integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default ((...[_Option = {}]: Parameters<Type>) => {
outDir: { pathname },
},
}) => {
System = (await import("node:path"))
System = (await import("path"))
.parse(pathname)
.dir.replace(/\\/g, "/");

Expand Down
2 changes: 1 addition & 1 deletion Source/Interface/Directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export default interface Type {
(Path: string): Promise<ParsedPath["dir"]>;
}

import type { ParsedPath } from "node:path";
import type { ParsedPath } from "path";
6 changes: 3 additions & 3 deletions Source/Variable/Option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand All @@ -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", {
Expand All @@ -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");

0 comments on commit 1d0a274

Please sign in to comment.