@playcademy/vite-plugin 0.1.26-alpha.2 → 0.1.26-alpha.3

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/README.md CHANGED
@@ -79,7 +79,7 @@ export default defineConfig({
79
79
  playcademy({
80
80
  export: {
81
81
  platform: 'web', // Platform identifier (auto-detected)
82
- autoZip: false, // Create deployment zip
82
+ autoZip: true, // Create deployment zip (enabled by default)
83
83
  },
84
84
  sandbox: {
85
85
  autoStart: true, // Start sandbox automatically
@@ -95,14 +95,16 @@ export default defineConfig({
95
95
  })
96
96
  ```
97
97
 
98
- ### Production Build Configuration
98
+ ### Disabling Auto-Zip
99
+
100
+ By default, the plugin creates a deployment archive. To disable:
99
101
 
100
102
  ```typescript
101
103
  export default defineConfig({
102
104
  plugins: [
103
105
  playcademy({
104
106
  export: {
105
- autoZip: true, // Creates .playcademy/{project-name}.zip
107
+ autoZip: false, // Disable automatic zip creation
106
108
  },
107
109
  }),
108
110
  ],
@@ -134,7 +136,7 @@ Configuration for manifest generation and build output:
134
136
  | Option | Type | Default | Description |
135
137
  | ---------- | --------- | ------- | ---------------------------------------------- |
136
138
  | `platform` | `string` | `'web'` | Platform identifier (e.g., 'web', 'godot@4.3') |
137
- | `autoZip` | `boolean` | `false` | Create deployment zip archive |
139
+ | `autoZip` | `boolean` | `true` | Create deployment zip archive |
138
140
 
139
141
  ### Sandbox Options (`sandbox`)
140
142
 
@@ -243,7 +245,7 @@ The plugin generates `dist/playcademy.manifest.json`:
243
245
 
244
246
  ### Deployment Archive
245
247
 
246
- With `autoZip: true`, creates `.playcademy/{project-name}.zip` containing all build files ready for platform upload.
248
+ By default, the plugin creates `.playcademy/{project-name}.zip` containing all build files ready for platform upload. This can be disabled by setting `autoZip: false`.
247
249
 
248
250
  ## Development
249
251
 
@@ -335,16 +337,13 @@ export default defineConfig({
335
337
  })
336
338
  ```
337
339
 
338
- ### Production Deployment
340
+ ### Mode-Based Configuration
339
341
 
340
342
  ```typescript
341
- // Optimized for production builds
343
+ // Different settings for development vs production
342
344
  export default defineConfig(({ mode }) => ({
343
345
  plugins: [
344
346
  playcademy({
345
- export: {
346
- autoZip: mode === 'production',
347
- },
348
347
  sandbox: {
349
348
  verbose: mode === 'development',
350
349
  },
@@ -365,9 +364,9 @@ export default defineConfig(({ mode }) => ({
365
364
 
366
365
  **Zip file not created**
367
366
 
368
- - Enable `autoZip: true` in export options
369
- - Check that build completed without errors
367
+ - Auto-zip is enabled by default - check that build completed without errors
370
368
  - Look for zip in `.playcademy/` directory
369
+ - If you previously disabled it, remove `autoZip: false` from export options
371
370
 
372
371
  ### Debug Mode
373
372
 
package/dist/index.js CHANGED
@@ -206102,7 +206102,7 @@ function resolveOptions(options) {
206102
206102
  const shellOptions = options.shell ?? {};
206103
206103
  return {
206104
206104
  mode: options.mode ?? "platform",
206105
- autoZip: exportOptions.autoZip ?? false,
206105
+ autoZip: exportOptions.autoZip ?? true,
206106
206106
  sandboxUrl: sandboxOptions.url ?? `http://localhost:${DEFAULT_PORTS4.SANDBOX}`,
206107
206107
  startSandbox: sandboxOptions.url ? false : sandboxOptions.autoStart ?? true,
206108
206108
  verbose: sandboxOptions.verbose ?? false,
@@ -11,6 +11,10 @@ export type PlaycademyMode = 'platform' | 'standalone';
11
11
  * Configuration options for exporting Playcademy games
12
12
  */
13
13
  export interface PlaycademyExportOptions {
14
+ /**
15
+ * Automatically create a deployment zip archive at .playcademy/{project-name}.zip
16
+ * @default true
17
+ */
14
18
  autoZip?: boolean;
15
19
  }
16
20
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcademy/vite-plugin",
3
- "version": "0.1.26-alpha.2",
3
+ "version": "0.1.26-alpha.3",
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.3"
24
+ "playcademy": "0.14.4"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@inquirer/prompts": "^7.8.6",