@nexusts/cli 0.8.4 → 0.9.1
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/commands/db-migrate.d.ts +1 -1
- package/dist/commands/init.d.ts +1 -1
- package/dist/core/config.d.ts +1 -1
- package/dist/index.js +65 -70
- package/dist/index.js.map +15 -15
- package/dist/templates/controller/nest.d.ts +3 -3
- package/dist/templates/crud/controller.d.ts +3 -2
- package/dist/templates/repository/repository.d.ts +6 -1
- package/dist/templates/service/service.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* NestJS-style controller template.
|
|
2
|
+
* NestJS-style controller template (standard decorator mode).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Uses field injection (@Inject on fields) instead of constructor params,
|
|
5
|
+
* and the method receives `ctx` (Hono Context) instead of @Param/@Body.
|
|
6
6
|
*
|
|
7
7
|
* Context keys used:
|
|
8
8
|
* name — PascalCase class name (e.g. "User")
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Controller template for `make:crud`
|
|
2
|
+
* Controller template for `make:crud` — standard decorator mode.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* All five RESTful actions receive `ctx` (Hono Context) and use
|
|
5
|
+
* `inputValue()` for typed param extraction + inline JSON body parsing.
|
|
5
6
|
*/
|
|
6
7
|
declare const _default: string;
|
|
7
8
|
export default _default;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Repository template.
|
|
2
|
+
* Repository template (standard decorator mode).
|
|
3
|
+
*
|
|
4
|
+
* Uses field injection (@Inject on fields) instead of constructor params.
|
|
5
|
+
* The parent DrizzleRepository accepts optional constructor args, so
|
|
6
|
+
* `super()` is safe with no arguments — fields are injected by the DI
|
|
7
|
+
* container after construction.
|
|
3
8
|
*
|
|
4
9
|
* Context:
|
|
5
10
|
* name — PascalCase class name
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexusts/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "CLI command runner (nx)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nexusts/core": "^0.
|
|
32
|
+
"@nexusts/core": "^0.9.1"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|