Skip to content

⚡️ Migrate to tsgo #57

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

Merged
merged 2 commits into from
Jun 6, 2025
Merged
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -12,11 +12,12 @@
"editor.formatOnSave": true,
"eslint.useFlatConfig": true,
"explorer.fileNesting.patterns": {
".env": ".env.*",
"*.js": "${capture}.d.ts, ${capture}.d.ts.map, ${capture}.js.map, ${capture}.min.js, ${capture}.test.d.ts.map",
"*.ts": "${capture}.test.ts, ${capture}.test.ts.map",
".env": ".env.*",
"package.json": "bun.lockb, package-lock.json, pnpm-lock.yaml, yarn.lock",
"tsconfig.json": "tsconfig.*.json, tsconfig.tsbuildinfo"
},
"typescript.experimental.useTsgo": true,
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 0 additions & 2 deletions eslint.config.js → eslint.config.ts
Original file line number Diff line number Diff line change
@@ -3,8 +3,6 @@ import prettier from "eslint-config-prettier"
import globals from "globals"
import tseslint from "typescript-eslint"

/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access */

export default tseslint.config(
{
languageOptions: {
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@
},
"repository": "github:coderabbitai/bitbucket",
"scripts": {
"build": "tsc",
"build": "tsgo",
"clean": "rm -rf dist docs node_modules tsconfig.tsbuildinfo",
"dev": "node ./src/main.ts",
"docs": "typedoc",
@@ -56,10 +56,12 @@
"@eslint/js": "^9.21.0",
"@natoboram/load_env": "^1.0.0",
"@types/node": "^22.13.5",
"@typescript/native-preview": "7.0.0-dev.20250605.1",
"dotenv": "^16.4.7",
"eslint": "^9.21.0",
"eslint-config-prettier": "^10.0.2",
"globals": "^16.0.0",
"jiti": "^2.4.2",
"markdownlint-cli2": "^0.18.1",
"openapi-typescript": "^7.8.0",
"prettier": "^3.5.2",
167 changes: 130 additions & 37 deletions pnpm-lock.yaml
2 changes: 1 addition & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -59,5 +59,5 @@
"skipDefaultLibCheck": true,
"skipLibCheck": true
},
"include": ["eslint.config.js", "src", "tests"]
"include": ["eslint.config.ts", "src", "tests"]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -61,5 +61,5 @@
"skipLibCheck": true
},
"include": ["src"],
"exclude": ["eslint.config.js", "tests"]
"exclude": ["eslint.config.ts", "tests"]
}