@hazeljs/cli 0.2.0-beta.52 → 0.2.0-beta.54
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/README.md +1 -0
- package/dist/commands/add.js +4 -0
- package/dist/commands/generate-app.js +5 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -110,6 +110,7 @@ hazel add prisma
|
|
|
110
110
|
- `config` - Configuration (@hazeljs/config)
|
|
111
111
|
- `cron` - Cron Jobs (@hazeljs/cron)
|
|
112
112
|
- `prisma` - Prisma ORM (@hazeljs/prisma)
|
|
113
|
+
- `typeorm` - TypeORM (@hazeljs/typeorm)
|
|
113
114
|
- `rag` - RAG/Vector Search (@hazeljs/rag)
|
|
114
115
|
- `serverless` - Serverless (@hazeljs/serverless)
|
|
115
116
|
- `swagger` - Swagger/OpenAPI (@hazeljs/swagger)
|
package/dist/commands/add.js
CHANGED
|
@@ -84,6 +84,10 @@ const HAZEL_PACKAGES = {
|
|
|
84
84
|
npm: '@hazeljs/prisma',
|
|
85
85
|
hint: 'import { PrismaModule } from "@hazeljs/prisma";',
|
|
86
86
|
},
|
|
87
|
+
typeorm: {
|
|
88
|
+
npm: '@hazeljs/typeorm',
|
|
89
|
+
hint: 'import { TypeOrmModule } from "@hazeljs/typeorm";',
|
|
90
|
+
},
|
|
87
91
|
queue: {
|
|
88
92
|
npm: '@hazeljs/queue',
|
|
89
93
|
hint: 'import { QueueModule } from "@hazeljs/queue";',
|
|
@@ -59,6 +59,10 @@ function scaffoldPackageBoilerplate(destPath, packages) {
|
|
|
59
59
|
imports.push("import { PrismaModule } from '@hazeljs/prisma';");
|
|
60
60
|
moduleImports.push('PrismaModule');
|
|
61
61
|
}
|
|
62
|
+
if (packages.includes('@hazeljs/typeorm')) {
|
|
63
|
+
imports.push("import { TypeOrmModule } from '@hazeljs/typeorm';");
|
|
64
|
+
moduleImports.push('TypeOrmModule');
|
|
65
|
+
}
|
|
62
66
|
if (packages.includes('@hazeljs/audit')) {
|
|
63
67
|
imports.push("import { AuditModule, ConsoleAuditTransport } from '@hazeljs/audit';");
|
|
64
68
|
moduleImports.push("AuditModule.forRoot({ transports: [new ConsoleAuditTransport()] })");
|
|
@@ -247,6 +251,7 @@ function generateApp(program) {
|
|
|
247
251
|
{ name: 'Machine Learning (@hazeljs/ml)', value: '@hazeljs/ml' },
|
|
248
252
|
{ name: 'PDF to Audio (@hazeljs/pdf-to-audio)', value: '@hazeljs/pdf-to-audio' },
|
|
249
253
|
{ name: 'Prisma ORM (@hazeljs/prisma)', value: '@hazeljs/prisma' },
|
|
254
|
+
{ name: 'TypeORM (@hazeljs/typeorm)', value: '@hazeljs/typeorm' },
|
|
250
255
|
{ name: 'Queue/BullMQ (@hazeljs/queue)', value: '@hazeljs/queue' },
|
|
251
256
|
{ name: 'RAG/Vector Search (@hazeljs/rag)', value: '@hazeljs/rag' },
|
|
252
257
|
{ name: 'Resilience - Circuit Breaker (@hazeljs/resilience)', value: '@hazeljs/resilience' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/cli",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.54",
|
|
4
4
|
"description": "Command-line interface for scaffolding and generating HazelJS applications and components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"type": "opencollective",
|
|
70
70
|
"url": "https://opencollective.com/hazeljs"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "c593ce33447cdc62d7bd2386cc2db47840292fcb"
|
|
73
73
|
}
|