Skip to content

Commit 0b389e7

Browse files
authored
chore: use tsgo instead of tsc (#338)
1 parent ac0e383 commit 0b389e7

File tree

7 files changed

+115
-13
lines changed

7 files changed

+115
-13
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"format:check": "prettier --ignore-path=.prettierignore --config=.prettierrc.json --check .",
2626
"test": "pnpm -r --filter=!@typescript/api --filter=!@typescript/ast --filter='@rslint/test-tools...' --filter='rslint...' test",
2727
"test:go": "go test ./internal/...",
28-
"typecheck": "pnpm tsc -b tsconfig.json",
28+
"typecheck": "pnpm tsgo -b tsconfig.json",
2929
"lint": "rslint",
3030
"lint:go": "golangci-lint run ./cmd/... ./internal/...",
3131
"format:go": "golangci-lint fmt ./cmd/... ./internal/...",
@@ -39,7 +39,8 @@
3939
"lint-staged": "^16.1.2",
4040
"prettier": "3.5.0",
4141
"typescript": "5.8.3",
42-
"zx": "8.7.1"
42+
"zx": "8.7.1",
43+
"@typescript/native-preview": "7.0.0-dev.20250904.1"
4344
},
4445
"lint-staged": {
4546
"*.{js,jsx,ts,tsx}": [

packages/rslint-api/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"scripts": {
1212
"build": "rslib build",
13-
"compile": "tsc -p tsconfig.build.json"
13+
"compile": "tsgo -p tsconfig.build.json"
1414
},
1515
"keywords": [],
1616
"author": "",
@@ -19,7 +19,8 @@
1919
"devDependencies": {
2020
"@typescript/api": "workspace:*",
2121
"@rslib/core": "0.12.4",
22-
"@types/node": "24.3.0"
22+
"@types/node": "24.3.0",
23+
"@typescript/native-preview": "7.0.0-dev.20250904.1"
2324
},
2425
"publishConfig": {
2526
"access": "public"

packages/rslint-wasm/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "dist/index.d.ts",
77
"scripts": {
88
"build:wasm": "cross-env GOOS=js GOARCH=wasm go build -o rslint.wasm -ldflags=\"-s -w\" ../../cmd/rslint",
9-
"build:js": "node scripts/build.mjs && tsc -b tsconfig.json",
9+
"build:js": "node scripts/build.mjs && tsgo -b tsconfig.json",
1010
"build": "pnpm run build:wasm && pnpm run build:js"
1111
},
1212
"files": [
@@ -31,7 +31,8 @@
3131
"cross-env": "^10.0.0",
3232
"esbuild-plugin-polyfill-node": "0.3.0",
3333
"memfs": "^4.38.2",
34-
"prebundle": "1.4.1"
34+
"prebundle": "1.4.1",
35+
"@typescript/native-preview": "7.0.0-dev.20250904.1"
3536
},
3637
"dependencies": {
3738
"@rslint/core": "workspace:*"

packages/rslint/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"scripts": {
2626
"build:bin": "go build -v -o bin/ ../../cmd/rslint",
2727
"build:debug": "GOEXPERIMENT=noregabi go build -v -gcflags='all=-N -l' -o bin/ ../../cmd/rslint ",
28-
"build:js": "tsc -b tsconfig.build.json --force",
29-
"dev": "tsc -b tsconfig.build.json --force --watch",
28+
"build:js": "tsgo -b tsconfig.build.json --force",
29+
"dev": "tsgo -b tsconfig.build.json --force --watch",
3030
"build": "pnpm build:bin && pnpm build:js",
3131
"test": "rstest run",
3232
"test:update": "rstest run -u"
@@ -55,7 +55,8 @@
5555
"devDependencies": {
5656
"@types/node": "24.0.14",
5757
"typescript": "5.8.3",
58-
"@rslint/api": "workspace:*"
58+
"@rslint/api": "workspace:*",
59+
"@typescript/native-preview": "7.0.0-dev.20250904.1"
5960
},
6061
"optionalDependencies": {
6162
"@rslint/darwin-arm64": "workspace:*",

packages/rule-tester/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"./package.json": "./package.json"
1515
},
1616
"scripts": {
17-
"build": "tsc -b tsconfig.build.json --force",
18-
"dev": "tsc -b tsconfig.build.json --force --watch",
17+
"build": "tsgo -b tsconfig.build.json --force",
18+
"dev": "tsgo -b tsconfig.build.json --force --watch",
1919
"test": "rstest run --testTimeout=0 --passWithNoTests",
2020
"test:update": "rstest run -u --testTimeout=0 --passWithNoTests"
2121
},
@@ -33,7 +33,8 @@
3333
"description": "Rule testing utilities for rslint",
3434
"devDependencies": {
3535
"@types/node": "24.0.14",
36-
"typescript": "5.8.3"
36+
"typescript": "5.8.3",
37+
"@typescript/native-preview": "7.0.0-dev.20250904.1"
3738
},
3839
"dependencies": {
3940
"@rslint/core": "workspace:*"

packages/vscode-extension/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"build": "node scripts/build.js",
8181
"watch": "node scripts/build.js --watch",
8282
"package": "vsce package",
83-
"test": "tsc -p tsconfig.spec.json && node .vscode-test-out/runTest.js"
83+
"test": "tsgo -p tsconfig.spec.json && node .vscode-test-out/runTest.js"
8484
},
8585
"devDependencies": {
8686
"@rslint/core": "workspace:*",
@@ -96,6 +96,7 @@
9696
"ovsx": "^0.10.5",
9797
"rimraf": "6.0.1",
9898
"typescript": "^5.0.0",
99+
"@typescript/native-preview": "7.0.0-dev.20250904.1",
99100
"vscode-languageclient": "^9.0.1",
100101
"vscode-languageserver": "^9.0.1",
101102
"vscode-languageserver-textdocument": "^1.0.12"

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)