@nexusts/cli 0.7.3 → 0.7.5

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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * `nx make:repository <Name>` — generate a repository class.
3
+ */
4
+ import type { Command } from "../core/index.js";
5
+ export declare const makeRepositoryCommand: Command;
6
+ export default makeRepositoryCommand;
@@ -34,6 +34,7 @@ export declare function preloadService(env: Record<string, unknown>, app: {
34
34
  resolve: (t: unknown) => unknown;
35
35
  };
36
36
  }, name: string, path: string, className: string): Promise<void>;
37
+ export declare function describeToken(token: unknown): string;
37
38
  export declare function listServices(container: unknown): string[];
38
39
  export declare function isIncomplete(code: string): boolean;
39
40
  export declare function formatResult(r: unknown): string;
@@ -8,6 +8,7 @@ export * from "./logger.js";
8
8
  export * from "./loose-json.js";
9
9
  export * from "./prompts.js";
10
10
  export * from "./template.js";
11
+ export { VERSION } from "./version.js";
11
12
  /**
12
13
  * The CLI command contract. Every command module exports a default
13
14
  * `Command` object that the entry point dispatches against.
@@ -40,3 +41,15 @@ export interface CommandContext {
40
41
  positional: string[];
41
42
  flags: Record<string, string | boolean | string[]>;
42
43
  }
44
+ /**
45
+ * Context passed to seed file default exports.
46
+ *
47
+ * import type { SeedContext } from "@nexusts/cli";
48
+ * export default async function seed(ctx: SeedContext) { ... }
49
+ */
50
+ export interface SeedContext {
51
+ db: import("@nexusts/drizzle").DrizzleService;
52
+ logger: import("@nexusts/logger").Logger;
53
+ dialect: string;
54
+ truncate: (table: any) => Promise<void>;
55
+ }
@@ -0,0 +1 @@
1
+ export declare const VERSION: string;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
  /**
3
- * `nx` — the Nexus CLI entry point.
3
+ * `nx` — the NexusTS CLI entry point.
4
4
  *
5
5
  * Invocation:
6
6
  * bunx nx <command> [args...]