Skip to content

Commit

Permalink
feat(typescript5): Add compatibility to typescript 5
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Typescript 4 is not longer supported
  • Loading branch information
uittorio committed May 11, 2023
1 parent 57994c5 commit 7378ad7
Show file tree
Hide file tree
Showing 34 changed files with 1,272 additions and 630 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ updates:
interval: "daily"
ignore:
- dependency-name: "@types/node"
# @types/node versions follow node versions. this project currently supports node lts/gallium and lts/fermium
# @types/node versions follow node versions. this project currently supports node lts/gallium and lts/hydrogen
versions: [ '>=17.0.0' ]
5 changes: 3 additions & 2 deletions .github/workflows/definitely-type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ jobs:

strategy:
matrix:
node-version: [ lts/gallium, lts/fermium ]
node-version: [ lts/hydrogen ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: run definitely typed build
run: |
npm ci
npm run ts-patch:install
npm run build
npm run build:transformer:definitelyTyped
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/definitelyTyped.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [ lts/gallium ]
node-version: [ lts/hydrogen ]

steps:
- uses: actions/checkout@v3
Expand All @@ -22,6 +22,7 @@ jobs:
- name: install ts auto mock
run: |
npm ci
npm run ts-patch:install
npm run build
npm run build:transformer:definitelyTyped
- name: definitelyTyped
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
node-version: [ 12.x ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ jobs:

strategy:
matrix:
node-version: [ lts/gallium ]
node-version: [ lts/hydrogen ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: install ts auto mock
run: |
npm ci
npm run ts-patch:install
npm run build
env:
CI: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
node-version: [ lts/gallium ]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUBTYPESCRIPTTDD }}
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

strategy:
matrix:
node-version: [ lts/gallium, lts/fermium, lts/hydrogen ]
node-version: [ lts/gallium, lts/hydrogen ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -28,13 +28,14 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgbm-dev
npm ci
npm run ts-patch:install
npm run build
npm test
check-type:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 7378ad7

Please sign in to comment.