Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
@@ -1,4 +1,5 @@
{
"editor.defaultFormatter": "biomejs.biome",
"nxConsole.generateAiAgentRules": true
"nxConsole.generateAiAgentRules": true,
"js/ts.experimental.useTsgo": true
}
5 changes: 5 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"code_actions_on_format": {
"source.organizeImports.biome": true,
"source.fixAll.biome": true
},
"languages": {
"TypeScript": {
"language_servers": ["tsgo", "vtsls"]
}
}
}
18 changes: 17 additions & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions libs/tsc/src/executors/typecheck/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const possibleTsConfigs = [
];

const tscTypecheckExecutor: Executor<TscTypecheckExecutorSchema> = async (
{ tsconfig = 'tsconfig.lib.json' },
{ tsconfig = 'tsconfig.lib.json', tsgo = false },
context,
) => {
const root = projectRoot(context);
Expand All @@ -31,7 +31,7 @@ const tscTypecheckExecutor: Executor<TscTypecheckExecutorSchema> = async (
}
}
try {
await promiseSpawn('tsc', ['--noEmit', '-p', resolve(root, tsconfig)], {
await promiseSpawn(tsgo ? 'tsgo' : 'tsc', ['--noEmit', '-p', resolve(root, tsconfig)], {
cwd: context.root,
env: process.env,
});
Expand Down
3 changes: 2 additions & 1 deletion libs/tsc/src/executors/typecheck/schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export interface TscTypecheckExecutorSchema {
tsconfig?: string; // specify the path to the tsconfig file
tsconfig?: string;
tsgo?: boolean;
}
7 changes: 6 additions & 1 deletion libs/tsc/src/executors/typecheck/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
"type": "object",
"properties": {
"tsconfig": {
"type": "string"
"type": "string",
"description": "Path to the tsconfig.json file"
},
"tsgo": {
"type": "boolean",
"description": "Use tsgo for type checking"
}
},
"required": []
Expand Down
5 changes: 4 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
},
"@riwi/tsc:typecheck": {
"cache": true,
"inputs": ["default", "{workspaceRoot}/tsconfig.base.json"]
"inputs": ["default", "{workspaceRoot}/tsconfig.base.json"],
"options": {
"tsgo": true
}
},
"@riwi/node:test": {
"cache": true,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"@swc/helpers": "0.5.21",
"@types/bun": "1.3.12",
"@types/nodemailer": "8.0.0",
"@typescript/native-preview": "7.0.0-dev.20260415.1",
"esbuild": "0.28.0",
"nodemailer": "8.0.5",
"nx": "22.6.5",
"playwright": "1.59.1",
"testcontainers": "11.14.0",
"typescript": "6.0.2"
"testcontainers": "11.14.0"
},
"dependencies": {
"puppeteer-core": "24.41.0",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false,
"types": ["bun"],
"baseUrl": "",
"ignoreDeprecations": "6.0",
"rootDir": ".",
"paths": {
Expand Down
Loading