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