Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
Signed-off-by: Nikola Hristov <[email protected]>
  • Loading branch information
NikolaRHristov committed Jul 9, 2024
1 parent 10e9612 commit d55c9f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
8 changes: 2 additions & 6 deletions Source/Function/File.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ export default (async (...[Path]: Parameters<Interface>) => {
(
await import("path")
).dirname(
(
await import("url")
).fileURLToPath(import.meta.url),
(await import("url")).fileURLToPath(import.meta.url),
),
)
)?.compilerOptions,
Expand All @@ -36,9 +34,7 @@ export default (async (...[Path]: Parameters<Interface>) => {
Path.replace(".ts", ".js"),
(await import("typescript")).default.transpile(
(
await (
await import("fs/promises")
).readFile(Path, "utf-8")
await (await import("fs/promises")).readFile(Path, "utf-8")
).toString(),
Option,
),
Expand Down
9 changes: 3 additions & 6 deletions Source/Variable/ESBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ export default {
onStart(async () => {
try {
outdir
? await (await import("fs/promises")).rm(
outdir,
{
recursive: true,
},
)
? await (await import("fs/promises")).rm(outdir, {
recursive: true,
})
: {};
} catch (_Error) {
console.log(_Error);
Expand Down

0 comments on commit d55c9f5

Please sign in to comment.