Skip to content

Commit 21e93bf

Browse files
authored
Use node16 (#2108)
* Use node16 * - * Set submodule to 49ff45b
1 parent d6b6f08 commit 21e93bf

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

deploy/createTypesPackages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const go = async () => {
151151
async function updatePackageJSON(pkg, packagePath) {
152152
const pkgJSONPath = new URL("package.json", packagePath);
153153
const packageText = fs.readFileSync(pkgJSONPath, "utf8");
154-
/** @type {import("./template/package.json")} */
154+
/** @type {typeof import("./template/package.json")} */
155155
const packageJSON = JSON.parse(packageText);
156156
packageJSON.name = pkg.name;
157157
packageJSON.description = pkg.description;

src/build/bcd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Browser from "./types";
1+
import * as Browser from "./types.js";
22
import {
33
CompatStatement,
44
SimpleSupportStatement,

src/build/bcd/mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
SimpleSupportStatement,
66
} from "bcd-idl-mapper";
77
import api from "bcd-idl-mapper";
8-
import * as Browser from "../types";
8+
import * as Browser from "../types.js";
99
import { filterMapRecord, isEmptyRecord } from "../utils/record.js";
1010
import { mapDefined } from "../helpers.js";
1111
import { hasStableImplementation } from "./stable.js";

src/build/patches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { parse, type Value, type Node } from "kdljs";
2-
import type { Enum, Event, Property, Interface, WebIdl } from "./types";
2+
import type { Enum, Event, Property, Interface, WebIdl } from "./types.js";
33
import { readdir, readFile } from "fs/promises";
44
import { merge } from "./helpers.js";
55

File renamed without changes.

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "es2022",
4-
"module": "esnext",
5-
"moduleResolution": "node",
4+
"module": "node16",
5+
"moduleResolution": "node16",
66
"outDir": "./lib",
77
"strict": true,
88
"esModuleInterop": true,

0 commit comments

Comments
 (0)