Skip to content

Commit 0b5b52a

Browse files
Use node native ts instead of tsm (#3772)
Co-authored-by: tauri <67875262+tauri-bot@users.noreply.github.com> Co-authored-by: Legend-Master <Legend-Master@users.noreply.github.com>
1 parent 3ad5f71 commit 0b5b52a

12 files changed

Lines changed: 40 additions & 311 deletions

File tree

.github/workflows/check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out code using Git
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414

15-
- uses: pnpm/action-setup@v4
15+
- uses: pnpm/action-setup@v5
1616

17-
- uses: actions/setup-node@v4
17+
- uses: actions/setup-node@v6
1818
with:
19-
node-version: 22
20-
cache: 'pnpm'
19+
node-version: 24
20+
cache: pnpm
2121

2222
- run: pnpm i
2323

.github/workflows/syncSponsorsData.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
1717

18-
- uses: pnpm/action-setup@v4
18+
- uses: pnpm/action-setup@v5
1919

20-
- uses: actions/setup-node@v4
20+
- uses: actions/setup-node@v6
2121
with:
22-
node-version: 22
23-
cache: 'pnpm'
22+
node-version: 24
23+
cache: pnpm
2424

2525
- run: pnpm i
2626

packages/cli-generator/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
"main": "index.js",
77
"type": "module",
88
"scripts": {
9-
"build": "tsm ./build.ts"
9+
"build": "node ./build.ts"
1010
},
1111
"keywords": [],
1212
"author": "",
1313
"license": "MIT",
1414
"dependencies": {
1515
"@tauri-apps/cli": "2.10.1",
16-
"@types/node": "^22.0.0",
16+
"@types/node": "^24.0.0",
1717
"github-slugger": "^2.0.0",
18-
"tsm": "^2.3.0",
1918
"typescript": "^5.3.3"
2019
}
2120
}

packages/compatibility-table/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
"main": "index.js",
77
"type": "module",
88
"scripts": {
9-
"build": "tsm ./build.ts"
9+
"build": "node ./build.ts"
1010
},
1111
"keywords": [],
1212
"author": "",
1313
"license": "MIT",
1414
"dependencies": {
1515
"@iarna/toml": "^2.2.5",
16-
"@types/node": "^22.0.0",
17-
"tsm": "^2.3.0",
16+
"@types/node": "^24.0.0",
1817
"typescript": "^5.3.3"
1918
}
2019
}

packages/config-generator/build.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { JSONSchema7, JSONSchema7Definition, JSONSchema7TypeName } from 'json-schema';
1+
import type { JSONSchema7, JSONSchema7Definition, JSONSchema7TypeName } from 'json-schema';
22
import { existsSync, writeFileSync } from 'node:fs';
33
import { slug } from 'github-slugger';
44

@@ -38,15 +38,15 @@ async function generatePageFromSchema(
3838
);
3939
}
4040

41-
let schema: JSONSchema7 = (await import(schemaFile)).default;
41+
let schema: JSONSchema7 = (await import(schemaFile, { with: { type: 'json' } })).default;
4242

4343
const output = [
4444
`---
4545
# NOTE: This file is auto-generated. Do not edit here!
4646
# For corrections please directly edit the documentation of the underlying Rust source code.
47-
# Example for the configuration reference:
47+
# Example for the configuration reference:
4848
# - https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-utils/src/config.rs
49-
49+
5050
title: ${pageTitle}
5151
sidebar:
5252
order: ${sidebarOrder}\n---`,

packages/config-generator/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
"main": "index.js",
77
"type": "module",
88
"scripts": {
9-
"build": "tsm ./build.ts"
9+
"build": "node ./build.ts"
1010
},
1111
"keywords": [],
1212
"author": "",
1313
"license": "MIT",
1414
"dependencies": {
1515
"@types/json-schema": "^7.0.15",
16-
"@types/node": "^22.0.0",
16+
"@types/node": "^24.0.0",
1717
"github-slugger": "^2.0.0",
18-
"tsm": "^2.3.0",
1918
"typescript": "^5.3.3"
2019
}
2120
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2021",
3+
"module": "nodenext",
4+
"moduleResolution": "nodenext",
45
"esModuleInterop": true,
56
"strict": true,
7+
"noEmit": true,
68
"skipLibCheck": true
79
}
810
}

packages/fetch-sponsors/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"main": "index.js",
88
"license": "MIT",
99
"scripts": {
10-
"build": "tsm ./main.ts"
10+
"build": "node ./main.ts"
1111
},
1212
"keywords": [],
1313
"author": "",
@@ -19,9 +19,8 @@
1919
"@octokit/plugin-retry": "^8.0.1",
2020
"@octokit/plugin-throttling": "^11.0.1",
2121
"@octokit/types": "^14.1.0",
22-
"@types/node": "^22.15.21",
22+
"@types/node": "^24.0.0",
2323
"dotenv": "^17.2.1",
24-
"tsm": "^2.3.0",
2524
"typescript": "^5.8.3"
2625
}
2726
}

packages/js-api-generator/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"build": "tsm ./build.ts"
7+
"build": "node ./build.ts"
88
},
99
"keywords": [],
1010
"author": "",
1111
"license": "MIT",
1212
"private": "true",
1313
"dependencies": {
1414
"github-slugger": "^2.0.0",
15-
"tsm": "^2.3.0",
1615
"typedoc": "0.26.6",
1716
"typedoc-plugin-markdown": "4.2.6",
1817
"typedoc-plugin-mdn-links": "3.2.11",

packages/releases-generator/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"build": "tsm ./build.ts"
7+
"build": "node ./build.ts"
88
},
99
"keywords": [],
1010
"author": "",
1111
"license": "ISC",
1212
"dependencies": {
1313
"@types/semver": "^7.5.8",
14-
"semver": "^7.6.0",
15-
"tsm": "^2.3.0"
14+
"semver": "^7.6.0"
1615
}
1716
}

0 commit comments

Comments
 (0)