Skip to content

Commit 8822c41

Browse files
committed
refactor: use named imported dirname function
1 parent bf46d47 commit 8822c41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sea.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { exec as cExec } from 'child_process';
22
import util from 'util';
3-
import path, { basename, dirname, join, resolve } from 'path';
3+
import { basename, dirname, join, resolve } from 'path';
44
import { copyFile, writeFile, rm, mkdir, stat, readFile } from 'fs/promises';
55
import { createWriteStream } from 'fs';
66
import { pipeline } from 'stream/promises';
@@ -308,7 +308,7 @@ async function bake(
308308
);
309309

310310
if (!(await exists(dirname(outPath)))) {
311-
await mkdir(path.dirname(outPath), { recursive: true });
311+
await mkdir(dirname(outPath), { recursive: true });
312312
}
313313
// check if executable_path exists
314314
if (await exists(outPath)) {

0 commit comments

Comments
 (0)