@mpgd/cli 0.20.1 → 0.22.0
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/index.d.ts +2 -1
- package/dist/index.js +92 -8
- package/dist/microsoft-store-package-generation-contract.d.ts +5 -0
- package/dist/microsoft-store-package-generation-input.js +55 -0
- package/dist/microsoft-store-starter.d.ts +7 -0
- package/dist/microsoft-store-starter.js +176 -4
- package/dist/microsoft-store-submission.d.ts +24 -3
- package/dist/microsoft-store-submission.js +131 -4
- package/dist/offline-playtest.d.ts +31 -0
- package/dist/offline-playtest.js +5718 -0
- package/dist/production-target-readiness.d.ts +4 -0
- package/dist/production-target-readiness.js +40 -12
- package/package.json +15 -13
- package/templates/phaser-game/README.md +62 -22
- package/templates/phaser-game/apps/target-ait/apps-in-toss.config.ts +12 -0
- package/templates/phaser-game/apps/target-ait/package.json +5 -8
- package/templates/phaser-game/apps/target-ait/vite.config.ts +6 -15
- package/templates/phaser-game/apps/target-cloudflare-pages/package.json +1 -1
- package/templates/phaser-game/apps/target-devvit/README.md +2 -1
- package/templates/phaser-game/apps/target-devvit/package.json +1 -1
- package/templates/phaser-game/apps/target-devvit/src/server/index.ts +1 -0
- package/templates/phaser-game/docs/MPGD_KIT_WORKFLOWS.md +11 -0
- package/templates/phaser-game/mpgd.targets.json +8 -1
- package/templates/phaser-game/package.json +2 -5
- package/templates/phaser-game/pnpm-workspace.yaml +3 -2
- package/templates/phaser-game/src/entry.ts +10 -4
- package/templates/phaser-game/src/gameEntry.ts +7 -1
- package/templates/phaser-game/src/platform/buildGateways/microsoftStore.ts +37 -0
- package/templates/phaser-game/src/platform/runtimeDetector.ts +1 -0
- package/templates/phaser-game/src/runtime/renderEntryFailure.ts +24 -0
- package/templates/phaser-game/vite.runtime-target-config.ts +2 -0
- package/templates/phaser-game/vite.shared.ts +6 -2
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync } from 'node:fs';
|
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
3
|
|
|
4
4
|
import ttsc from '@ttsc/unplugin/vite';
|
|
5
|
-
import type { UserConfig } from 'vite';
|
|
5
|
+
import type { PluginOption, UserConfig } from 'vite';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
assertRuntimeTargetConfigMatrix,
|
|
@@ -51,10 +51,12 @@ export function createGameViteSharedConfig(
|
|
|
51
51
|
return {
|
|
52
52
|
base: './',
|
|
53
53
|
plugins: [
|
|
54
|
+
// The unplugin runtime is Vite-compatible, but its recursive generic
|
|
55
|
+
// plugin type can exceed TypeScript's comparison depth in a monorepo.
|
|
54
56
|
ttsc({
|
|
55
57
|
project: input.project,
|
|
56
58
|
plugins: false,
|
|
57
|
-
}),
|
|
59
|
+
}) as unknown as PluginOption,
|
|
58
60
|
],
|
|
59
61
|
resolve: {
|
|
60
62
|
alias: {
|
|
@@ -124,6 +126,8 @@ export function resolveBuildGatewayModule(input: {
|
|
|
124
126
|
: 'src/platform/buildGateways/reddit.ts';
|
|
125
127
|
case 'verse8':
|
|
126
128
|
return 'src/platform/buildGateways/verse8.ts';
|
|
129
|
+
case 'microsoft-store':
|
|
130
|
+
return 'src/platform/buildGateways/microsoftStore.ts';
|
|
127
131
|
default:
|
|
128
132
|
return 'src/platform/buildGateways/browser.ts';
|
|
129
133
|
}
|