Skip to content

Typescript 5.8 #2800

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

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
17293c1
Bump to TS5.0
TheSonOfThomp Apr 3, 2025
d008dc1
use typescript node API
TheSonOfThomp Apr 4, 2025
eee9c5c
handle cli options
TheSonOfThomp Apr 4, 2025
0b98361
use createSolutionBuilderHost
TheSonOfThomp Apr 4, 2025
b9dc060
add production flag
TheSonOfThomp Apr 4, 2025
58ea13f
makeTypescriptDiagnosticReporter
TheSonOfThomp Apr 4, 2025
ff84082
creates downlevelDts
TheSonOfThomp Apr 4, 2025
f744abe
downlevelDts parses package.json
TheSonOfThomp Apr 4, 2025
8afa687
use --downlevel flag
TheSonOfThomp Apr 4, 2025
5f9000f
add ts version override
TheSonOfThomp Apr 4, 2025
0d1c320
add --downlevel on prepublish
TheSonOfThomp Apr 4, 2025
af15a4a
adds changesets
TheSonOfThomp Apr 4, 2025
5858fc9
Update InlineCode.tsx
TheSonOfThomp Apr 3, 2025
d1b06fc
update packagejsons
TheSonOfThomp Apr 4, 2025
c1aaa0c
fix prepublishOnly
TheSonOfThomp Apr 4, 2025
153d7a3
update logging
TheSonOfThomp Apr 4, 2025
90b6901
Update build-typescript-5.md
TheSonOfThomp Apr 4, 2025
32ecdd9
fix build build scripts
TheSonOfThomp Apr 4, 2025
c58669d
"tsc": "lg-internal-build-ts"
TheSonOfThomp Apr 4, 2025
2a0f25d
add downlevel to prepublish
TheSonOfThomp Apr 4, 2025
5cde9cb
reset packagejson
TheSonOfThomp Apr 5, 2025
c4917f9
add runTypescriptDownlevel to bin
TheSonOfThomp Apr 5, 2025
7a1967c
Update pnpm-lock.yaml
TheSonOfThomp Apr 5, 2025
68385bc
Update package.json
TheSonOfThomp Apr 5, 2025
03a7c93
update typesVersions
TheSonOfThomp Apr 5, 2025
0ba3188
Update package.json
TheSonOfThomp Apr 5, 2025
830cf8b
Merge branch 'main' into a/ts5
TheSonOfThomp Apr 5, 2025
667e0de
Update package.json
TheSonOfThomp Apr 5, 2025
5af0d92
Merge branch 'main' into a/ts5
TheSonOfThomp Apr 7, 2025
39c072e
lint
TheSonOfThomp Apr 7, 2025
20ad2e0
lint console
TheSonOfThomp Apr 7, 2025
2064f39
Merge branch 'main' into a/ts5
TheSonOfThomp Apr 7, 2025
a3658d6
Merge branch 'main' into a/ts5
TheSonOfThomp Apr 8, 2025
e0a48e3
Update build-ts.spec.ts
TheSonOfThomp Apr 8, 2025
dfbb6fa
Merge branch 'main' into a/ts5
TheSonOfThomp Apr 9, 2025
0ebfad4
Update pnpm-lock.yaml
TheSonOfThomp Apr 9, 2025
65f92fc
add missing mock-fs
TheSonOfThomp Apr 9, 2025
af384a2
@types/mock-fs
TheSonOfThomp Apr 9, 2025
f3139d7
remove TS 3 downleveling
TheSonOfThomp Apr 9, 2025
5fa3672
rm chalk. fix mockFs
TheSonOfThomp Apr 9, 2025
d994c1a
creates updateTypesVersions script
TheSonOfThomp Apr 14, 2025
cfb9da9
exclude packages from ts downlevel script
TheSonOfThomp Apr 14, 2025
b11ab50
remove typesVersions
TheSonOfThomp Apr 14, 2025
9c0e843
Merge branch 'main' into a/ts5
TheSonOfThomp Apr 21, 2025
9c0239b
Create typescript-5-all.md
TheSonOfThomp Apr 21, 2025
48d9603
updates all tsconfigs
TheSonOfThomp Apr 21, 2025
2e15153
Update build-package.ts
TheSonOfThomp Apr 21, 2025
b00a933
updates scripts
TheSonOfThomp Apr 21, 2025
bc7a070
updates downlevel script
TheSonOfThomp Apr 21, 2025
41dad03
comments
TheSonOfThomp Apr 22, 2025
e64560b
T 5.8 (#2816)
TheSonOfThomp Apr 22, 2025
b488bbe
Update build-typescript-5.md
TheSonOfThomp Apr 22, 2025
8da1c85
Merge branch 'main' into a/ts5
TheSonOfThomp Apr 22, 2025
768915e
Update tsconfig.json
TheSonOfThomp Apr 22, 2025
1f6a890
lint fix
TheSonOfThomp Apr 22, 2025
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
8 changes: 8 additions & 0 deletions .changeset/build-typescript-5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@lg-tools/build': minor
---

- Upgrades to TS 5.8.
- Adds `--downlevel` option for `build-ts`. This option exports downleveled `*.d.ts` files for a defined set of targets.
Updates a package's `package.json` if necessary `--update` flag is provided.
This uses [downlevel-dts](https://github.com/sandersn/downlevel-dts) under the hood.
5 changes: 5 additions & 0 deletions .changeset/cli-ts-downlevel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lg-tools/cli': minor
---

Adds `--downlevel` option for `build-ts`. This option reads a package's package.json and exports downleveled `*.d.ts` files for all targets listed in `"typeVersions"`
102 changes: 102 additions & 0 deletions .changeset/typescript-5-all.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
'@leafygreen-ui/a11y': major
'@leafygreen-ui/avatar': major
'@leafygreen-ui/badge': major
'@leafygreen-ui/banner': major
'@leafygreen-ui/box': major
'@leafygreen-ui/button': major
'@leafygreen-ui/callout': major
'@leafygreen-ui/card': major
'@leafygreen-ui/checkbox': major
'@leafygreen-ui/chip': major
'@leafygreen-ui/code': major
'@leafygreen-ui/combobox': major
'@leafygreen-ui/confirmation-modal': major
'@leafygreen-ui/copyable': major
'@leafygreen-ui/date-picker': major
'@leafygreen-ui/descendants': major
'@leafygreen-ui/drawer': major
'@leafygreen-ui/emotion': major
'@leafygreen-ui/empty-state': major
'@leafygreen-ui/expandable-card': major
'@leafygreen-ui/form-field': major
'@leafygreen-ui/form-footer': major
'@leafygreen-ui/gallery-indicator': major
'@leafygreen-ui/guide-cue': major
'@leafygreen-ui/hooks': major
'@leafygreen-ui/icon': major
'@leafygreen-ui/icon-button': major
'@leafygreen-ui/info-sprinkle': major
'@leafygreen-ui/inline-definition': major
'@leafygreen-ui/input-option': major
'@leafygreen-ui/leafygreen-provider': major
'@leafygreen-ui/lib': major
'@leafygreen-ui/loading-indicator': major
'@leafygreen-ui/logo': major
'@leafygreen-ui/marketing-modal': major
'@leafygreen-ui/menu': major
'@leafygreen-ui/modal': major
'@leafygreen-ui/number-input': major
'@leafygreen-ui/ordered-list': major
'@leafygreen-ui/pagination': major
'@leafygreen-ui/palette': major
'@leafygreen-ui/password-input': major
'@leafygreen-ui/pipeline': major
'@leafygreen-ui/polymorphic': major
'@leafygreen-ui/popover': major
'@leafygreen-ui/portal': major
'@leafygreen-ui/radio-box-group': major
'@leafygreen-ui/radio-group': major
'@leafygreen-ui/ripple': major
'@leafygreen-ui/search-input': major
'@leafygreen-ui/segmented-control': major
'@leafygreen-ui/select': major
'@leafygreen-ui/side-nav': major
'@leafygreen-ui/skeleton-loader': major
'@leafygreen-ui/split-button': major
'@leafygreen-ui/stepper': major
'@leafygreen-ui/table': major
'@leafygreen-ui/tabs': major
'@leafygreen-ui/text-area': major
'@leafygreen-ui/text-input': major
'@leafygreen-ui/toast': major
'@leafygreen-ui/toggle': major
'@leafygreen-ui/tokens': major
'@leafygreen-ui/tooltip': major
'@leafygreen-ui/typography': major
'@lg-chat/avatar': major
'@lg-chat/chat-disclaimer': major
'@lg-chat/chat-window': major
'@lg-chat/fixed-chat-window': major
'@lg-chat/input-bar': major
'@lg-chat/leafygreen-chat-provider': major
'@lg-chat/lg-markdown': major
'@lg-chat/message': major
'@lg-chat/message-feed': major
'@lg-chat/message-feedback': major
'@lg-chat/message-prompts': major
'@lg-chat/message-rating': major
'@lg-chat/rich-links': major
'@lg-chat/title-bar': major
'@lg-tools/lint': major

'@lg-tools/build': minor
'@lg-tools/cli': minor
'@lg-tools/meta': minor
'@lg-tools/codemods': minor
'@leafygreen-ui/date-utils': minor
'@leafygreen-ui/testing-lib': minor
'@lg-tools/storybook-addon': minor
'@lg-tools/storybook-decorators': minor
'@lg-tools/storybook-utils': minor
'@lg-tools/test-harnesses': minor
'@lg-charts/chart-card': minor
'@lg-charts/colors': minor
'@lg-charts/core': minor
'@lg-charts/drag-provider': minor
'@lg-charts/legend': minor
'@lg-charts/series-provider': minor

---

Updates Typescript build to TS5.0
3 changes: 2 additions & 1 deletion charts/chart-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@
},
"bugs": {
"url": "https://jira.mongodb.org/projects/PD/summary"
}
},
"typesVersions": {}
}
3 changes: 2 additions & 1 deletion charts/colors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
},
"bugs": {
"url": "https://jira.mongodb.org/projects/PD/summary"
}
},
"typesVersions": {}
}
3 changes: 2 additions & 1 deletion charts/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@
},
"bugs": {
"url": "https://jira.mongodb.org/projects/PD/summary"
}
},
"typesVersions": {}
}
1 change: 1 addition & 0 deletions charts/core/src/XAxis/XAxis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const getOptions = ({
width: 1,
},
},
// @ts-expect-error TODO:
axisLabel: {
show: true,
fontFamily: fontFamilies.default,
Expand Down
1 change: 1 addition & 0 deletions charts/core/src/YAxis/YAxis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const getOptions = ({
width: 1,
},
},
// @ts-expect-error TODO:
axisLabel: {
show: true,
fontFamily: fontFamilies.default,
Expand Down
5 changes: 3 additions & 2 deletions charts/drag-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
},
"devDependencies": {
"@storybook/test": "8.5.3"
}
}
},
"typesVersions": {}
}
3 changes: 2 additions & 1 deletion charts/legend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@
},
"bugs": {
"url": "https://jira.mongodb.org/projects/PD/summary"
}
},
"typesVersions": {}
}
5 changes: 3 additions & 2 deletions charts/series-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
},
"peerDependencies": {
"@leafygreen-ui/leafygreen-provider": "workspace:^"
}
}
},
"typesVersions": {}
}
8 changes: 1 addition & 7 deletions chat/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"typesVersions": {},
"scripts": {
"build": "lg build-package",
"tsc": "lg build-ts"
Expand Down
3 changes: 2 additions & 1 deletion chat/chat-disclaimer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
},
"bugs": {
"url": "https://jira.mongodb.org/projects/PD/summary"
}
},
"typesVersions": {}
}
8 changes: 1 addition & 7 deletions chat/chat-window/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"typesVersions": {},
"scripts": {
"build": "lg build-package",
"tsc": "lg build-ts"
Expand Down
3 changes: 2 additions & 1 deletion chat/fixed-chat-window/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
},
"bugs": {
"url": "https://jira.mongodb.org/projects/PD/summary"
}
},
"typesVersions": {}
}
8 changes: 1 addition & 7 deletions chat/input-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"typesVersions": {},
"scripts": {
"build": "lg build-package",
"tsc": "lg build-ts"
Expand Down
8 changes: 1 addition & 7 deletions chat/leafygreen-chat-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"typesVersions": {},
"scripts": {
"build": "lg build-package",
"tsc": "lg build-ts"
Expand Down
8 changes: 1 addition & 7 deletions chat/lg-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"typesVersions": {},
"scripts": {
"build": "lg build-package",
"tsc": "lg build-ts"
Expand Down
8 changes: 1 addition & 7 deletions chat/message-feed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"typesVersions": {},
"scripts": {
"build": "lg build-package",
"tsc": "lg build-ts"
Expand Down
8 changes: 1 addition & 7 deletions chat/message-feedback/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"typesVersions": {},
"license": "Apache-2.0",
"scripts": {
"build": "lg build-package",
Expand Down
3 changes: 2 additions & 1 deletion chat/message-prompts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
"bugs": {
"url": "https://jira.mongodb.org/projects/PD/summary"
},
"devDependencies": {}
"devDependencies": {},
"typesVersions": {}
}
8 changes: 1 addition & 7 deletions chat/message-rating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"typesVersions": {},
"scripts": {
"build": "lg build-package",
"tsc": "lg build-ts"
Expand Down
8 changes: 1 addition & 7 deletions chat/message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"typesVersions": {},
"scripts": {
"build": "lg build-package",
"tsc": "lg build-ts"
Expand Down
3 changes: 2 additions & 1 deletion chat/rich-links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@
"bugs": {
"url": "https://jira.mongodb.org/projects/PD/summary"
},
"devDependencies": {}
"devDependencies": {},
"typesVersions": {}
}
8 changes: 1 addition & 7 deletions chat/title-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"ts3.4/*"
]
}
},
"typesVersions": {},
"scripts": {
"build": "lg build-package",
"tsc": "lg build-ts"
Expand Down
Loading
Loading