create-flow-os 0.0.13-dev.1772013189 → 0.0.13-dev.1772013358

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": "create-flow-os",
3
- "version": "0.0.13-dev.1772013189",
3
+ "version": "0.0.13-dev.1772013358",
4
4
  "license": "PolyForm-Shield-1.0.0",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -39,16 +39,22 @@ function resolveFlowDeps(
39
39
  } catch {}
40
40
  }
41
41
  const createFlowOsClientDep = getCreateFlowOsClientDep();
42
+ const isDevSpec = createFlowOsClientDep?.includes("dev");
42
43
  for (const k of Object.keys(resolved)) {
43
44
  if (!k.startsWith("@flow-os/") || (resolved[k] !== "workspace:*" && resolved[k] !== "0.0.1")) continue;
44
45
  let spec: string | undefined;
45
- try {
46
- const root = pkgRoot(k);
47
- const pkg = JSON.parse(readFileSync(join(root, "package.json"), "utf-8")) as { version?: string };
48
- if (pkg.version) spec = `^${pkg.version}`;
49
- } catch {}
50
- if (!spec && ownerVersion) spec = `^${ownerVersion}`;
51
- if (!spec && k === "@flow-os/client" && createFlowOsClientDep) spec = createFlowOsClientDep;
46
+ // flow-os@dev → usa tag "dev" per installare @flow-os/client@dev
47
+ if (k === "@flow-os/client" && isDevSpec) {
48
+ spec = "dev";
49
+ } else {
50
+ try {
51
+ const root = pkgRoot(k);
52
+ const pkg = JSON.parse(readFileSync(join(root, "package.json"), "utf-8")) as { version?: string };
53
+ if (pkg.version) spec = `^${pkg.version}`;
54
+ } catch {}
55
+ if (!spec && ownerVersion) spec = `^${ownerVersion}`;
56
+ if (!spec && k === "@flow-os/client" && createFlowOsClientDep) spec = createFlowOsClientDep;
57
+ }
52
58
  if (spec) resolved[k] = spec;
53
59
  }
54
60
  return resolved;