@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.
- package/dist/commands/make-repository.d.ts +6 -0
- package/dist/commands/repl.d.ts +1 -0
- package/dist/core/index.d.ts +13 -0
- package/dist/core/version.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +255 -161
- package/dist/index.js.map +17 -15
- package/dist/templates/project/nx.config.d.ts +1 -1
- package/package.json +2 -2
package/dist/commands/repl.d.ts
CHANGED
|
@@ -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;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -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;
|