create-nx-plugin 21.2.3 → 21.2.4
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import yargs = require('yargs');
|
|
3
|
+
import { CreateWorkspaceOptions } from 'create-nx-workspace';
|
|
3
4
|
import { NxCloud } from 'create-nx-workspace/src/utils/nx/nx-cloud';
|
|
4
5
|
import type { PackageManager } from 'create-nx-workspace/src/utils/package-manager';
|
|
5
6
|
export declare const yargsDecorator: {
|
|
@@ -14,7 +15,7 @@ export declare const yargsDecorator: {
|
|
|
14
15
|
'choices:': string;
|
|
15
16
|
'aliases:': string;
|
|
16
17
|
};
|
|
17
|
-
interface CreateNxPluginArguments {
|
|
18
|
+
interface CreateNxPluginArguments extends CreateWorkspaceOptions {
|
|
18
19
|
pluginName: string;
|
|
19
20
|
createPackageName?: string;
|
|
20
21
|
packageManager: PackageManager;
|
package/bin/create-nx-plugin.js
CHANGED
|
@@ -79,6 +79,7 @@ exports.commandsObject = yargs
|
|
|
79
79
|
.help('help', pc.dim(`Show help`))
|
|
80
80
|
.updateLocale(exports.yargsDecorator)
|
|
81
81
|
.version('version', pc.dim(`Show version`), nxVersion);
|
|
82
|
+
let rawArgs;
|
|
82
83
|
async function main(parsedArgs) {
|
|
83
84
|
const populatedArguments = {
|
|
84
85
|
...parsedArgs,
|
|
@@ -93,7 +94,7 @@ async function main(parsedArgs) {
|
|
|
93
94
|
`Nx will run "${parsedArgs.packageManager} install" several times. Please wait.`,
|
|
94
95
|
],
|
|
95
96
|
});
|
|
96
|
-
const workspaceInfo = await (0, create_nx_workspace_1.createWorkspace)(`@nx/plugin@${nxVersion}`, populatedArguments);
|
|
97
|
+
const workspaceInfo = await (0, create_nx_workspace_1.createWorkspace)(`@nx/plugin@${nxVersion}`, populatedArguments, rawArgs);
|
|
97
98
|
await (0, ab_testing_1.recordStat)({
|
|
98
99
|
nxVersion,
|
|
99
100
|
command: 'create-nx-workspace',
|
|
@@ -114,6 +115,7 @@ async function main(parsedArgs) {
|
|
|
114
115
|
* @param argv user arguments
|
|
115
116
|
*/
|
|
116
117
|
async function normalizeArgsMiddleware(argv) {
|
|
118
|
+
rawArgs = argv;
|
|
117
119
|
try {
|
|
118
120
|
const pluginName = await determinePluginName(argv);
|
|
119
121
|
const createPackageName = await determineCreatePackageName(argv);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nx-plugin",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.4",
|
|
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": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://nx.dev",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"create-nx-workspace": "21.2.
|
|
32
|
+
"create-nx-workspace": "21.2.4",
|
|
33
33
|
"picocolors": "^1.1.0",
|
|
34
34
|
"enquirer": "~2.3.6",
|
|
35
35
|
"tslib": "^2.3.0",
|