Skip to content

Commit

Permalink
Use prefixed node imports
Browse files Browse the repository at this point in the history
  • Loading branch information
atjn committed Jul 19, 2024
1 parent 52a1b50 commit 793287b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/get-folder-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
2 changes: 1 addition & 1 deletion example.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from "path";
import path from "node:path";
import getFolderSize from "./index.js";

if (!process.env.FOLDER) {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion test/native.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fs from "fs";
import fs from "node:fs";
import tap from "tap";
import getSize from "../index.js";

Expand Down

0 comments on commit 793287b

Please sign in to comment.