@nx/workspace 23.0.0-beta.12 → 23.0.0-beta.14
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,15 +177,10 @@ 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
|
-
build:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
},
|
|
185
|
-
lint: {
|
|
186
|
-
cache: true,
|
|
187
|
-
},
|
|
188
|
-
}
|
|
180
|
+
? [
|
|
181
|
+
{ target: 'build', cache: true, dependsOn: ['^build'] },
|
|
182
|
+
{ target: 'lint', cache: true },
|
|
183
|
+
]
|
|
189
184
|
: undefined,
|
|
190
185
|
analytics,
|
|
191
186
|
};
|
|
@@ -199,7 +194,19 @@ function createNxJson(tree, { directory, defaultBase, preset, analytics }) {
|
|
|
199
194
|
sharedGlobals: [],
|
|
200
195
|
};
|
|
201
196
|
if (process.env.NX_ADD_PLUGINS === 'false') {
|
|
202
|
-
nxJson.targetDefaults
|
|
197
|
+
const td = nxJson.targetDefaults;
|
|
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
|
+
}
|
|
203
210
|
nxJson.useInferencePlugins = false;
|
|
204
211
|
}
|
|
205
212
|
}
|
|
@@ -5,7 +5,7 @@ exports.rewriteCompilationImport = rewriteCompilationImport;
|
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
|
|
7
7
|
const FROM_SPECIFIER = '@nx/workspace/src/utilities/typescript/compilation';
|
|
8
|
-
const TO_SPECIFIER = '@nx/js/
|
|
8
|
+
const TO_SPECIFIER = '@nx/js/internal';
|
|
9
9
|
// Methods on `jest` and `vi` that take a module specifier as their first arg.
|
|
10
10
|
// Calls like `jest.mock('@nx/workspace/src/utilities/typescript/compilation')`
|
|
11
11
|
// are rewritten so the mock target lines up with the rewritten import.
|
package/migrations.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"generators": {
|
|
3
3
|
"23-0-0-move-typescript-compilation-import": {
|
|
4
4
|
"version": "23.0.0-beta.10",
|
|
5
|
-
"description": "Rewrites imports of `@nx/workspace/src/utilities/typescript/compilation` to `@nx/js/
|
|
5
|
+
"description": "Rewrites imports of `@nx/workspace/src/utilities/typescript/compilation` to `@nx/js/internal`, where the module now lives.",
|
|
6
6
|
"implementation": "./dist/src/migrations/update-23-0-0/move-typescript-compilation-import"
|
|
7
7
|
}
|
|
8
8
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/workspace",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.14",
|
|
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-beta.
|
|
89
|
-
"@nx/devkit": "23.0.0-beta.
|
|
88
|
+
"nx": "23.0.0-beta.14",
|
|
89
|
+
"@nx/devkit": "23.0.0-beta.14"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"nx": "23.0.0-beta.
|
|
92
|
+
"nx": "23.0.0-beta.14"
|
|
93
93
|
},
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"access": "public"
|