@playcademy/vite-plugin 0.1.31 → 0.1.32-alpha.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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox database recreation functionality
|
|
3
|
+
* Handles recreating the sandbox database on-demand
|
|
4
|
+
*/
|
|
5
|
+
import type { ResolvedConfig } from 'vite';
|
|
6
|
+
import type { PlatformModeOptions } from './platform-mode';
|
|
7
|
+
export interface RecreateSandboxDatabaseOptions {
|
|
8
|
+
viteConfig: ResolvedConfig;
|
|
9
|
+
platformModeOptions: PlatformModeOptions;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Recreate the sandbox database
|
|
13
|
+
*/
|
|
14
|
+
export declare function recreateSandboxDatabase(options: RecreateSandboxDatabaseOptions): Promise<void>;
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
* Backend only, no sandbox or shell wrapper
|
|
4
4
|
*/
|
|
5
5
|
import type { ResolvedConfig, ViteDevServer } from 'vite';
|
|
6
|
+
export interface StandaloneModeOptions {
|
|
7
|
+
preferredPort: number;
|
|
8
|
+
configPath?: string;
|
|
9
|
+
}
|
|
6
10
|
/**
|
|
7
11
|
* Configure server in standalone mode (backend only, no sandbox or shell)
|
|
8
12
|
*/
|
|
9
|
-
export declare function configureStandaloneMode(server: ViteDevServer, viteConfig: ResolvedConfig,
|
|
13
|
+
export declare function configureStandaloneMode(server: ViteDevServer, viteConfig: ResolvedConfig, options: StandaloneModeOptions): Promise<void>;
|
package/dist/types/internal.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import type { PlaycademyMode } from './options';
|
|
|
7
7
|
* Internal resolved plugin options
|
|
8
8
|
*/
|
|
9
9
|
export interface ResolvedPluginOptions {
|
|
10
|
+
configPath?: string;
|
|
10
11
|
mode: PlaycademyMode;
|
|
11
12
|
autoZip: boolean;
|
|
12
13
|
sandboxUrl: string;
|
|
@@ -77,4 +78,5 @@ export interface CliDevServerOptions {
|
|
|
77
78
|
preferredPort: number;
|
|
78
79
|
viteConfig: ResolvedConfig;
|
|
79
80
|
platformUrl?: string;
|
|
81
|
+
configPath?: string;
|
|
80
82
|
}
|
package/dist/types/options.d.ts
CHANGED
|
@@ -255,6 +255,22 @@ export interface PlaycademyShellOptions {
|
|
|
255
255
|
* ```
|
|
256
256
|
*/
|
|
257
257
|
export interface PlaycademyPluginOptions {
|
|
258
|
+
/**
|
|
259
|
+
* Path to the playcademy.config.js file.
|
|
260
|
+
*
|
|
261
|
+
* By default, the plugin searches for the config file in the current directory
|
|
262
|
+
* and up to 3 parent directories. Use this option to explicitly specify the
|
|
263
|
+
* config file path when using non-standard project structures.
|
|
264
|
+
*
|
|
265
|
+
* @example
|
|
266
|
+
* ```ts
|
|
267
|
+
* // When running from a client/ subdirectory with config in root
|
|
268
|
+
* {
|
|
269
|
+
* configPath: '../playcademy.config.js'
|
|
270
|
+
* }
|
|
271
|
+
* ```
|
|
272
|
+
*/
|
|
273
|
+
configPath?: string;
|
|
258
274
|
/**
|
|
259
275
|
* Plugin operation mode.
|
|
260
276
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcademy/vite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32-alpha.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"archiver": "^7.0.1",
|
|
23
23
|
"picocolors": "^1.1.1",
|
|
24
|
-
"playcademy": "0.14.
|
|
24
|
+
"playcademy": "0.14.19"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@inquirer/prompts": "^7.8.6",
|