diff --git a/bin/get-folder-size.js b/bin/get-folder-size.js index b9f5309..1742779 100755 --- a/bin/get-folder-size.js +++ b/bin/get-folder-size.js @@ -2,7 +2,7 @@ import getFolderSize from "../index.js"; import gar from "gar"; -import path from "path"; +import path from "node:path"; const argv = gar(process.argv.slice(2)); diff --git a/example.js b/example.js index 79efb53..4108f03 100644 --- a/example.js +++ b/example.js @@ -1,4 +1,4 @@ -import path from "path"; +import path from "node:path"; import getFolderSize from "./index.js"; if (!process.env.FOLDER) { diff --git a/index.js b/index.js index 79c1e0b..e2354ba 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -import { join as joinPaths } from "path"; +import { join as joinPaths } from "node:path"; export default async function getFolderSize(itemPath, options) { return await core(itemPath, options, { errors: true }); diff --git a/test/native.js b/test/native.js index 80bbec6..22dc8e2 100644 --- a/test/native.js +++ b/test/native.js @@ -1,4 +1,4 @@ -import fs from "fs"; +import fs from "node:fs"; import tap from "tap"; import getSize from "../index.js";