diff --git a/deploy/createTypesPackages.js b/deploy/createTypesPackages.js index a1677f0fc..15b53fb98 100644 --- a/deploy/createTypesPackages.js +++ b/deploy/createTypesPackages.js @@ -196,7 +196,7 @@ async function updatePackageJSON(pkg, packagePath) { /** * Copies the README and adds some rudimentary templating to the file. * @param {Package} pkg - * @param {import("./template/package.json")} pkgJSON + * @param {typeof import("./template/package.json")} pkgJSON * @param {URL} writePath */ function copyREADME(pkg, pkgJSON, writePath) { diff --git a/package-lock.json b/package-lock.json index 4a5f6b393..79144ef20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,13 +10,14 @@ "license": "Apache-2.0", "devDependencies": { "@eslint/js": "^9", - "@mdn/browser-compat-data": "^6.0.4", + "@mdn/browser-compat-data": "^6.1.0", "@octokit/rest": "^22.0.0", "@types/node": "^24.0.9", "@types/prettier": "^3.0.0", "@types/webidl2": "^24.4.3", "@typescript-eslint/eslint-plugin": "^8", "@typescript-eslint/parser": "^8", + "@typescript/native-preview": "^7.0.0-dev.20250804.1", "@webref/css": "^6.23.6", "@webref/elements": "^2.5.0", "@webref/events": "^1.18.6", @@ -1036,6 +1037,147 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@typescript/native-preview": { + "version": "7.0.0-dev.20250804.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview/-/native-preview-7.0.0-dev.20250804.1.tgz", + "integrity": "sha512-EVYSeheDmdLrvwWRW4RXl47rUMEst6JkO7hgvwYEF8TBQ4zrBWcMlCulhgI5MsvCrNf7hkVn6628bCkp/5Ik2A==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsgo": "bin/tsgo.js" + }, + "engines": { + "node": ">=20.6.0" + }, + "optionalDependencies": { + "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20250804.1", + "@typescript/native-preview-darwin-x64": "7.0.0-dev.20250804.1", + "@typescript/native-preview-linux-arm": "7.0.0-dev.20250804.1", + "@typescript/native-preview-linux-arm64": "7.0.0-dev.20250804.1", + "@typescript/native-preview-linux-x64": "7.0.0-dev.20250804.1", + "@typescript/native-preview-win32-arm64": "7.0.0-dev.20250804.1", + "@typescript/native-preview-win32-x64": "7.0.0-dev.20250804.1" + } + }, + "node_modules/@typescript/native-preview-darwin-arm64": { + "version": "7.0.0-dev.20250804.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-darwin-arm64/-/native-preview-darwin-arm64-7.0.0-dev.20250804.1.tgz", + "integrity": "sha512-Bn7ptzfXtXUmriod5fadXo5+j8VfeJmePm54IcbtqwxhyDkcvyHPhOhp2l7IMtpVOwuXTua/hid6HCHe0LXTaQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-darwin-x64": { + "version": "7.0.0-dev.20250804.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-darwin-x64/-/native-preview-darwin-x64-7.0.0-dev.20250804.1.tgz", + "integrity": "sha512-WN4sCqnEfrvr7n+YfZR/Wme5FZ88ASY5p2Zcvbm1bMO1FCn2h7iPnInoMfynsoYmfcWQhZqEaSkmK6HGeJKuWQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-linux-arm": { + "version": "7.0.0-dev.20250804.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-arm/-/native-preview-linux-arm-7.0.0-dev.20250804.1.tgz", + "integrity": "sha512-emtoOuf+K8TK9JnQn8RsNs/mNiPQ/u5xR+N1S7IQFgiEBrngPzCKSwDrtPbY9xGh9mVg7aGa58+Y/hAtXudFwQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-linux-arm64": { + "version": "7.0.0-dev.20250804.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-arm64/-/native-preview-linux-arm64-7.0.0-dev.20250804.1.tgz", + "integrity": "sha512-N5NHuiT9gBDl3+sW0OGJPeSZYAwYZGfMf2ES4ZDj1Pd4TDR2b6S47FckQVrGWzVDImoqZZsJan5gs3cofTE8nA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-linux-x64": { + "version": "7.0.0-dev.20250804.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-linux-x64/-/native-preview-linux-x64-7.0.0-dev.20250804.1.tgz", + "integrity": "sha512-yT9JKfbuSh3hNybNqUHIsuoOvVsLka7JfRfNh2Hes1eJGVH04I4E5tKAlzI9Iy7OEWCovHZFblQRjp/3CJYxyA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-win32-arm64": { + "version": "7.0.0-dev.20250804.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-win32-arm64/-/native-preview-win32-arm64-7.0.0-dev.20250804.1.tgz", + "integrity": "sha512-da5LkGm/l1zzpaTc2FwQh1F3H1pYSAUpqHzskcPL//SDTfrQnkbN9dPn+CI8cHDRv8lCAQFXII+xFFLWPMNXyQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.6.0" + } + }, + "node_modules/@typescript/native-preview-win32-x64": { + "version": "7.0.0-dev.20250804.1", + "resolved": "https://registry.npmjs.org/@typescript/native-preview-win32-x64/-/native-preview-win32-x64-7.0.0-dev.20250804.1.tgz", + "integrity": "sha512-zC+Wzi8Lr+RGF69PHHnesyoImBTwkzdPD9aoHTrynrP8Fcv+oRAUQmQcI0JFB0cEzFxMQ1sUMdBrAikdveaz1g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.6.0" + } + }, "node_modules/@webref/css": { "version": "6.23.6", "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.23.6.tgz", diff --git a/package.json b/package.json index e387283cc..5a2100fa8 100644 --- a/package.json +++ b/package.json @@ -12,15 +12,15 @@ "worklet" ], "scripts": { - "build": "tsc && node ./lib/build.js", + "build": "tsgo && node ./lib/build.js", "baseline-accept": "cpx \"generated\\**\" baselines\\", - "lint": "eslint --max-warnings 0 src deploy/*.js && tsc -p deploy/jsconfig.json", + "lint": "eslint --max-warnings 0 src deploy/*.js && tsgo -p deploy/jsconfig.json", "lint-fix": "eslint --max-warnings 0 src deploy/*.js --fix", "test": "npm run build && npm run lint && node ./lib/test.js && node ./unittests/index.js", - "changelog": "tsc && node ./lib/changelog.js", + "changelog": "tsgo && node ./lib/changelog.js", "ts-changelog": "node ./deploy/versionChangelog.js", "migrate": "node ./deploy/migrate.js", - "version": "npm i && tsc && node ./lib/version.js", + "version": "npm i && tsgo && node ./lib/version.js", "generate": "npm run build && npm run baseline-accept" }, "author": { @@ -39,13 +39,14 @@ "type": "module", "devDependencies": { "@eslint/js": "^9", - "@mdn/browser-compat-data": "^6.0.4", + "@mdn/browser-compat-data": "^6.1.0", "@octokit/rest": "^22.0.0", "@types/node": "^24.0.9", "@types/prettier": "^3.0.0", "@types/webidl2": "^24.4.3", "@typescript-eslint/eslint-plugin": "^8", "@typescript-eslint/parser": "^8", + "@typescript/native-preview": "^7.0.0-dev.20250804.1", "@webref/css": "^6.23.6", "@webref/elements": "^2.5.0", "@webref/events": "^1.18.6",