From f601da74b91f23709e0aee6f89e2c57553c88e48 Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Mon, 4 Nov 2024 20:09:21 -0500 Subject: [PATCH] build: update JSON import for Node 21+ --- script/make-executable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/make-executable.js b/script/make-executable.js index a87e34670c..f551ed9737 100644 --- a/script/make-executable.js +++ b/script/make-executable.js @@ -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));