Skip to content

Commit

Permalink
chore: use node: import syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Dec 24, 2023
1 parent d2b3406 commit 4c9a65d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/utils/create-markdown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-check
import fs from "fs";
import fs from "node:fs";

const pkg = JSON.parse(
fs.readFileSync(new URL("../../package.json", import.meta.url), "utf8"),
Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/fs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check
import fs from "fs";
import fsp from "fs/promises";
import fs from "node:fs";
import fsp from "node:fs/promises";

/** @type {(dir: string, noRemove?: boolean) => void} */
export const mkdir = (dir) => {
Expand Down

0 comments on commit 4c9a65d

Please sign in to comment.