Skip to content

Commit fb9d3d2

Browse files
authored
feat: update type generation commands to use tsgo across multiple packages (#4606)
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 1c0e886 commit fb9d3d2

29 files changed

Lines changed: 172 additions & 29 deletions

File tree

demos/gallery/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"clean": "rimraf --glob types dist *.tsbuildinfo",
77
"bundle": "vite build",
88
"bundle-watch": "vite --port 5500",
9-
"gen-types": "tsc --project tsconfig.json",
9+
"gen-types": "tsgo --project tsconfig.json",
1010
"gen-types-watch": "npm run gen-types -- --watch",
1111
"gen-filejson": "node ./util/dir2json.js ./samples",
1212
"build": "npm-run-all --serial gen-filejson --parallel gen-types bundle gen-filejson",

package-lock.json

Lines changed: 142 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"@eslint/js": "10.0.1",
4343
"@types/esbuild-copy-static-files": "0.1.4",
4444
"@typescript-eslint/parser": "8.60.0",
45+
"@typescript/native-preview": "7.0.0-dev.20260527.2",
4546
"@vitest/browser": "4.1.7",
4647
"@vitest/browser-playwright": "4.1.7",
4748
"@vitest/coverage-v8": "4.1.7",

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"bundle": "vite build",
2626
"bundle-watch": "vite build --watch",
2727
"bundle-serve": "vite",
28-
"gen-types": "tsc --project tsconfig.json",
28+
"gen-types": "tsgo --project tsconfig.json",
2929
"gen-types-watch": "npm run gen-types -- --watch",
3030
"build": "run-p gen-types bundle",
3131
"watch": "run-p gen-types-watch bundle-watch",

packages/chart/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"bundle": "vite build",
2626
"bundle-watch": "vite build --watch",
2727
"bundle-serve": "vite --port 5500",
28-
"gen-types": "tsc --project tsconfig.json",
28+
"gen-types": "tsgo --project tsconfig.json",
2929
"gen-types-watch": "npm run gen-types -- --watch",
3030
"build": "run-p gen-types bundle",
3131
"watch": "run-p gen-types-watch bundle-watch",

packages/codemirror/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"bundle": "vite build",
2626
"bundle-watch": "vite build --watch",
2727
"bundle-serve": "vite --port 5501",
28-
"gen-types": "tsc --project tsconfig.json",
28+
"gen-types": "tsgo --project tsconfig.json",
2929
"gen-types-watch": "npm run gen-types -- --watch",
3030
"build": "run-p gen-types bundle",
3131
"watch": "run-p gen-types-watch bundle-watch",

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"bundle": "vite build",
2828
"bundle-watch": "vite build --watch",
2929
"bundle-serve": "vite --port 5502",
30-
"gen-types": "tsc --project tsconfig.json",
30+
"gen-types": "tsgo --project tsconfig.json",
3131
"gen-types-watch": "npm run gen-types -- --watch",
3232
"build": "run-p gen-types bundle",
3333
"watch": "run-p gen-types-watch bundle-watch",

packages/comms/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"bundle": "run-s bundle-browser bundle-node",
4141
"bundle-watch": "vite build --watch",
4242
"bundle-serve": "vite",
43-
"gen-types": "tsc --project tsconfig.json",
43+
"gen-types": "tsgo --project tsconfig.json",
4444
"gen-types-watch": "npm run gen-types -- --watch",
4545
"build": "run-p gen-types bundle",
4646
"watch": "run-p gen-types-watch bundle-watch",

packages/composite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"bundle": "vite build",
2626
"bundle-watch": "vite build --watch",
2727
"bundle-serve": "vite --port 5503",
28-
"gen-types": "tsc --project tsconfig.json",
28+
"gen-types": "tsgo --project tsconfig.json",
2929
"gen-types-watch": "npm run gen-types -- --watch",
3030
"build": "run-p gen-types bundle",
3131
"watch": "run-p gen-types-watch bundle-watch",

packages/dataflow/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"bundle": "vite build",
2626
"bundle-watch": "vite build --watch",
2727
"bundle-serve": "vite",
28-
"gen-types": "tsc --project tsconfig.json",
28+
"gen-types": "tsgo --project tsconfig.json",
2929
"gen-types-watch": "npm run gen-types -- --watch",
3030
"build": "run-p gen-types bundle",
3131
"watch": "run-p gen-types-watch bundle-watch",
@@ -34,7 +34,7 @@
3434
"docs": "typedoc --options tdoptions.json .",
3535
"test-browser": "vitest run --project browser",
3636
"test-node": "vitest run --project node",
37-
"test-types": "npx --yes tsc --project tsconfig.tests.json --noEmit",
37+
"test-types": "npx --yes tsgo --project tsconfig.tests.json --noEmit",
3838
"test-vitest": "vitest run",
3939
"test": "run-s test-types test-vitest",
4040
"bench": "vitest bench",

0 commit comments

Comments
 (0)