@nexusts/cli 0.8.3 → 0.9.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.
@@ -1,8 +1,8 @@
1
1
  /**
2
- * NestJS-style controller template.
2
+ * NestJS-style controller template (standard decorator mode).
3
3
  *
4
- * Renders an `@Controller(prefix)` class with `@Get` / `@Post` /
5
- * `@Put` / `@Delete` routes that delegate to an injected service.
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` (Nest style, with optional Inertia).
2
+ * Controller template for `make:crud` standard decorator mode.
3
3
  *
4
- * Renders all five RESTful actions + an Inertia page if `view === 'inertia'`.
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
@@ -1,5 +1,7 @@
1
1
  /**
2
- * Service template.
2
+ * Service template (standard decorator mode).
3
+ *
4
+ * Uses field injection (@Inject on fields) instead of constructor params.
3
5
  *
4
6
  * Context:
5
7
  * name — PascalCase class name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexusts/cli",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
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.8.3"
32
+ "@nexusts/core": "^0.9.0"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",