Skip to content

Commit bbd8648

Browse files
committed
feat: use jiti for plugin loading
1 parent ce4fadb commit bbd8648

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

nx.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,14 @@
127127
"executor": "nx:run-commands",
128128
"dependsOn": ["code-pushup-*"],
129129
"options": {
130-
"command": "node packages/cli/src/index.ts",
130+
"command": "npx jiti-tsc packages/cli/src/index.ts",
131131
"args": [
132132
"--config={projectRoot}/code-pushup.config.ts",
133133
"--cache.read",
134134
"--persist.outputDir=.code-pushup/{projectName}"
135135
],
136136
"env": {
137-
"NODE_OPTIONS": "--import tsx",
138-
"TSX_TSCONFIG_PATH": "tsconfig.base.json"
137+
"JITI_TS_CONFIG_PATH": "tsconfig.base.json"
139138
}
140139
}
141140
},

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"@nx/react": "22.3.3",
6565
"@nx/vite": "22.3.3",
6666
"@nx/workspace": "22.3.3",
67+
"@push-based/jiti-tsc": "^0.0.2",
6768
"@push-based/nx-verdaccio": "0.0.7",
6869
"@swc-node/register": "1.9.2",
6970
"@swc/cli": "0.6.0",

0 commit comments

Comments
 (0)