@nx/workspace 19.3.0-canary.20240612-4a5eb23 → 19.3.0-canary.20240613-c86de97
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/workspace",
|
|
3
|
-
"version": "19.3.0-canary.
|
|
3
|
+
"version": "19.3.0-canary.20240613-c86de97",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
|
|
6
6
|
"repository": {
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@nx/devkit": "19.3.0-canary.
|
|
64
|
+
"@nx/devkit": "19.3.0-canary.20240613-c86de97",
|
|
65
65
|
"chalk": "^4.1.0",
|
|
66
66
|
"enquirer": "~2.3.6",
|
|
67
67
|
"tslib": "^2.3.0",
|
|
68
68
|
"yargs-parser": "21.1.1",
|
|
69
|
-
"nx": "19.3.0-canary.
|
|
70
|
-
"@nrwl/workspace": "19.3.0-canary.
|
|
69
|
+
"nx": "19.3.0-canary.20240613-c86de97",
|
|
70
|
+
"@nrwl/workspace": "19.3.0-canary.20240613-c86de97"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
@@ -25,6 +25,18 @@ async function monorepoGenerator(tree, options) {
|
|
|
25
25
|
const isRootProjectApp = rootProject.projectType === 'application';
|
|
26
26
|
const appsDir = isRootProjectApp ? 'apps' : 'packages';
|
|
27
27
|
const libsDir = isRootProjectApp ? 'libs' : 'packages';
|
|
28
|
+
if (rootProject) {
|
|
29
|
+
// If project was created using `nx init` then it might not have project.json.
|
|
30
|
+
// Need to create one to avoid name conflicts with root package.json.
|
|
31
|
+
if (!tree.exists('project.json')) {
|
|
32
|
+
(0, devkit_1.writeJson)(tree, 'project.json', { name: rootProject.name });
|
|
33
|
+
}
|
|
34
|
+
(0, devkit_1.updateJson)(tree, 'package.json', (json) => {
|
|
35
|
+
// Avoid name conflicts once we move root project into its own folder.
|
|
36
|
+
json.name = `@${rootProject.name}/source`;
|
|
37
|
+
return json;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
28
40
|
for (const project of projectsToMove) {
|
|
29
41
|
await (0, move_1.moveGenerator)(tree, {
|
|
30
42
|
projectName: project.name,
|
|
@@ -15,10 +15,7 @@ function moveProjectFiles(tree, schema, project) {
|
|
|
15
15
|
const knownRootProjectFiles = [
|
|
16
16
|
// Config files
|
|
17
17
|
'project.json',
|
|
18
|
-
|
|
19
|
-
'tsconfig.app.json',
|
|
20
|
-
'tsconfig.lib.json',
|
|
21
|
-
'tsconfig.spec.json',
|
|
18
|
+
/^tsconfig(?!\.base\.json$)((\..+)?\.json$|json$)/,
|
|
22
19
|
'.babelrc',
|
|
23
20
|
'.eslintrc.json',
|
|
24
21
|
'eslint.config.js',
|