Skip to content

Commit

Permalink
Replace removed keyword for NodeJS v22+ support
Browse files Browse the repository at this point in the history
Replace keyword "assert" with "with" to work with NodeJS v22+
Requires NodeJS v18.20.x+ (LTS) or v20.10+

NodeJS PR that removed the keyword: nodejs/node#52104
  • Loading branch information
Refusings authored Apr 30, 2024
1 parent d294128 commit 757dc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build/common.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { join, relative } from "path";
import { promisify } from "util";

// wtf is this assert syntax
import PackageJSON from "../../package.json" assert { type: "json" };
import PackageJSON from "../../package.json" with { type: "json" };
import { getPluginTarget } from "../utils.mjs";

export const VERSION = PackageJSON.version;
Expand Down

0 comments on commit 757dc4d

Please sign in to comment.