Skip to content

Commit

Permalink
build: update JSON import for Node 21+
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 authored Nov 5, 2024
1 parent fb9bc52 commit f601da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/make-executable.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
// TODO: This synta changes with node 21: assert { type: "json" } -> with { type: "json" }
import pkg from "../package.json" assert { type: "json" };

import pkg from "../package.json" with { type: "json" };

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

Expand Down

0 comments on commit f601da7

Please sign in to comment.