@nx/workspace 23.0.0-rc.3 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -177,10 +177,15 @@ function createNxJson(tree, { directory, defaultBase, preset, analytics }) {
|
|
|
177
177
|
$schema: './node_modules/nx/schemas/nx-schema.json',
|
|
178
178
|
defaultBase,
|
|
179
179
|
targetDefaults: process.env.NX_ADD_PLUGINS === 'false'
|
|
180
|
-
?
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
? {
|
|
181
|
+
build: {
|
|
182
|
+
cache: true,
|
|
183
|
+
dependsOn: ['^build'],
|
|
184
|
+
},
|
|
185
|
+
lint: {
|
|
186
|
+
cache: true,
|
|
187
|
+
},
|
|
188
|
+
}
|
|
184
189
|
: undefined,
|
|
185
190
|
analytics,
|
|
186
191
|
};
|
|
@@ -194,19 +199,7 @@ function createNxJson(tree, { directory, defaultBase, preset, analytics }) {
|
|
|
194
199
|
sharedGlobals: [],
|
|
195
200
|
};
|
|
196
201
|
if (process.env.NX_ADD_PLUGINS === 'false') {
|
|
197
|
-
|
|
198
|
-
if (Array.isArray(td)) {
|
|
199
|
-
const buildIdx = td.findIndex((e) => e.target === 'build' &&
|
|
200
|
-
e.executor === undefined &&
|
|
201
|
-
e.projects === undefined &&
|
|
202
|
-
e.plugin === undefined);
|
|
203
|
-
if (buildIdx >= 0) {
|
|
204
|
-
td[buildIdx] = {
|
|
205
|
-
...td[buildIdx],
|
|
206
|
-
inputs: ['production', '^production'],
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
}
|
|
202
|
+
nxJson.targetDefaults.build.inputs = ['production', '^production'];
|
|
210
203
|
nxJson.useInferencePlugins = false;
|
|
211
204
|
}
|
|
212
205
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/workspace",
|
|
3
|
-
"version": "23.0.0
|
|
3
|
+
"version": "23.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"semver": "^7.6.3",
|
|
86
86
|
"tslib": "^2.3.0",
|
|
87
87
|
"yargs-parser": "21.1.1",
|
|
88
|
-
"nx": "23.0.0
|
|
89
|
-
"@nx/devkit": "23.0.0
|
|
88
|
+
"nx": "23.0.0",
|
|
89
|
+
"@nx/devkit": "23.0.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"nx": "23.0.0
|
|
92
|
+
"nx": "23.0.0"
|
|
93
93
|
},
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"access": "public"
|