speedrun-cli 2.6.1 → 2.6.3
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/bin/cli.js +2 -2
- package/package.json +1 -1
- package/src/moduleGenerator.js +1 -1
package/bin/cli.js
CHANGED
|
@@ -42,7 +42,7 @@ program
|
|
|
42
42
|
.description('Generate a new CRUD module')
|
|
43
43
|
.action(async (moduleName) => {
|
|
44
44
|
try {
|
|
45
|
-
console.log(chalk.cyan(`\n
|
|
45
|
+
console.log(chalk.cyan(`\n😱🤯🤯 speedrun-cli v${CLI_VERSION} nest module generator 🤧🥶🥶🥶 (real)\n`));
|
|
46
46
|
await generateModule(moduleName, process.cwd());
|
|
47
47
|
} catch (error) {
|
|
48
48
|
console.error(chalk.red('\n❌ Module generation failed:'));
|
|
@@ -64,7 +64,7 @@ program
|
|
|
64
64
|
.option('--yes', 'Skip all prompts and use defaults')
|
|
65
65
|
.action(async (appName, options) => {
|
|
66
66
|
try {
|
|
67
|
-
console.log(chalk.cyan(`\n
|
|
67
|
+
console.log(chalk.cyan(`\n😱🤯🤯 speedrun-cli v${CLI_VERSION} 🤧🥶🥶🥶 (real)\n`));
|
|
68
68
|
console.log(chalk.gray('Production-ready NestJS authentication - Now with ORM & Database choices!\n'));
|
|
69
69
|
|
|
70
70
|
// Check Node.js version
|
package/package.json
CHANGED
package/src/moduleGenerator.js
CHANGED
|
@@ -497,7 +497,7 @@ type ${pascalName}Entity = any;
|
|
|
497
497
|
@ApiExtraModels(ApiResponseDto, PaginatedResponseDto, ${responseDtoName})
|
|
498
498
|
@Controller('${kebabName}')
|
|
499
499
|
export class ${pascalName}Controller extends BaseController<${pascalName}Entity, ${createDtoName}, ${updateDtoName}> {
|
|
500
|
-
constructor(
|
|
500
|
+
constructor(protected readonly service: ${pascalName}Service) {
|
|
501
501
|
super(service);
|
|
502
502
|
}
|
|
503
503
|
|