@mpgd/cli 0.24.0 → 0.24.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpgd/cli",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"description": "Gunshi CLI for mpgd-kit starter generation and target workflow orchestration.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -52,19 +52,19 @@
|
|
|
52
52
|
"@types/node": "^24.0.0",
|
|
53
53
|
"ttsc": "0.18.4",
|
|
54
54
|
"typescript": "7.0.2",
|
|
55
|
-
"@mpgd/adapter-ait": "0.10.0",
|
|
56
55
|
"@mpgd/adapter-browser": "0.7.1",
|
|
57
|
-
"@mpgd/adapter-
|
|
58
|
-
"@mpgd/adapter-devvit": "0.9.1",
|
|
56
|
+
"@mpgd/adapter-devvit": "0.9.2",
|
|
59
57
|
"@mpgd/adapter-verse8": "0.3.1",
|
|
58
|
+
"@mpgd/adapter-capacitor": "0.4.7",
|
|
59
|
+
"@mpgd/adapter-ait": "0.10.0",
|
|
60
60
|
"@mpgd/analytics": "0.3.10",
|
|
61
|
-
"@mpgd/bridge": "0.9.0",
|
|
62
61
|
"@mpgd/catalog": "0.7.0",
|
|
62
|
+
"@mpgd/bridge": "0.9.0",
|
|
63
63
|
"@mpgd/game-services": "0.12.1",
|
|
64
64
|
"@mpgd/phaser-assets": "0.4.1",
|
|
65
|
+
"@mpgd/target-config": "0.13.0",
|
|
65
66
|
"@mpgd/platform": "0.10.0",
|
|
66
|
-
"@mpgd/i18n": "0.5.6"
|
|
67
|
-
"@mpgd/target-config": "0.13.0"
|
|
67
|
+
"@mpgd/i18n": "0.5.6"
|
|
68
68
|
},
|
|
69
69
|
"main": "./dist/index.js",
|
|
70
70
|
"types": "./dist/index.d.ts",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"fix": "ttsc fix"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@devvit/web": "0.
|
|
22
|
+
"@devvit/web": "0.14.1",
|
|
23
23
|
"@mpgd/adapter-devvit": "__MPGD_DEPENDENCY_VERSION_ADAPTER_DEVVIT__",
|
|
24
24
|
"@mpgd/bridge": "__MPGD_DEPENDENCY_VERSION_BRIDGE__"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@devvit/start": "0.
|
|
27
|
+
"@devvit/start": "0.14.1",
|
|
28
28
|
"@ttsc/unplugin": "0.18.4",
|
|
29
29
|
"@types/node": "^24.0.0",
|
|
30
|
-
"devvit": "0.
|
|
30
|
+
"devvit": "0.14.1",
|
|
31
31
|
"ttsc": "0.18.4",
|
|
32
32
|
"typescript": "7.0.2",
|
|
33
|
-
"vite": "
|
|
33
|
+
"vite": "7.3.6"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -2,7 +2,7 @@ import { resolve } from 'node:path';
|
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
3
|
|
|
4
4
|
import { devvit } from '@devvit/start/vite';
|
|
5
|
-
import { defineConfig } from 'vite';
|
|
5
|
+
import { defineConfig, type PluginOption } from 'vite';
|
|
6
6
|
|
|
7
7
|
import { createGameViteSharedConfig } from '../../vite.shared';
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ const wrapperRoot = fileURLToPath(new URL('.', import.meta.url));
|
|
|
10
10
|
const gameRoot = resolve(wrapperRoot, '../..');
|
|
11
11
|
|
|
12
12
|
export default defineConfig(({ mode }) => {
|
|
13
|
-
const shared = createGameViteSharedConfig({
|
|
13
|
+
const shared = createGameViteSharedConfig<PluginOption>({
|
|
14
14
|
appTarget: 'reddit',
|
|
15
15
|
configTarget: 'reddit',
|
|
16
16
|
gameRoot,
|
|
@@ -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 { PluginOption
|
|
5
|
+
import type { PluginOption } from 'vite';
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
8
|
assertRuntimeTargetConfigMatrix,
|
|
@@ -29,9 +29,19 @@ export interface CreateGameViteSharedConfigInput {
|
|
|
29
29
|
readonly adPlacementsFile?: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
/** Vite-major-neutral subset shared by every generated target wrapper. */
|
|
33
|
+
export interface GameViteSharedConfig<SharedPluginOption> {
|
|
34
|
+
readonly base: string;
|
|
35
|
+
readonly plugins: SharedPluginOption[];
|
|
36
|
+
readonly resolve: {
|
|
37
|
+
readonly alias: Record<string, string>;
|
|
38
|
+
};
|
|
39
|
+
readonly define: Record<string, string>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function createGameViteSharedConfig<SharedPluginOption = PluginOption>(
|
|
33
43
|
input: CreateGameViteSharedConfigInput,
|
|
34
|
-
):
|
|
44
|
+
): GameViteSharedConfig<SharedPluginOption> {
|
|
35
45
|
const isProduction = input.mode === 'production';
|
|
36
46
|
const appTarget = input.appTarget ?? process.env.APP_TARGET ?? 'browser';
|
|
37
47
|
const configTarget = input.configTarget ?? process.env.MPGD_CONFIG_TARGET ?? '';
|
|
@@ -56,7 +66,7 @@ export function createGameViteSharedConfig(
|
|
|
56
66
|
ttsc({
|
|
57
67
|
project: input.project,
|
|
58
68
|
plugins: false,
|
|
59
|
-
}) as unknown as
|
|
69
|
+
}) as unknown as SharedPluginOption,
|
|
60
70
|
],
|
|
61
71
|
resolve: {
|
|
62
72
|
alias: {
|