@cosmicdrift/kumiko-dev-server 0.291.0 → 0.292.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-dev-server",
3
- "version": "0.291.0",
3
+ "version": "0.292.0",
4
4
  "description": "Dev-tooling for Kumiko apps: local dev-server bootstrap (runDevApp), scaffolding, codegen. Its compose-stacks/env-schema subpaths are consumed at prod boot too — see @cosmicdrift/kumiko-server-runtime for the prod runner itself.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -59,10 +59,10 @@
59
59
  "kumiko-upgrade": "./bin/kumiko-upgrade.ts"
60
60
  },
61
61
  "dependencies": {
62
- "@cosmicdrift/kumiko-bundled-features": "0.291.0",
63
- "@cosmicdrift/kumiko-framework": "0.291.0",
64
- "@cosmicdrift/kumiko-headless": "0.291.0",
65
- "@cosmicdrift/kumiko-server-runtime": "0.291.0",
62
+ "@cosmicdrift/kumiko-bundled-features": "0.292.0",
63
+ "@cosmicdrift/kumiko-framework": "0.292.0",
64
+ "@cosmicdrift/kumiko-headless": "0.292.0",
65
+ "@cosmicdrift/kumiko-server-runtime": "0.292.0",
66
66
  "ts-morph": "^28.0.0"
67
67
  },
68
68
  "publishConfig": {
@@ -58,6 +58,8 @@ import {
58
58
  createRegistry,
59
59
  type EffectiveFeaturesResolver,
60
60
  type FeatureDefinition,
61
+ FILE_STORAGE_PROVIDER_BOOT_SENTINEL,
62
+ FILE_STORAGE_PROVIDER_ENV,
61
63
  findTierResolverUsage,
62
64
  type Registry,
63
65
  type SessionUser,
@@ -289,9 +291,9 @@ export async function runDevApp(options: RunDevAppOptions): Promise<KumikoServer
289
291
  // permanent process.env mutation, so a second runDevApp call in the same
290
292
  // process (no files this time) doesn't fall through the gate falsely.
291
293
  const setFileStorageProviderEnv =
292
- options.files !== undefined && process.env["FILE_STORAGE_PROVIDER"] === undefined;
294
+ options.files !== undefined && process.env[FILE_STORAGE_PROVIDER_ENV] === undefined;
293
295
  if (setFileStorageProviderEnv) {
294
- process.env["FILE_STORAGE_PROVIDER"] = "configured";
296
+ process.env[FILE_STORAGE_PROVIDER_ENV] = FILE_STORAGE_PROVIDER_BOOT_SENTINEL;
295
297
  }
296
298
 
297
299
  // Boot-Validation als allererstes — vor fs-Watcher und Server. Dieselbe
@@ -302,7 +304,7 @@ export async function runDevApp(options: RunDevAppOptions): Promise<KumikoServer
302
304
  try {
303
305
  validateBoot(features, options.validateBootOptions);
304
306
  } finally {
305
- if (setFileStorageProviderEnv) delete process.env["FILE_STORAGE_PROVIDER"];
307
+ if (setFileStorageProviderEnv) delete process.env[FILE_STORAGE_PROVIDER_ENV];
306
308
  }
307
309
  warnIfNonUtcServerTimeZone();
308
310
  validateAppCustomScreenWriteQns(process.cwd(), collectWriteHandlerQns(features));