Skip to content

Commit c160e98

Browse files
Nikola HristovNikola Hristov
authored andcommitted
1 parent 6a95562 commit c160e98

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Configuration/ESBuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
onStart(async () => {
2121
try {
2222
outdir
23-
? await (await import("fs/promises")).rm(outdir, {
23+
? await (await import("node:fs/promises")).rm(outdir, {
2424
recursive: true,
2525
})
2626
: {};

Configuration/ESBuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
try {
2424
outdir
2525
? await (
26-
await import("fs/promises")
26+
await import("node:fs/promises")
2727
).rm(outdir, {
2828
recursive: true,
2929
})

Source/Function/Directory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type Interface from "../Interface/Directory.js";
55
*
66
*/
77
export default (async (...[Path]) => {
8-
let Directory = (await import("path"))
9-
.normalize((await import("path")).parse(Path).dir)
8+
let Directory = (await import("node:path"))
9+
.normalize((await import("node:path")).parse(Path).dir)
1010
.replace(/\\/g, "/")
1111
.replace((await import("@Function/Integration.js")).System, "");
1212

Source/Function/Integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default ((...[_Option = {}]) => {
6464
outDir: { pathname },
6565
},
6666
}) => {
67-
System = (await import("path"))
67+
System = (await import("node:path"))
6868
.parse(pathname)
6969
.dir.replace(/\\/g, "/");
7070

Source/Variable/Option.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default (await import("@Function/Merge.js")).default(
3232
Failed: async ({ Input }) =>
3333
`${red("Error:")} Cannot compress file ${gray(
3434
await Directory(Input),
35-
)}${red((await import("path")).parse(Input).base)}`,
35+
)}${red((await import("node:path")).parse(Input).base)}`,
3636
Passed: async ({ Before, Buffer }) =>
3737
Before > _Buffer.byteLength(Buffer.toString()),
3838
Accomplished: async ({ Input, Before, After }) => {
@@ -42,7 +42,7 @@ export default (await import("@Function/Merge.js")).default(
4242
`(-${(await import("@playform/pipe/Target/Function/Bytes.js")).default(Save)})`,
4343
)} ${(await import("kleur/colors")).green(
4444
`${((Save / Before) * 100).toFixed(2)}%`,
45-
)} reduction in ${gray(await Directory(Input))}${(await import("kleur/colors")).cyan((await import("path")).parse(Input).base)}`;
45+
)} reduction in ${gray(await Directory(Input))}${(await import("kleur/colors")).cyan((await import("node:path")).parse(Input).base)}`;
4646
},
4747
Changed: async (Plan) =>
4848
Object.defineProperty(Plan.Info, "Total", {

0 commit comments

Comments
 (0)