playcademy 0.14.28 → 0.14.30
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/cli.d.ts +25 -0
- package/dist/cli.js +3637 -0
- package/dist/constants.d.ts +41 -5
- package/dist/constants.js +24 -3
- package/dist/db.js +1 -1997
- package/dist/index.d.ts +80 -1
- package/dist/index.js +2219 -3755
- package/dist/templates/auth/auth.ts.template +4 -4
- package/dist/templates/config/playcademy.config.js.template +1 -1
- package/dist/templates/config/playcademy.config.json.template +1 -1
- package/dist/templates/database/package.json.template +1 -1
- package/dist/utils.js +398 -2020
- package/dist/version.js +8 -1
- package/package.json +8 -1
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Setup global error handlers for graceful CLI shutdown
|
|
3
|
+
* This prevents stack traces from inquirer and handles Ctrl+C cleanly
|
|
4
|
+
*/
|
|
5
|
+
declare function setupGlobalErrorHandlers(): void;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Init Flow Runner
|
|
9
|
+
*
|
|
10
|
+
* Core init logic extracted for use by both the CLI command and create-playcademy.
|
|
11
|
+
*/
|
|
12
|
+
interface InitOptions {
|
|
13
|
+
/** Overwrite existing config file */
|
|
14
|
+
force?: boolean;
|
|
15
|
+
/** Project directory name (creates new directory if provided) */
|
|
16
|
+
projectDir?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Run the init flow programmatically.
|
|
20
|
+
* Exported for use by create-playcademy.
|
|
21
|
+
*/
|
|
22
|
+
declare function runInit(options?: InitOptions): Promise<void>;
|
|
23
|
+
|
|
24
|
+
export { runInit, setupGlobalErrorHandlers };
|
|
25
|
+
export type { InitOptions };
|