@expressots/cli 1.7.1 → 1.8.0

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.
Files changed (72) hide show
  1. package/README.md +8 -0
  2. package/bin/@types/config.d.ts +39 -39
  3. package/bin/@types/config.js +2 -2
  4. package/bin/@types/index.d.ts +1 -1
  5. package/bin/@types/index.js +17 -17
  6. package/bin/app.container.d.ts +1 -1
  7. package/bin/app.container.js +8 -8
  8. package/bin/cli.d.ts +2 -2
  9. package/bin/cli.js +38 -38
  10. package/bin/commands/__tests__/project.commands.spec.d.ts +1 -0
  11. package/bin/commands/__tests__/project.commands.spec.js +8 -0
  12. package/bin/commands/project.commands.d.ts +8 -8
  13. package/bin/commands/project.commands.js +137 -136
  14. package/bin/generate/cli.d.ts +4 -4
  15. package/bin/generate/cli.js +66 -66
  16. package/bin/generate/form.d.ts +20 -20
  17. package/bin/generate/form.js +30 -30
  18. package/bin/generate/index.d.ts +1 -1
  19. package/bin/generate/index.js +17 -17
  20. package/bin/generate/utils/command-utils.d.ts +123 -123
  21. package/bin/generate/utils/command-utils.js +314 -310
  22. package/bin/generate/utils/nonopininated-cmd.d.ts +9 -9
  23. package/bin/generate/utils/nonopininated-cmd.js +248 -248
  24. package/bin/generate/utils/opinionated-cmd.d.ts +11 -11
  25. package/bin/generate/utils/opinionated-cmd.js +481 -480
  26. package/bin/help/cli.d.ts +4 -4
  27. package/bin/help/cli.js +15 -15
  28. package/bin/help/form.d.ts +2 -2
  29. package/bin/help/form.js +28 -28
  30. package/bin/help/index.d.ts +1 -1
  31. package/bin/help/index.js +17 -2
  32. package/bin/index.d.ts +6 -4
  33. package/bin/index.js +22 -20
  34. package/bin/info/cli.d.ts +4 -4
  35. package/bin/info/cli.js +15 -15
  36. package/bin/info/form.d.ts +2 -2
  37. package/bin/info/form.js +36 -36
  38. package/bin/info/index.d.ts +1 -1
  39. package/bin/info/index.js +17 -17
  40. package/bin/new/cli.d.ts +4 -4
  41. package/bin/new/cli.js +51 -51
  42. package/bin/new/form.d.ts +2 -2
  43. package/bin/new/form.js +235 -213
  44. package/bin/new/index.d.ts +1 -1
  45. package/bin/new/index.js +17 -17
  46. package/bin/providers/cli.d.ts +4 -4
  47. package/bin/providers/cli.js +43 -38
  48. package/bin/providers/external/external.provider.d.ts +2 -0
  49. package/bin/providers/external/external.provider.js +49 -0
  50. package/bin/providers/index.d.ts +1 -1
  51. package/bin/providers/index.js +17 -17
  52. package/bin/providers/prisma/prisma.provider.d.ts +2 -2
  53. package/bin/providers/prisma/prisma.provider.js +272 -270
  54. package/bin/types.d.ts +1 -1
  55. package/bin/types.js +17 -17
  56. package/bin/utils/add-controller-to-module.d.ts +1 -1
  57. package/bin/utils/add-controller-to-module.js +46 -46
  58. package/bin/utils/add-module-to-container.d.ts +3 -3
  59. package/bin/utils/add-module-to-container.js +129 -129
  60. package/bin/utils/center-text.d.ts +2 -2
  61. package/bin/utils/center-text.js +10 -10
  62. package/bin/utils/cli-ui.d.ts +3 -3
  63. package/bin/utils/cli-ui.js +19 -19
  64. package/bin/utils/compiler.d.ts +15 -15
  65. package/bin/utils/compiler.js +93 -93
  66. package/bin/utils/find-folder.d.ts +5 -5
  67. package/bin/utils/find-folder.js +37 -37
  68. package/bin/utils/index.d.ts +1 -1
  69. package/bin/utils/index.js +17 -17
  70. package/bin/utils/verify-file-exists.d.ts +2 -2
  71. package/bin/utils/verify-file-exists.js +30 -30
  72. package/package.json +31 -28
