@akanjs/cli 2.1.0-rc.5 → 2.1.0-rc.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.
@@ -7087,20 +7087,15 @@ class SsrBaseArtifactBuilder {
7087
7087
  return { rscClientUrl, vendorMap };
7088
7088
  }
7089
7089
  async#resolveAkanServerPath() {
7090
- const candidates = [
7091
- path30.join(this.#app.workspace.workspaceRoot, "pkgs/akanjs/server"),
7092
- path30.join(this.#app.workspace.workspaceRoot, "node_modules/akanjs/server"),
7093
- path30.join(path30.dirname(Bun.main), "node_modules/akanjs/server"),
7094
- path30.join(path30.dirname(Bun.main), "../../akanjs/server"),
7095
- path30.resolve(import.meta.dir, "../../server"),
7096
- path30.resolve(import.meta.dir, "../server")
7097
- ];
7090
+ const candidates = [];
7098
7091
  try {
7099
- candidates.unshift(path30.dirname(Bun.resolveSync("akanjs/server", this.#app.workspace.workspaceRoot)));
7092
+ candidates.push(path30.dirname(Bun.resolveSync("akanjs/server", this.#app.workspace.workspaceRoot)));
7100
7093
  } catch {}
7094
+ candidates.push(path30.join(this.#app.workspace.workspaceRoot, "pkgs/akanjs/server"), path30.join(this.#app.workspace.workspaceRoot, "node_modules/akanjs/server"));
7101
7095
  try {
7102
- candidates.unshift(path30.dirname(Bun.resolveSync("akanjs/server", path30.dirname(Bun.main))));
7096
+ candidates.push(path30.dirname(Bun.resolveSync("akanjs/server", path30.dirname(Bun.main))));
7103
7097
  } catch {}
7098
+ candidates.push(path30.join(path30.dirname(Bun.main), "node_modules/akanjs/server"), path30.join(path30.dirname(Bun.main), "../../akanjs/server"), path30.resolve(import.meta.dir, "../../server"), path30.resolve(import.meta.dir, "../server"));
7104
7099
  for (const candidate of candidates) {
7105
7100
  if (await Bun.file(path30.join(candidate, "rscClient.tsx")).exists())
7106
7101
  return candidate;
package/index.js CHANGED
@@ -7084,20 +7084,15 @@ class SsrBaseArtifactBuilder {
7084
7084
  return { rscClientUrl, vendorMap };
7085
7085
  }
7086
7086
  async#resolveAkanServerPath() {
7087
- const candidates = [
7088
- path30.join(this.#app.workspace.workspaceRoot, "pkgs/akanjs/server"),
7089
- path30.join(this.#app.workspace.workspaceRoot, "node_modules/akanjs/server"),
7090
- path30.join(path30.dirname(Bun.main), "node_modules/akanjs/server"),
7091
- path30.join(path30.dirname(Bun.main), "../../akanjs/server"),
7092
- path30.resolve(import.meta.dir, "../../server"),
7093
- path30.resolve(import.meta.dir, "../server")
7094
- ];
7087
+ const candidates = [];
7095
7088
  try {
7096
- candidates.unshift(path30.dirname(Bun.resolveSync("akanjs/server", this.#app.workspace.workspaceRoot)));
7089
+ candidates.push(path30.dirname(Bun.resolveSync("akanjs/server", this.#app.workspace.workspaceRoot)));
7097
7090
  } catch {}
7091
+ candidates.push(path30.join(this.#app.workspace.workspaceRoot, "pkgs/akanjs/server"), path30.join(this.#app.workspace.workspaceRoot, "node_modules/akanjs/server"));
7098
7092
  try {
7099
- candidates.unshift(path30.dirname(Bun.resolveSync("akanjs/server", path30.dirname(Bun.main))));
7093
+ candidates.push(path30.dirname(Bun.resolveSync("akanjs/server", path30.dirname(Bun.main))));
7100
7094
  } catch {}
7095
+ candidates.push(path30.join(path30.dirname(Bun.main), "node_modules/akanjs/server"), path30.join(path30.dirname(Bun.main), "../../akanjs/server"), path30.resolve(import.meta.dir, "../../server"), path30.resolve(import.meta.dir, "../server"));
7101
7096
  for (const candidate of candidates) {
7102
7097
  if (await Bun.file(path30.join(candidate, "rscClient.tsx")).exists())
7103
7098
  return candidate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "2.1.0-rc.5",
3
+ "version": "2.1.0-rc.6",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {