Skip to content

Commit

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

PR that removes assert from NodeJS: nodejs/node#52104
  • Loading branch information
Refusings authored Apr 30, 2024
1 parent d294128 commit 8f24629
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 8f24629

Please sign in to comment.