Skip to content

Commit 9dbe953

Browse files
author
John Doe
committed
refactor: adjust nx.json 2
1 parent eab498a commit 9dbe953

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

nx.json

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
33
"namedInputs": {
44
"default": ["{projectRoot}/**/*", "sharedGlobals"],
5-
"os": [{ "runtime": "node -e \"console.log(require('os').platform())\"" }],
5+
"os": [
6+
{
7+
"runtime": "node -e \"console.log(require('os').platform())\""
8+
}
9+
],
610
"production": [
711
"default",
812
"!{projectRoot}/README.md",
@@ -25,23 +29,42 @@
2529
],
2630
"test-vitest-inputs": [
2731
"os",
28-
{ "env": "NX_VERBOSE_LOGGING" },
29-
{ "externalDependencies": ["vitest"] }
32+
{
33+
"env": "NX_VERBOSE_LOGGING"
34+
},
35+
{
36+
"externalDependencies": ["vitest"]
37+
}
3038
],
3139
"lint-eslint-inputs": [
3240
"{workspaceRoot}/eslint.config.js",
33-
{ "externalDependencies": ["eslint"] }
41+
{
42+
"externalDependencies": ["eslint"]
43+
}
3444
],
3545
"typecheck-typescript-inputs": [
3646
"{workspaceRoot}/tsconfig.base.json",
37-
{ "externalDependencies": ["typescript"] }
47+
{
48+
"externalDependencies": ["typescript"]
49+
}
3850
],
3951
"code-pushup-inputs": [
4052
"{workspaceRoot}/code-pushup.preset.ts",
41-
{ "env": "NODE_OPTIONS" },
42-
{ "env": "TSX_TSCONFIG_PATH" }
53+
{
54+
"env": "NODE_OPTIONS"
55+
},
56+
{
57+
"env": "TSX_TSCONFIG_PATH"
58+
}
4359
],
44-
"sharedGlobals": [{ "runtime": "node -v" }, { "runtime": "npm -v" }]
60+
"sharedGlobals": [
61+
{
62+
"runtime": "node -v"
63+
},
64+
{
65+
"runtime": "npm -v"
66+
}
67+
]
4568
},
4669
"targetDefaults": {
4770
"lint": {
@@ -125,7 +148,6 @@
125148
"cache": false,
126149
"dependsOn": ["code-pushup-*"],
127150
"options": {
128-
"projectPrefix": "cli",
129151
"config": "{projectRoot}/code-pushup.config.ts",
130152
"persist": {
131153
"outputDir": ".code-pushup/{projectName}"

0 commit comments

Comments
 (0)