Skip to content

Commit f601da7

Browse files
authored
build: update JSON import for Node 21+
1 parent fb9bc52 commit f601da7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/make-executable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import fs from "node:fs";
22
import path from "node:path";
33
import { fileURLToPath } from "node:url";
4-
// TODO: This synta changes with node 21: assert { type: "json" } -> with { type: "json" }
5-
import pkg from "../package.json" assert { type: "json" };
4+
5+
import pkg from "../package.json" with { type: "json" };
66

77
const __dirname = path.dirname(fileURLToPath(import.meta.url));
88

0 commit comments

Comments
 (0)