unoverse 0.1.23 → 0.1.24

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.
Files changed (2) hide show
  1. package/bin/unoverse.mjs +5 -1
  2. package/package.json +1 -1
package/bin/unoverse.mjs CHANGED
@@ -27,7 +27,11 @@ import { create } from "../lib/create.mjs";
27
27
  // file), so the code is global and the data is local.
28
28
  const VENDORED = join(dirname(fileURLToPath(import.meta.url)), "../operator/operator.sh");
29
29
  const IN_REPO = join(dirname(fileURLToPath(import.meta.url)), "../../../scripts/operator.sh");
30
- const OPERATOR = existsSync(VENDORED) ? VENDORED : IN_REPO;
30
+ // IN-REPO WINS. The vendored copy is a build artifact, refreshed only by prepack, so
31
+ // preferring it meant every edit to scripts/lib was invisible while developing here:
32
+ // the CLI kept running whatever the last `npm pack` froze. A published package has no
33
+ // ../../../scripts, so there the vendored copy is the only one and still wins.
34
+ const OPERATOR = existsSync(IN_REPO) ? IN_REPO : VENDORED;
31
35
 
32
36
  function findUniverse() {
33
37
  for (let dir = process.cwd(); ; ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unoverse",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "The Unoverse front door — create a Studio project, a universe, or a client app, and launch Studio.",
5
5
  "license": "SEE LICENSE IN README.md",
6
6
  "type": "module",