@mpgd/cli 0.15.2 → 0.16.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.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "Gunshi CLI for mpgd-kit starter generation and target workflow orchestration.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -50,18 +50,18 @@
|
|
|
50
50
|
"@types/node": "^24.0.0",
|
|
51
51
|
"ttsc": "0.18.4",
|
|
52
52
|
"typescript": "7.0.2",
|
|
53
|
-
"@mpgd/adapter-ait": "0.
|
|
53
|
+
"@mpgd/adapter-ait": "0.6.0",
|
|
54
54
|
"@mpgd/adapter-browser": "0.5.0",
|
|
55
55
|
"@mpgd/adapter-capacitor": "0.4.4",
|
|
56
56
|
"@mpgd/adapter-verse8": "0.2.1",
|
|
57
57
|
"@mpgd/adapter-devvit": "0.8.4",
|
|
58
58
|
"@mpgd/analytics": "0.3.7",
|
|
59
|
-
"@mpgd/catalog": "0.5.0",
|
|
60
59
|
"@mpgd/bridge": "0.6.1",
|
|
60
|
+
"@mpgd/catalog": "0.5.0",
|
|
61
61
|
"@mpgd/game-services": "0.10.0",
|
|
62
|
-
"@mpgd/platform": "0.7.0",
|
|
63
62
|
"@mpgd/i18n": "0.5.3",
|
|
64
63
|
"@mpgd/phaser-assets": "0.4.1",
|
|
64
|
+
"@mpgd/platform": "0.7.0",
|
|
65
65
|
"@mpgd/target-config": "0.9.0"
|
|
66
66
|
},
|
|
67
67
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@mpgd/adapter-ait": "__MPGD_DEPENDENCY_VERSION_ADAPTER_AIT__"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@ait-co/devtools": "^0.1.
|
|
25
|
+
"@ait-co/devtools": "^0.1.140",
|
|
26
26
|
"@apps-in-toss/cli": "^2.10.6",
|
|
27
27
|
"@ttsc/unplugin": "0.18.4",
|
|
28
28
|
"@types/node": "^24.0.0",
|
|
@@ -13,24 +13,41 @@ const aitDevtoolsTunnel = isTruthyEnv(process.env.AIT_TUNNEL)
|
|
|
13
13
|
const aitAppName = process.env.MPGD_AIT_APP_NAME?.trim() || '__GAME_NAME__';
|
|
14
14
|
const aitAdConfig = readAitAdConfig(process.env.MPGD_AD_PLACEMENTS_FILE);
|
|
15
15
|
|
|
16
|
-
export default defineConfig(({ command, isPreview }) =>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
16
|
+
export default defineConfig(({ command, isPreview }) => {
|
|
17
|
+
const enableAitDevtools = command === 'serve'
|
|
18
|
+
&& !isPreview
|
|
19
|
+
&& process.env.MPGD_AIT_DEVTOOLS !== '0';
|
|
20
|
+
|
|
21
|
+
return {
|
|
22
|
+
define: {
|
|
23
|
+
__MPGD_AIT_APP_NAME__: JSON.stringify(aitAppName),
|
|
24
|
+
__MPGD_AIT_AD_GROUP_IDS__: JSON.stringify(aitAdConfig.adGroupIds),
|
|
25
|
+
__MPGD_AIT_AD_PLACEMENT_TYPES__: JSON.stringify(aitAdConfig.adPlacementTypes),
|
|
26
|
+
},
|
|
27
|
+
// Vite prebundles the Kit host before plugin resolve hooks run. An explicit development
|
|
28
|
+
// alias keeps that optimized host while replacing its transitive native SDK import.
|
|
29
|
+
...(enableAitDevtools
|
|
30
|
+
? {
|
|
31
|
+
resolve: {
|
|
32
|
+
alias: {
|
|
33
|
+
'@apps-in-toss/web-framework': '@ait-co/devtools/mock',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
}
|
|
37
|
+
: {}),
|
|
38
|
+
plugins: [
|
|
39
|
+
...(enableAitDevtools
|
|
40
|
+
? [aitDevtools.vite({ mcp: true, tunnel: aitDevtoolsTunnel })]
|
|
41
|
+
: []),
|
|
42
|
+
ttsc({ project: 'tsconfig.json', plugins: false }),
|
|
43
|
+
],
|
|
44
|
+
build: {
|
|
45
|
+
target: 'es2022',
|
|
46
|
+
outDir: 'dist',
|
|
47
|
+
emptyOutDir: true,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
});
|
|
34
51
|
|
|
35
52
|
function readAitAdConfig(path: string | undefined): {
|
|
36
53
|
readonly adGroupIds: Readonly<Record<string, string>>;
|