@mpgd/cli 0.16.0 → 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.16.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": {
@@ -56,10 +56,10 @@
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/bridge": "0.6.1",
59
60
  "@mpgd/catalog": "0.5.0",
60
61
  "@mpgd/game-services": "0.10.0",
61
62
  "@mpgd/i18n": "0.5.3",
62
- "@mpgd/bridge": "0.6.1",
63
63
  "@mpgd/phaser-assets": "0.4.1",
64
64
  "@mpgd/platform": "0.7.0",
65
65
  "@mpgd/target-config": "0.9.0"
@@ -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.138",
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
- define: {
18
- __MPGD_AIT_APP_NAME__: JSON.stringify(aitAppName),
19
- __MPGD_AIT_AD_GROUP_IDS__: JSON.stringify(aitAdConfig.adGroupIds),
20
- __MPGD_AIT_AD_PLACEMENT_TYPES__: JSON.stringify(aitAdConfig.adPlacementTypes),
21
- },
22
- plugins: [
23
- ...(command === 'serve' && !isPreview && process.env.MPGD_AIT_DEVTOOLS !== '0'
24
- ? [aitDevtools.vite({ mcp: true, tunnel: aitDevtoolsTunnel })]
25
- : []),
26
- ttsc({ project: 'tsconfig.json', plugins: false }),
27
- ],
28
- build: {
29
- target: 'es2022',
30
- outDir: 'dist',
31
- emptyOutDir: true,
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>>;