Skip to content

Commit 1e86d6d

Browse files
committed
build: use TSGo (TS 7.0 dev) to speed up building types
Also simplify and put timers into the bootstrap script
1 parent ab0536f commit 1e86d6d

7 files changed

Lines changed: 173 additions & 93 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"packages/*"
1515
],
1616
"scripts": {
17-
"build:themes": "ui-scripts build-themes",
1817
"prestart": "pnpm run bootstrap",
1918
"start": "pnpm --filter docs-app start",
2019
"start:watch": "pnpm --filter docs-app start:watch",
@@ -30,8 +29,9 @@
3029
"build": "pnpm -r --stream build",
3130
"build:watch": "pnpm -r --stream build:watch",
3231
"build:docs": "pnpm --filter docs-app bundle",
32+
"build:themes": "ui-scripts build-themes",
3333
"build:tokens": "ui-scripts generate-all-tokens",
34-
"build:types": "tsc -b tsconfig.references.json",
34+
"build:types": "tsgo -b tsconfig.references.json",
3535
"build:ts": "pnpm --filter @instructure/ui-icons prepare-build && pnpm run build:types",
3636
"clean": "node scripts/clean.js",
3737
"clean-node": "node scripts/clean.js --nuke_node",
@@ -76,6 +76,7 @@
7676
"@types/node": "^22",
7777
"@types/react": "18.3.26",
7878
"@types/react-dom": "18.3.1",
79+
"@typescript/native-preview": "7.0.0-dev.20260526.1",
7980
"@vitejs/plugin-react": "^4.5.1",
8081
"@vitest/eslint-plugin": "^1.6.14",
8182
"babel-plugin-add-import-extension": "^1.6.0",

packages/__docs__/globals.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ import ReactDOM from 'react-dom'
3434

3535
import { LoremIpsum } from 'lorem-ipsum'
3636
import moment from 'moment'
37-
// @ts-expect-error no type declarations for moment locales side-effect import
3837
import 'moment/min/locales'
39-
4038
import { mirrorHorizontalPlacement } from '@instructure/ui-position'
41-
4239
import { getComponentsForVersion } from './versioned-components'
4340
import { dark, light } from '@instructure/ui-themes'
4441
import { debounce } from '@instructure/debounce'

packages/ui-table/src/Table/__tests__/Table.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,11 @@ describe('<Table />', async () => {
209209
<Table.Body>
210210
test
211211
<span>test</span>
212-
{/* @ts-ignore error is normal here */}
212+
{/* @ts-expect-error error is normal here */}
213213
<Table.Row>
214214
test
215215
<span>test</span>
216+
{/* @ts-expect-error error is normal here */}
216217
<Table.Cell>Foo</Table.Cell>
217218
test
218219
<span>test</span>

pnpm-lock.yaml

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

regression-test/package-lock.json

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

0 commit comments

Comments
 (0)