diff --git a/nx.json b/nx.json index 7e7265dfe..806a8a509 100644 --- a/nx.json +++ b/nx.json @@ -127,15 +127,14 @@ "executor": "nx:run-commands", "dependsOn": ["code-pushup-*"], "options": { - "command": "node packages/cli/src/index.ts", + "command": "npx jiti-tsc packages/cli/src/index.ts", "args": [ "--config={projectRoot}/code-pushup.config.ts", "--cache.read", "--persist.outputDir=.code-pushup/{projectName}" ], "env": { - "NODE_OPTIONS": "--import tsx", - "TSX_TSCONFIG_PATH": "tsconfig.base.json" + "JITI_TS_CONFIG_PATH": "tsconfig.base.json" } } }, diff --git a/package-lock.json b/package-lock.json index b9c0986ff..9bc14cc43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54,6 +54,7 @@ "@nx/react": "22.3.3", "@nx/vite": "22.3.3", "@nx/workspace": "22.3.3", + "@push-based/jiti-tsc": "^0.0.2", "@push-based/nx-verdaccio": "0.0.7", "@swc-node/register": "1.9.2", "@swc/cli": "0.6.0", @@ -6316,6 +6317,29 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@push-based/jiti-tsc": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@push-based/jiti-tsc/-/jiti-tsc-0.0.2.tgz", + "integrity": "sha512-9K8IYbZePUzPHDkA6tuOukFcJT6xu6bbFtWaws0CtVsmQaeqyRrKuSYFMl73OIee7oOXUOZS2QMIZp3ky6sh/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansis": "^3.3.2", + "jiti": "^2.4.2", + "ora": "^9.0.0", + "tslib": "^2.8.1", + "typescript": "5.7.3" + }, + "bin": { + "jiti-tsc": "src/bin/bin.js" + }, + "engines": { + "node": ">=20.0.0" + }, + "peerDependencies": { + "zod": "^4.0.0" + } + }, "node_modules/@push-based/nx-verdaccio": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/@push-based/nx-verdaccio/-/nx-verdaccio-0.0.7.tgz", diff --git a/package.json b/package.json index a7b55cf4f..ba5389b73 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "@nx/react": "22.3.3", "@nx/vite": "22.3.3", "@nx/workspace": "22.3.3", + "@push-based/jiti-tsc": "^0.0.2", "@push-based/nx-verdaccio": "0.0.7", "@swc-node/register": "1.9.2", "@swc/cli": "0.6.0",