Skip to content

Migrate to Typescript-go #2104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/createTypesPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
144 changes: 143 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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",
Expand Down
Loading