|
4 | 4 | "sourceRoot": "packages/core",
|
5 | 5 | "projectType": "library",
|
6 | 6 | "generators": {},
|
7 |
| - "namedInputs": { |
8 |
| - "default": ["{projectRoot}/**/*"], |
9 |
| - "production": ["!{projectRoot}/**/*.spec.ts"] |
10 |
| - }, |
| 7 | + "namedInputs": { "default": ["{projectRoot}/**/*"], "production": ["!{projectRoot}/**/*.spec.ts"] }, |
11 | 8 | "targets": {
|
12 |
| - "lint": { |
13 |
| - "executor": "@nx/eslint:lint", |
14 |
| - "options": { |
15 |
| - "lintFilePatterns": ["packages/core/**/*.ts", "packages/core/references.d.ts", "packages/core/**/*.spec.ts", "packages/core/**/*.spec.tsx", "packages/core/**/*.spec.js", "packages/core/**/*.spec.jsx", "packages/core/**/*.d.ts"] |
16 |
| - } |
17 |
| - }, |
| 9 | + "lint": { "executor": "@nx/eslint:lint", "options": { "lintFilePatterns": ["packages/core/**/*.ts", "packages/core/references.d.ts", "packages/core/**/*.spec.ts", "packages/core/**/*.spec.tsx", "packages/core/**/*.spec.js", "packages/core/**/*.spec.jsx", "packages/core/**/*.d.ts"] } }, |
18 | 10 | "build": {
|
19 | 11 | "executor": "@nx/js:tsc",
|
20 | 12 | "inputs": ["default", "^production"],
|
|
28 | 20 | "{workspaceRoot}/LICENSE",
|
29 | 21 | "{projectRoot}/README.md",
|
30 | 22 | "{projectRoot}/global-types.d.ts",
|
31 |
| - { |
32 |
| - "glob": "**/*", |
33 |
| - "input": "{projectRoot}/js-libs/", |
34 |
| - "output": "./js-libs/" |
35 |
| - }, |
36 |
| - { |
37 |
| - "glob": "**/*", |
38 |
| - "input": "{projectRoot}/cli-hooks/", |
39 |
| - "output": "./cli-hooks/" |
40 |
| - }, |
41 |
| - { |
42 |
| - "glob": "**/*", |
43 |
| - "input": "{projectRoot}/fetch/", |
44 |
| - "output": "./fetch/" |
45 |
| - }, |
46 |
| - { |
47 |
| - "glob": "**/*", |
48 |
| - "input": "{projectRoot}/css/", |
49 |
| - "output": "./css/" |
50 |
| - }, |
51 |
| - { |
52 |
| - "glob": "**/*", |
53 |
| - "input": "{projectRoot}/css-value/", |
54 |
| - "output": "./css-value/" |
55 |
| - }, |
56 |
| - { |
57 |
| - "glob": "**/*", |
58 |
| - "input": "{projectRoot}/platforms/", |
59 |
| - "output": "./platforms/" |
60 |
| - } |
| 23 | + { "glob": "**/*", "input": "{projectRoot}/js-libs/", "output": "./js-libs/" }, |
| 24 | + { "glob": "**/*", "input": "{projectRoot}/cli-hooks/", "output": "./cli-hooks/" }, |
| 25 | + { "glob": "**/*", "input": "{projectRoot}/fetch/", "output": "./fetch/" }, |
| 26 | + { "glob": "**/*", "input": "{projectRoot}/css/", "output": "./css/" }, |
| 27 | + { "glob": "**/*", "input": "{projectRoot}/css-value/", "output": "./css-value/" }, |
| 28 | + { "glob": "**/*", "input": "{projectRoot}/platforms/", "output": "./platforms/" }, |
| 29 | + { "glob": "**/*.d.ts", "input": "{projectRoot}/", "output": "./" } |
61 | 30 | ]
|
62 | 31 | },
|
63 | 32 | "dependsOn": ["^build"]
|
64 | 33 | },
|
65 |
| - "build.npm": { |
66 |
| - "executor": "nx:run-commands", |
67 |
| - "options": { |
68 |
| - "commands": ["node tools/scripts/build-finish.ts core"], |
69 |
| - "parallel": false |
70 |
| - }, |
71 |
| - "outputs": ["{workspaceRoot}/dist/packages/core"], |
72 |
| - "dependsOn": [ |
73 |
| - { |
74 |
| - "target": "build" |
75 |
| - } |
76 |
| - ] |
77 |
| - }, |
78 |
| - "test": { |
79 |
| - "executor": "@nx/vite:test", |
80 |
| - "outputs": ["{options.reportsDirectory}"], |
81 |
| - "options": { |
82 |
| - "reportsDirectory": "../../coverage/packages/core" |
83 |
| - } |
84 |
| - } |
| 34 | + "build.npm": { "executor": "nx:run-commands", "options": { "commands": ["node tools/scripts/build-finish.ts core"], "parallel": false }, "outputs": ["{workspaceRoot}/dist/packages/core"], "dependsOn": [{ "target": "build" }] }, |
| 35 | + "test": { "executor": "@nx/vite:test", "outputs": ["{options.reportsDirectory}"], "options": { "reportsDirectory": "../../coverage/packages/core" } } |
85 | 36 | }
|
86 | 37 | }
|
0 commit comments