Skip to content

Commit 8daea18

Browse files
committed
refactor: wip
1 parent 2364c4e commit 8daea18

52 files changed

Lines changed: 18926 additions & 21664 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

examples/plugins/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"sourceRoot": "examples/plugins/src",
55
"projectType": "library",
66
"targets": {
7+
"build": {},
78
"lint": {},
89
"unit-test": {},
910
"int-test": {},

examples/plugins/tsconfig.lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "dist",
4+
"outDir": "../../dist/out-tsc",
55
"declaration": true,
66
"types": ["node"]
77
},

nx.json

Lines changed: 16 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
33
"namedInputs": {
44
"default": ["{projectRoot}/**/*", "sharedGlobals"],
5-
"os": [
6-
{
7-
"runtime": "node -e \"console.log(require('os').platform())\""
8-
}
9-
],
5+
"os": [{ "runtime": "node -e \"console.log(require('os').platform())\"" }],
106
"production": [
117
"default",
128
"!{projectRoot}/README.md",
@@ -29,42 +25,23 @@
2925
],
3026
"test-vitest-inputs": [
3127
"os",
32-
{
33-
"env": "NX_VERBOSE_LOGGING"
34-
},
35-
{
36-
"externalDependencies": ["vitest"]
37-
}
28+
{ "env": "NX_VERBOSE_LOGGING" },
29+
{ "externalDependencies": ["vitest"] }
3830
],
3931
"lint-eslint-inputs": [
4032
"{workspaceRoot}/eslint.config.js",
41-
{
42-
"externalDependencies": ["eslint"]
43-
}
33+
{ "externalDependencies": ["eslint"] }
4434
],
4535
"typecheck-typescript-inputs": [
4636
"{workspaceRoot}/tsconfig.base.json",
47-
{
48-
"externalDependencies": ["typescript"]
49-
}
37+
{ "externalDependencies": ["typescript"] }
5038
],
5139
"code-pushup-inputs": [
5240
"{workspaceRoot}/code-pushup.preset.ts",
53-
{
54-
"env": "NODE_OPTIONS"
55-
},
56-
{
57-
"env": "TSX_TSCONFIG_PATH"
58-
}
41+
{ "env": "NODE_OPTIONS" },
42+
{ "env": "TSX_TSCONFIG_PATH" }
5943
],
60-
"sharedGlobals": [
61-
{
62-
"runtime": "node -v"
63-
},
64-
{
65-
"runtime": "npm -v"
66-
}
67-
]
44+
"sharedGlobals": [{ "runtime": "node -v" }, { "runtime": "npm -v" }]
6845
},
6946
"targetDefaults": {
7047
"lint": {
@@ -90,7 +67,15 @@
9067
}
9168
},
9269
"build": {
70+
"dependsOn": ["^build"],
71+
"inputs": ["production", "^production"],
72+
"cache": true,
73+
"executor": "@nx/js:tsc",
74+
"outputs": ["{options.outputPath}"],
9375
"options": {
76+
"outputPath": "{projectRoot}/dist",
77+
"main": "{projectRoot}/src/index.ts",
78+
"tsConfig": "{projectRoot}/tsconfig.lib.json",
9479
"assets": ["{projectRoot}/*.md"]
9580
}
9681
},
@@ -326,11 +311,6 @@
326311
"packageRoot": "{projectRoot}/dist",
327312
"registry": "https://registry.npmjs.org/"
328313
}
329-
},
330-
"@nx/js:tsc": {
331-
"cache": true,
332-
"dependsOn": ["^build"],
333-
"inputs": ["production", "^production"]
334314
}
335315
},
336316
"workspaceLayout": {
@@ -380,35 +360,6 @@
380360
"filterByTags": ["publishable"]
381361
}
382362
}
383-
},
384-
{
385-
"plugin": "@nx/js/typescript",
386-
"options": {
387-
"typecheck": false,
388-
"build": {
389-
"targetName": "build",
390-
"configName": "tsconfig.lib.json",
391-
"buildDepsName": "tsc:build-deps",
392-
"watchDepsName": "tsc:watch-deps",
393-
"options": {
394-
"assets": ["{projectRoot}/*.md"]
395-
}
396-
}
397-
},
398-
"exclude": ["packages/utils/tmp/*"]
399-
},
400-
{
401-
"plugin": "@nx/js/typescript",
402-
"include": ["packages/utils/tmp/*"],
403-
"options": {
404-
"typecheck": {
405-
"targetName": "typecheck"
406-
},
407-
"build": {
408-
"targetName": "build",
409-
"configName": "tsconfig.lib.json"
410-
}
411-
}
412363
}
413364
],
414365
"nxCloudId": "65d4d862d2adb16a45a4bc7c"

0 commit comments

Comments
 (0)