create-nx-workspace 19.0.1 → 19.0.2
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
|
@@ -7,7 +7,6 @@ const child_process_utils_1 = require("./utils/child-process-utils");
|
|
|
7
7
|
const error_utils_1 = require("./utils/error-utils");
|
|
8
8
|
const output_1 = require("./utils/output");
|
|
9
9
|
const package_manager_1 = require("./utils/package-manager");
|
|
10
|
-
const string_utils_1 = require("./utils/string-utils");
|
|
11
10
|
const unparse_1 = require("./utils/unparse");
|
|
12
11
|
/**
|
|
13
12
|
* Create a new Nx workspace
|
|
@@ -23,7 +22,6 @@ async function createEmptyWorkspace(tmpDir, name, packageManager, options) {
|
|
|
23
22
|
if (!options.packageManager) {
|
|
24
23
|
options.packageManager = packageManager;
|
|
25
24
|
}
|
|
26
|
-
options.name = (0, string_utils_1.getFileName)(name);
|
|
27
25
|
const directory = options.name;
|
|
28
26
|
const args = (0, unparse_1.unparse)({
|
|
29
27
|
...options,
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.stringifyCollection = void 0;
|
|
4
4
|
function stringifyCollection(items) {
|
|
5
5
|
return items.map((item) => `"${item}"`).join(', ');
|
|
6
6
|
}
|
|
7
7
|
exports.stringifyCollection = stringifyCollection;
|
|
8
|
-
function getFileName(name) {
|
|
9
|
-
return name
|
|
10
|
-
.replace(/([a-z\d])([A-Z])/g, '$1_$2')
|
|
11
|
-
.toLowerCase()
|
|
12
|
-
.replace(/[ _]/g, '-');
|
|
13
|
-
}
|
|
14
|
-
exports.getFileName = getFileName;
|