package/bin/help/cli.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CommandModule } from "yargs";
2
- type CommandModuleArgs = {};
3
- declare const helpCommand: () => CommandModule<CommandModuleArgs, any>;
4
- export { helpCommand };
1
+ import { CommandModule } from "yargs";
2
+ type CommandModuleArgs = {};
3
+ declare const helpCommand: () => CommandModule<CommandModuleArgs, any>;
4
+ export { helpCommand };
package/bin/help/cli.js CHANGED
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.helpCommand = void 0;
4
- const form_1 = require("./form");
5
- const helpCommand = () => {
6
- return {
7
- command: "resources",
8
- describe: "Resource list",
9
- aliases: ["r"],
10
- handler: async () => {
11
- await (0, form_1.helpForm)();
12
- },
13
- };
14
- };
15
- exports.helpCommand = helpCommand;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.helpCommand = void 0;
4
+ const form_1 = require("./form");
5
+ const helpCommand = () => {
6
+ return {
7
+ command: "resources",
8
+ describe: "Resource list",
9
+ aliases: ["r"],
10
+ handler: async () => {
11
+ await (0, form_1.helpForm)();
12
+ },
13
+ };
14
+ };
15
+ exports.helpCommand = helpCommand;
@@ -1,2 +1,2 @@
1
- declare const helpForm: () => Promise<void>;
2
- export { helpForm };
1
+ declare const helpForm: () => Promise<void>;
2
+ export { helpForm };
package/bin/help/form.js CHANGED
@@ -1,28 +1,28 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.helpForm = void 0;
7
- const chalk_1 = __importDefault(require("chalk"));
8
- const cli_table3_1 = __importDefault(require("cli-table3"));
9
- const helpForm = async () => {
10
- const table = new cli_table3_1.default({
11
- head: [
12
- chalk_1.default.green("Name"),
13
- chalk_1.default.green("Alias"),
14
- chalk_1.default.green("Description"),
15
- ],
16
- colWidths: [15, 10, 60],
17
- });
18
- table.push(["new project", "new", "Generate a new project"], ["info", "i", "Provides project information"], ["resources", "r", "Displays cli commands and resources"], ["help", "h", "Show command help"], [
19
- "service",
20
- "g s",
21
- "Generate a service [controller, usecase, dto, module]",
22
- ], ["controller", "g c", "Generate a controller"], ["usecase", "g u", "Generate a usecase"], ["dto", "g d", "Generate a dto"], ["entity", "g e", "Generate an entity"], ["provider", "g p", "Generate a provider"], ["module", "g mo", "Generate a module"], ["middleware", "g mi", "Generate a middleware"]);
23
- console.log(chalk_1.default.bold.white("ExpressoTS:", `${chalk_1.default.green("Resources List")}`));
24
- console.log(chalk_1.default.whiteBright(table.toString()));
25
- console.log(chalk_1.default.bold.white(`📝 More info: ${chalk_1.default.green("https://doc.expresso-ts.com/docs/category/cli")}`));
26
- console.log("\n");
27
- };
28
- exports.helpForm = helpForm;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.helpForm = void 0;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const cli_table3_1 = __importDefault(require("cli-table3"));
9
+ const helpForm = async () => {
10
+ const table = new cli_table3_1.default({
11
+ head: [
12
+ chalk_1.default.green("Name"),
13
+ chalk_1.default.green("Alias"),
14
+ chalk_1.default.green("Description"),
15
+ ],
16
+ colWidths: [15, 15, 60],
17
+ });
18
+ table.push(["new project", "new", "Generate a new project"], ["info", "i", "Provides project information"], ["resources", "r", "Displays cli commands and resources"], ["help", "h", "Show command help"], [
19
+ "service",
20
+ "g s",
21
+ "Generate a service [controller, usecase, dto, module]",
22
+ ], ["controller", "g c", "Generate a controller"], ["usecase", "g u", "Generate a usecase"], ["dto", "g d", "Generate a dto"], ["entity", "g e", "Generate an entity"], ["provider", "g p", "Generate a provider"], ["provider external", "a provider", "Generate an external provider"], ["module", "g mo", "Generate a module"], ["middleware", "g mi", "Generate a middleware"]);
23
+ console.log(chalk_1.default.bold.white("ExpressoTS:", `${chalk_1.default.green("Resources List")}`));
24
+ console.log(chalk_1.default.whiteBright(table.toString()));
25
+ console.log(chalk_1.default.bold.white(`📝 More info: ${chalk_1.default.green("https://doc.expresso-ts.com/docs/category/cli")}`));
26
+ console.log("\n");
27
+ };
28
+ exports.helpForm = helpForm;
@@ -1 +1 @@
1
- export {};
1
+ export * from "./cli";
package/bin/help/index.js CHANGED
@@ -1,2 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cli"), exports);
package/bin/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
- export * from "./types";
2
- export * from "./generate";
3
- export * from "./utils";
4
- export * from "./new";
1
+ export * from "./types";
2
+ export * from "./generate";
3
+ export * from "./utils";
4
+ export * from "./new";
5
+ export * from "./help";
6
+ export * from "./providers";
package/bin/index.js CHANGED
@@ -1,20 +1,22 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
- __exportStar(require("./generate"), exports);
19
- __exportStar(require("./utils"), exports);
20
- __exportStar(require("./new"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./generate"), exports);
19
+ __exportStar(require("./utils"), exports);
20
+ __exportStar(require("./new"), exports);
21
+ __exportStar(require("./help"), exports);
22
+ __exportStar(require("./providers"), exports);
package/bin/info/cli.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CommandModule } from "yargs";
2
- type CommandModuleArgs = {};
3
- declare const infoProject: () => CommandModule<CommandModuleArgs, any>;
4
- export { infoProject };
1
+ import { CommandModule } from "yargs";
2
+ type CommandModuleArgs = {};
3
+ declare const infoProject: () => CommandModule<CommandModuleArgs, any>;
4
+ export { infoProject };
package/bin/info/cli.js CHANGED
@@ -1,15 +1,15 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.infoProject = void 0;
4
- const form_1 = require("./form");
5
- const infoProject = () => {
6
- return {
7
- command: "info",
8
- describe: "Displays project details",
9
- aliases: ["i"],
10
- handler: async () => {
11
- await (0, form_1.infoForm)();
12
- },
13
- };
14
- };
15
- exports.infoProject = infoProject;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.infoProject = void 0;
4
+ const form_1 = require("./form");
5
+ const infoProject = () => {
6
+ return {
7
+ command: "info",
8
+ describe: "Displays project details",
9
+ aliases: ["i"],
10
+ handler: async () => {
11
+ await (0, form_1.infoForm)();
12
+ },
13
+ };
14
+ };
15
+ exports.infoProject = infoProject;
@@ -1,2 +1,2 @@
1
- declare const infoForm: () => void;
2
- export { infoForm };
1
+ declare const infoForm: () => void;
2
+ export { infoForm };
package/bin/info/form.js CHANGED
@@ -1,36 +1,36 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.infoForm = void 0;
7
- const chalk_1 = __importDefault(require("chalk"));
8
- const path_1 = __importDefault(require("path"));
9
- const fs_1 = __importDefault(require("fs"));
10
- const os_1 = __importDefault(require("os"));
11
- const cli_ui_1 = require("../utils/cli-ui");
12
- function getInfosFromPackage() {
13
- try {
14
- // Get the absolute path of the input directory parameter
15
- const absDirPath = path_1.default.resolve();
16
- // Load the package.json file
17
- const packageJsonPath = path_1.default.join(absDirPath, "package.json");
18
- const fileContents = fs_1.default.readFileSync(packageJsonPath, "utf-8");
19
- const packageJson = JSON.parse(fileContents);
20
- console.log(chalk_1.default.green("ExpressoTS Project:"));
21
- console.log(chalk_1.default.white(`\tName: ${packageJson.name}`));
22
- console.log(chalk_1.default.white(`\tDescription: ${packageJson.description}`));
23
- console.log(chalk_1.default.white(`\tVersion: ${packageJson.version}`));
24
- console.log(chalk_1.default.white(`\tAuthor: ${packageJson.author}`));
25
- }
26
- catch (error) {
27
- (0, cli_ui_1.printError)("No project information available.", "package.json not found!");
28
- }
29
- }
30
- const infoForm = () => {
31
- getInfosFromPackage();
32
- console.log(chalk_1.default.green("System information:"));
33
- console.log(chalk_1.default.white(`\tOS Version: ${os_1.default.version()}`));
34
- console.log(chalk_1.default.white(`\tNodeJS version: ${process.version}`));
35
- };
36
- exports.infoForm = infoForm;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.infoForm = void 0;
7
+ const chalk_1 = __importDefault(require("chalk"));
8
+ const path_1 = __importDefault(require("path"));
9
+ const fs_1 = __importDefault(require("fs"));
10
+ const os_1 = __importDefault(require("os"));
11
+ const cli_ui_1 = require("../utils/cli-ui");
12
+ function getInfosFromPackage() {
13
+ try {
14
+ // Get the absolute path of the input directory parameter
15
+ const absDirPath = path_1.default.resolve();
16
+ // Load the package.json file
17
+ const packageJsonPath = path_1.default.join(absDirPath, "package.json");
18
+ const fileContents = fs_1.default.readFileSync(packageJsonPath, "utf-8");
19
+ const packageJson = JSON.parse(fileContents);
20
+ console.log(chalk_1.default.green("ExpressoTS Project:"));
21
+ console.log(chalk_1.default.white(`\tName: ${packageJson.name}`));
22
+ console.log(chalk_1.default.white(`\tDescription: ${packageJson.description}`));
23
+ console.log(chalk_1.default.white(`\tVersion: ${packageJson.version}`));
24
+ console.log(chalk_1.default.white(`\tAuthor: ${packageJson.author}`));
25
+ }
26
+ catch (error) {
27
+ (0, cli_ui_1.printError)("No project information available.", "package.json not found!");
28
+ }
29
+ }
30
+ const infoForm = () => {
31
+ getInfosFromPackage();
32
+ console.log(chalk_1.default.green("System information:"));
33
+ console.log(chalk_1.default.white(`\tOS Version: ${os_1.default.version()}`));
34
+ console.log(chalk_1.default.white(`\tNodeJS version: ${process.version}`));
35
+ };
36
+ exports.infoForm = infoForm;
@@ -1 +1 @@
1
- export * from "./cli";
1
+ export * from "./cli";
package/bin/info/index.js CHANGED
@@ -1,17 +1,17 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./cli"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cli"), exports);
package/bin/new/cli.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CommandModule } from "yargs";
2
- type CommandModuleArgs = object;
3
- declare const createProject: () => CommandModule<CommandModuleArgs, any>;
4
- export { createProject };
1
+ import { CommandModule } from "yargs";
2
+ type CommandModuleArgs = object;
3
+ declare const createProject: () => CommandModule<CommandModuleArgs, any>;
4
+ export { createProject };
package/bin/new/cli.js CHANGED
@@ -1,51 +1,51 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createProject = void 0;
4
- const form_1 = require("./form");
5
- const packageManagers = [
6
- "npm",
7
- "yarn",
8
- "pnpm",
9
- ...(process.platform !== "win32" ? ["bun"] : []),
10
- ];
11
- const commandOptions = (yargs) => {
12
- return yargs
13
- .positional("project-name", {
14
- describe: "The name of the project",
15
- type: "string",
16
- })
17
- .option("template", {
18
- describe: "The project template to use",
19
- type: "string",
20
- choices: ["opinionated", "non-opinionated"],
21
- alias: "t",
22
- })
23
- .option("package-manager", {
24
- describe: "The package manager to use",
25
- type: "string",
26
- choices: packageManagers,
27
- alias: "p",
28
- })
29
- .option("directory", {
30
- describe: "The directory for new project",
31
- type: "string",
32
- alias: "d",
33
- })
34
- .implies("package-manager", "template")
35
- .implies("template", "package-manager");
36
- };
37
- const createProject = () => {
38
- return {
39
- command: "new <project-name> [package-manager] [template] [directory]",
40
- describe: "Create a new project",
41
- builder: commandOptions,
42
- handler: async ({ projectName, packageManager, template, directory, }) => {
43
- return await (0, form_1.projectForm)(projectName, [
44
- packageManager,
45
- template,
46
- directory,
47
- ]);
48
- },
49
- };
50
- };
51
- exports.createProject = createProject;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createProject = void 0;
4
+ const form_1 = require("./form");
5
+ const packageManagers = [
6
+ "npm",
7
+ "yarn",
8
+ "pnpm",
9
+ ...(process.platform !== "win32" ? ["bun"] : []),
10
+ ];
11
+ const commandOptions = (yargs) => {
12
+ return yargs
13
+ .positional("project-name", {
14
+ describe: "The name of the project",
15
+ type: "string",
16
+ })
17
+ .option("template", {
18
+ describe: "The project template to use",
19
+ type: "string",
20
+ choices: ["opinionated", "non-opinionated"],
21
+ alias: "t",
22
+ })
23
+ .option("package-manager", {
24
+ describe: "The package manager to use",
25
+ type: "string",
26
+ choices: packageManagers,
27
+ alias: "p",
28
+ })
29
+ .option("directory", {
30
+ describe: "The directory for new project",
31
+ type: "string",
32
+ alias: "d",
33
+ })
34
+ .implies("package-manager", "template")
35
+ .implies("template", "package-manager");
36
+ };
37
+ const createProject = () => {
38
+ return {
39
+ command: "new <project-name> [package-manager] [template] [directory]",
40
+ describe: "Create a new project",
41
+ builder: commandOptions,
42
+ handler: async ({ projectName, packageManager, template, directory, }) => {
43
+ return await (0, form_1.projectForm)(projectName, [
44
+ packageManager,
45
+ template,
46
+ directory,
47
+ ]);
48
+ },
49
+ };
50
+ };
51
+ exports.createProject = createProject;
package/bin/new/form.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const projectForm: (projectName: string, args: any[]) => Promise<void>;
2
- export { projectForm };
1
+ declare const projectForm: (projectName: string, args: any[]) => Promise<void>;
2
+ export { projectForm };