Release Healer Man 0.1.32

This commit is contained in:
phenom committed 2026-09-12 11:07:25 -04:00
1 parent d3d6aaebdb
commit 6dcb1034e5
102 files changed
+10772 -788

No files matched your search

+44 -2
View File
@@ -9,7 +9,8 @@ const packageVersion = (JSON.parse(readFileSync(new URL("./package.json", import
export default defineConfig(({ mode }) => {
const androidBuild = mode === "android";
const downloadableBuild = androidBuild || mode === "production";
const shelvedModesEnabled = mode === "shelved";
const downloadableBuild = androidBuild || mode === "production" || shelvedModesEnabled;
return {
plugins: [react(), {
name: "bundled-content-preview",
@@ -19,16 +20,57 @@ export default defineConfig(({ mode }) => {
if (!serve(request, response, new URL(request.url ?? "/", "http://localhost").pathname)) next();
});
},
}, {
name: "bundle-module-report",
generateBundle(_options, bundle) {
const chunks = Object.values(bundle)
.filter((entry): entry is Extract<typeof entry, { type: "chunk" }> => entry.type === "chunk")
.map((chunk) => ({
file: chunk.fileName,
entry: chunk.isEntry,
dynamicEntry: chunk.isDynamicEntry,
modules: Object.keys(chunk.modules).map((moduleId) => (
path.relative(process.cwd(), moduleId).split(path.sep).join("/")
)).sort(),
}));
this.emitFile({
type: "asset",
fileName: "bundle-module-report.json",
source: `${JSON.stringify({ shelvedModesEnabled, chunks }, null, 2)}\n`,
});
},
}],
publicDir: androidBuild ? ".android-public" : downloadableBuild ? ".web-public" : "public",
define: {
"import.meta.env.VITE_APP_VERSION": JSON.stringify(packageVersion),
"import.meta.env.VITE_CONTENT_MODE": JSON.stringify(downloadableBuild ? "downloadable" : "bundled"),
"import.meta.env.VITE_SHELVED_MODES_ENABLED": JSON.stringify(shelvedModesEnabled ? "true" : "false"),
},
resolve: {
alias: {
"@dungeonAssetModules": path.resolve(
downloadableBuild ? "src/game/dungeonAssetModules.android.ts" : "src/game/dungeonAssetModules.ts",
androidBuild || mode === "production" ? "src/game/dungeonAssetModules.android.ts" : "src/game/dungeonAssetModules.ts",
),
"@shelvedGameRuntime": path.resolve(
shelvedModesEnabled ? "src/app/ShelvedGameRuntime.enabled.tsx" : "src/app/ShelvedGameRuntime.disabled.tsx",
),
"@shelvedGameScene": path.resolve(
shelvedModesEnabled ? "src/scene/ShelvedGameScene.enabled.tsx" : "src/scene/ShelvedGameScene.disabled.tsx",
),
"@shelvedModeRoutes": path.resolve(
shelvedModesEnabled ? "src/app/ShelvedModeRoutes.tsx" : "src/app/ShelvedModeRoutes.disabled.tsx",
),
"@shelvedOnlineGroupRuntime": path.resolve(
shelvedModesEnabled ? "src/app/ShelvedOnlineGroupRuntime.enabled.ts" : "src/app/ShelvedOnlineGroupRuntime.disabled.ts",
),
"@shelvedDungeonSession": path.resolve(
shelvedModesEnabled ? "src/game/ShelvedDungeonSession.enabled.ts" : "src/game/ShelvedDungeonSession.disabled.ts",
),
"@shelvedCompanionPanel": path.resolve(
shelvedModesEnabled ? "src/ui/ShelvedCompanionPanel.enabled.tsx" : "src/ui/ShelvedCompanionPanel.disabled.tsx",
),
"@shelvedHud": path.resolve(
shelvedModesEnabled ? "src/ui/ShelvedHud.enabled.tsx" : "src/ui/ShelvedHud.disabled.tsx",
),
},
},