From e559e88892de66ab059df51970d1e40147816c0b Mon Sep 17 00:00:00 2001 From: Bashamega Date: Wed, 6 Aug 2025 13:48:03 +0300 Subject: [PATCH 1/4] Use node16 --- deploy/createTypesPackages.js | 2 +- inputfiles/mdn | 2 +- src/build/bcd.ts | 2 +- src/build/bcd/mapper.ts | 2 +- src/build/patches.ts | 2 +- src/build/{types.d.ts => types.ts} | 0 tsconfig.json | 4 ++-- 7 files changed, 7 insertions(+), 7 deletions(-) rename src/build/{types.d.ts => types.ts} (100%) diff --git a/deploy/createTypesPackages.js b/deploy/createTypesPackages.js index b2a3e9beb..a1677f0fc 100644 --- a/deploy/createTypesPackages.js +++ b/deploy/createTypesPackages.js @@ -151,7 +151,7 @@ const go = async () => { async function updatePackageJSON(pkg, packagePath) { const pkgJSONPath = new URL("package.json", packagePath); const packageText = fs.readFileSync(pkgJSONPath, "utf8"); - /** @type {import("./template/package.json")} */ + /** @type {typeof import("./template/package.json")} */ const packageJSON = JSON.parse(packageText); packageJSON.name = pkg.name; packageJSON.description = pkg.description; diff --git a/inputfiles/mdn b/inputfiles/mdn index 49ff45bcb..359d3c9ce 160000 --- a/inputfiles/mdn +++ b/inputfiles/mdn @@ -1 +1 @@ -Subproject commit 49ff45bcbfa9a0ebe439338b0a88ea1549386e62 +Subproject commit 359d3c9cea9b2caa691c63ed3b01714ad4416372 diff --git a/src/build/bcd.ts b/src/build/bcd.ts index e6bc633f3..c54ceac85 100644 --- a/src/build/bcd.ts +++ b/src/build/bcd.ts @@ -1,4 +1,4 @@ -import * as Browser from "./types"; +import * as Browser from "./types.js"; import { CompatStatement, SimpleSupportStatement, diff --git a/src/build/bcd/mapper.ts b/src/build/bcd/mapper.ts index 8f674eb20..1238cd684 100644 --- a/src/build/bcd/mapper.ts +++ b/src/build/bcd/mapper.ts @@ -5,7 +5,7 @@ import { SimpleSupportStatement, } from "bcd-idl-mapper"; import api from "bcd-idl-mapper"; -import * as Browser from "../types"; +import * as Browser from "../types.js"; import { filterMapRecord, isEmptyRecord } from "../utils/record.js"; import { mapDefined } from "../helpers.js"; import { hasStableImplementation } from "./stable.js"; diff --git a/src/build/patches.ts b/src/build/patches.ts index d21404989..0b0da41df 100644 --- a/src/build/patches.ts +++ b/src/build/patches.ts @@ -1,5 +1,5 @@ import { parse, type Value, type Node } from "kdljs"; -import type { Enum, Event, Property, Interface, WebIdl } from "./types"; +import type { Enum, Event, Property, Interface, WebIdl } from "./types.js"; import { readdir, readFile } from "fs/promises"; import { merge } from "./helpers.js"; diff --git a/src/build/types.d.ts b/src/build/types.ts similarity index 100% rename from src/build/types.d.ts rename to src/build/types.ts diff --git a/tsconfig.json b/tsconfig.json index 768c6c291..930a16c85 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "target": "es2022", - "module": "esnext", - "moduleResolution": "node", + "module": "node16", + "moduleResolution": "node16", "outDir": "./lib", "strict": true, "esModuleInterop": true, From a1f0a0d096326e4c1f54cb45168c2d242f52b26f Mon Sep 17 00:00:00 2001 From: Bashamega Date: Wed, 6 Aug 2025 13:52:13 +0300 Subject: [PATCH 2/4] - --- inputfiles/mdn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inputfiles/mdn b/inputfiles/mdn index 359d3c9ce..c998eb8b8 160000 --- a/inputfiles/mdn +++ b/inputfiles/mdn @@ -1 +1 @@ -Subproject commit 359d3c9cea9b2caa691c63ed3b01714ad4416372 +Subproject commit c998eb8b865e9d25f281c13c0a737e9b18a2fc64 From 1317f676ea4b58191d5e4b09bcd823c034a24eae Mon Sep 17 00:00:00 2001 From: Bashamega Date: Wed, 6 Aug 2025 13:56:38 +0300 Subject: [PATCH 3/4] Set submodule to 49ff45b --- inputfiles/mdn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inputfiles/mdn b/inputfiles/mdn index c998eb8b8..49ff45bcb 160000 --- a/inputfiles/mdn +++ b/inputfiles/mdn @@ -1 +1 @@ -Subproject commit c998eb8b865e9d25f281c13c0a737e9b18a2fc64 +Subproject commit 49ff45bcbfa9a0ebe439338b0a88ea1549386e62 From 75f6e33d56c2d3fb10abd31f560e4c445c95d84f Mon Sep 17 00:00:00 2001 From: Bashamega Date: Thu, 7 Aug 2025 06:48:47 +0300 Subject: [PATCH 4/4] Use nodenext --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 930a16c85..250d50e58 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "target": "es2022", - "module": "node16", - "moduleResolution": "node16", + "module": "nodenext", + "moduleResolution": "nodenext", "outDir": "./lib", "strict": true, "esModuleInterop": true,