create-nx-plugin 23.2.0-beta.7 → 23.2.0-beta.8
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/dist/bin/create-nx-plugin.js +7 -18
- package/package.json +2 -3
|
@@ -5,7 +5,6 @@ exports.commandsObject = exports.yargsDecorator = void 0;
|
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const path_1 = require("path");
|
|
7
7
|
const pc = tslib_1.__importStar(require("picocolors"));
|
|
8
|
-
const enquirer = require("enquirer");
|
|
9
8
|
const yargs = require("yargs");
|
|
10
9
|
const internal_1 = require("create-nx-workspace/internal");
|
|
11
10
|
const create_nx_workspace_1 = require("create-nx-workspace");
|
|
@@ -26,28 +25,18 @@ async function determinePluginName(parsedArgs) {
|
|
|
26
25
|
if (parsedArgs.pluginName) {
|
|
27
26
|
return parsedArgs.pluginName;
|
|
28
27
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
type: 'input',
|
|
34
|
-
validate: (s_1) => (s_1.length ? true : 'Plugin name cannot be empty'),
|
|
35
|
-
},
|
|
36
|
-
]);
|
|
37
|
-
return results.pluginName;
|
|
28
|
+
return (0, internal_1.textPrompt)({
|
|
29
|
+
message: `Plugin name `,
|
|
30
|
+
validate: (value) => value.length ? undefined : 'Plugin name cannot be empty',
|
|
31
|
+
});
|
|
38
32
|
}
|
|
39
33
|
async function determineCreatePackageName(parsedArgs) {
|
|
40
34
|
if (parsedArgs.createPackageName) {
|
|
41
35
|
return parsedArgs.createPackageName;
|
|
42
36
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
message: `Create a package which can be used by npx to create a new workspace (Leave blank to not create this package)`,
|
|
47
|
-
type: 'input',
|
|
48
|
-
},
|
|
49
|
-
]);
|
|
50
|
-
return results.createPackageName;
|
|
37
|
+
return (0, internal_1.textPrompt)({
|
|
38
|
+
message: `Create a package which can be used by npx to create a new workspace (Leave blank to not create this package)`,
|
|
39
|
+
});
|
|
51
40
|
}
|
|
52
41
|
exports.commandsObject = yargs
|
|
53
42
|
.wrap(yargs.terminalWidth())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nx-plugin",
|
|
3
|
-
"version": "23.2.0-beta.
|
|
3
|
+
"version": "23.2.0-beta.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This package is used to scaffold a brand-new workspace used to develop an Nx plugin, and sets up a pre-configured plugin with the specified name. The new plugin is created with a default generator, executor, and e2e app.",
|
|
6
6
|
"repository": {
|
|
@@ -37,10 +37,9 @@
|
|
|
37
37
|
"homepage": "https://nx.dev",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"picocolors": "^1.1.0",
|
|
40
|
-
"enquirer": "~2.3.6",
|
|
41
40
|
"tslib": "^2.3.0",
|
|
42
41
|
"yargs": "^17.6.2",
|
|
43
|
-
"create-nx-workspace": "23.2.0-beta.
|
|
42
|
+
"create-nx-workspace": "23.2.0-beta.8"
|
|
44
43
|
},
|
|
45
44
|
"publishConfig": {
|
|
46
45
|
"access": "public"
|