|
2 | 2 | "$schema": "./node_modules/nx/schemas/nx-schema.json", |
3 | 3 | "namedInputs": { |
4 | 4 | "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 | + ], |
6 | 10 | "production": [ |
7 | 11 | "default", |
8 | 12 | "!{projectRoot}/README.md", |
|
25 | 29 | ], |
26 | 30 | "test-vitest-inputs": [ |
27 | 31 | "os", |
28 | | - { "env": "NX_VERBOSE_LOGGING" }, |
29 | | - { "externalDependencies": ["vitest"] } |
| 32 | + { |
| 33 | + "env": "NX_VERBOSE_LOGGING" |
| 34 | + }, |
| 35 | + { |
| 36 | + "externalDependencies": ["vitest"] |
| 37 | + } |
30 | 38 | ], |
31 | 39 | "lint-eslint-inputs": [ |
32 | 40 | "{workspaceRoot}/eslint.config.js", |
33 | | - { "externalDependencies": ["eslint"] } |
| 41 | + { |
| 42 | + "externalDependencies": ["eslint"] |
| 43 | + } |
34 | 44 | ], |
35 | 45 | "typecheck-typescript-inputs": [ |
36 | 46 | "{workspaceRoot}/tsconfig.base.json", |
37 | | - { "externalDependencies": ["typescript"] } |
| 47 | + { |
| 48 | + "externalDependencies": ["typescript"] |
| 49 | + } |
38 | 50 | ], |
39 | 51 | "code-pushup-inputs": [ |
40 | 52 | "{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 | + } |
43 | 59 | ], |
44 | | - "sharedGlobals": [{ "runtime": "node -v" }, { "runtime": "npm -v" }] |
| 60 | + "sharedGlobals": [ |
| 61 | + { |
| 62 | + "runtime": "node -v" |
| 63 | + }, |
| 64 | + { |
| 65 | + "runtime": "npm -v" |
| 66 | + } |
| 67 | + ] |
45 | 68 | }, |
46 | 69 | "targetDefaults": { |
47 | 70 | "lint": { |
|
67 | 90 | } |
68 | 91 | }, |
69 | 92 | "build": { |
70 | | - "dependsOn": ["^build"], |
71 | | - "inputs": ["production", "^production"], |
72 | | - "cache": true, |
73 | | - "executor": "@nx/js:tsc", |
74 | | - "outputs": ["{options.outputPath}"], |
75 | 93 | "options": { |
76 | | - "outputPath": "{projectRoot}/dist", |
77 | | - "main": "{projectRoot}/src/index.ts", |
78 | | - "tsConfig": "{projectRoot}/tsconfig.lib.json", |
79 | 94 | "assets": ["{projectRoot}/*.md"] |
80 | 95 | } |
81 | 96 | }, |
|
311 | 326 | "packageRoot": "{projectRoot}/dist", |
312 | 327 | "registry": "https://registry.npmjs.org/" |
313 | 328 | } |
| 329 | + }, |
| 330 | + "@nx/js:tsc": { |
| 331 | + "cache": true, |
| 332 | + "dependsOn": ["^build"], |
| 333 | + "inputs": ["production", "^production"] |
314 | 334 | } |
315 | 335 | }, |
316 | 336 | "workspaceLayout": { |
|
360 | 380 | "filterByTags": ["publishable"] |
361 | 381 | } |
362 | 382 | } |
| 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 | + } |
363 | 412 | } |
364 | 413 | ], |
365 | 414 | "nxCloudId": "65d4d862d2adb16a45a4bc7c" |
|
0 commit comments