@nx/workspace 23.1.0-beta.6 → 23.1.0-beta.7
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.
|
@@ -49,7 +49,8 @@ function validateOptions(options, host) {
|
|
|
49
49
|
!options.framework) {
|
|
50
50
|
throw new Error(`Cannot generate ${options.preset} without selecting a framework`);
|
|
51
51
|
}
|
|
52
|
-
if (
|
|
52
|
+
if (!options.skipEmptyDirCheck &&
|
|
53
|
+
host.exists(options.name) &&
|
|
53
54
|
!host.isFile(options.name) &&
|
|
54
55
|
host.children(options.name).length > 0) {
|
|
55
56
|
throw new Error(`${(0, path_1.join)(host.root, options.name)} is not an empty directory.`);
|
|
@@ -109,6 +109,12 @@
|
|
|
109
109
|
"useProjectJson": {
|
|
110
110
|
"type": "boolean",
|
|
111
111
|
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
|
112
|
+
},
|
|
113
|
+
"skipEmptyDirCheck": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"description": "Skip the check that the target directory is empty. Used internally by create-nx-workspace when scaffolding into the current directory.",
|
|
116
|
+
"default": false,
|
|
117
|
+
"x-priority": "internal"
|
|
112
118
|
}
|
|
113
119
|
},
|
|
114
120
|
"additionalProperties": true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/workspace",
|
|
3
|
-
"version": "23.1.0-beta.
|
|
3
|
+
"version": "23.1.0-beta.7",
|
|
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.1.0-beta.
|
|
89
|
-
"@nx/devkit": "23.1.0-beta.
|
|
88
|
+
"nx": "23.1.0-beta.7",
|
|
89
|
+
"@nx/devkit": "23.1.0-beta.7"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"nx": "23.1.0-beta.
|
|
92
|
+
"nx": "23.1.0-beta.7"
|
|
93
93
|
},
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"access": "public"
|