create-nx-workspace 19.0.0 → 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,
|
|
@@ -17,7 +17,7 @@ declare const messageOptions: {
|
|
|
17
17
|
readonly value: "skip";
|
|
18
18
|
readonly name: "Skip for now";
|
|
19
19
|
}];
|
|
20
|
-
readonly footer: "\
|
|
20
|
+
readonly footer: "\nWatch a short video on Nx Cloud at https://nx.dev/ci/intro/why-nx-cloud";
|
|
21
21
|
readonly hint: "\n(it's free and can be disabled any time)";
|
|
22
22
|
readonly fallback: undefined;
|
|
23
23
|
}, {
|
|
@@ -34,7 +34,7 @@ declare const messageOptions: {
|
|
|
34
34
|
readonly value: "skip";
|
|
35
35
|
readonly name: "Skip for now";
|
|
36
36
|
}];
|
|
37
|
-
readonly footer: "\
|
|
37
|
+
readonly footer: "\nWatch a short video on Nx Cloud at https://nx.dev/ci/intro/why-nx-cloud";
|
|
38
38
|
readonly hint: "\n(it's free and can be disabled any time)";
|
|
39
39
|
readonly fallback: {
|
|
40
40
|
readonly value: "skip";
|
|
@@ -15,7 +15,7 @@ const messageOptions = {
|
|
|
15
15
|
{ value: 'circleci', name: 'Yes, configure Nx Cloud for Circle CI' },
|
|
16
16
|
{ value: 'skip', name: 'Skip for now' },
|
|
17
17
|
],
|
|
18
|
-
footer: '\
|
|
18
|
+
footer: '\nWatch a short video on Nx Cloud at https://nx.dev/ci/intro/why-nx-cloud',
|
|
19
19
|
hint: `\n(it's free and can be disabled any time)`,
|
|
20
20
|
fallback: undefined,
|
|
21
21
|
},
|
|
@@ -28,7 +28,7 @@ const messageOptions = {
|
|
|
28
28
|
{ value: 'circleci', name: 'Yes, for CircleCI with Nx Cloud' },
|
|
29
29
|
{ value: 'skip', name: 'Skip for now' },
|
|
30
30
|
],
|
|
31
|
-
footer: '\
|
|
31
|
+
footer: '\nWatch a short video on Nx Cloud at https://nx.dev/ci/intro/why-nx-cloud',
|
|
32
32
|
hint: `\n(it's free and can be disabled any time)`,
|
|
33
33
|
fallback: { value: 'skip', key: 'setupNxCloud' },
|
|
34
34
|
},
|
|
@@ -85,7 +85,7 @@ async function recordStat(opts) {
|
|
|
85
85
|
if (process.env.NX_VERBOSE_LOGGING === 'true') {
|
|
86
86
|
console.log(`Record stat. Major: ${major}`);
|
|
87
87
|
}
|
|
88
|
-
if (major < 10 || major >
|
|
88
|
+
if (major < 10 || major > 19)
|
|
89
89
|
return; // test version, skip it
|
|
90
90
|
const axios = require('axios');
|
|
91
91
|
await (axios['default'] ?? axios)
|
|
@@ -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;
|