permanent-underclass 0.1.0-beta.4 → 0.1.0-beta.6

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.
@@ -44,6 +44,7 @@ try {
44
44
  const pkgRoot = path.dirname(pkgJsonPath);
45
45
  const binPath = path.join(pkgRoot, "bin", "permanent-underclass");
46
46
  const sfxRoot = path.join(pkgRoot, "data", "sfx");
47
+ const eventsRoot = path.join(pkgRoot, "data", "events");
47
48
 
48
49
  const AUDIO_ENV_DEFAULTS = [
49
50
  ["PU_SELECTION_SFX", "glitch-004.mp3"],
@@ -68,6 +69,9 @@ for (const [envKey, fileName] of AUDIO_ENV_DEFAULTS) {
68
69
  childEnv[envKey] = filePath;
69
70
  }
70
71
  }
72
+ if (!childEnv.PU_EVENTS_DIR && fs.existsSync(eventsRoot)) {
73
+ childEnv.PU_EVENTS_DIR = eventsRoot;
74
+ }
71
75
 
72
76
  const result = spawnSync(binPath, process.argv.slice(2), {
73
77
  stdio: "inherit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "permanent-underclass",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.6",
4
4
  "description": "Terminal game: Bloomberg-terminal vibes, Oregon-trail dread.",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
@@ -11,7 +11,7 @@
11
11
  "README.md"
12
12
  ],
13
13
  "optionalDependencies": {
14
- "permanent-underclass-darwin-arm64": "0.1.0-beta.4"
14
+ "permanent-underclass-darwin-arm64": "0.1.0-beta.6"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18"