Skip to content

Commit 36f2a66

Browse files
committed
refactor: use node:path named imports for everything
1 parent c7ed58d commit 36f2a66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createReadStream, createWriteStream, existsSync, mkdirSync, statSync } from 'node:fs';
2-
import path, { basename, dirname, extname, join, normalize, posix, sep } from 'node:path';
2+
import { basename, dirname, extname, join, normalize, posix, sep } from 'node:path';
33
import untildify from 'untildify';
44
import { type GlobOptions, globSync } from 'tinyglobby';
55

@@ -276,5 +276,5 @@ function dealWith(inPath: string, up: number) {
276276
if (depth(inPath) < up) {
277277
throw new Error(`Can't go up ${up} levels from ${inPath} (${depth(inPath)} levels).`);
278278
}
279-
return join.apply(path, normalize(inPath).split(sep).slice(up));
279+
return join(...normalize(inPath).split(sep).slice(up));
280280
}

0 commit comments

Comments
 (0)