@akanjs/cli 2.1.0-rc.4 → 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.
@@ -5420,9 +5420,7 @@ ${defaultNames.map((name) => `export default ${name};`).join(`
5420
5420
  }
5421
5421
  static resolveSsrClientRuntimeAliases() {
5422
5422
  const serverEntry = RouteClientBuilder.resolveAkanServerEntry();
5423
- const aliases = Object.fromEntries(SSR_CLIENT_ALIAS_EXTERNALS.map((specifier) => [specifier, Bun.resolveSync(specifier, serverEntry)]));
5424
- aliases[Bun.resolveSync("akanjs/fetch", serverEntry)] = "akanjs/fetch";
5425
- return aliases;
5423
+ return { [Bun.resolveSync("akanjs/fetch", serverEntry)]: "akanjs/fetch" };
5426
5424
  }
5427
5425
  static resolveSsrClientExternalOptions(command) {
5428
5426
  if (command === "start") {
@@ -7089,20 +7087,15 @@ class SsrBaseArtifactBuilder {
7089
7087
  return { rscClientUrl, vendorMap };
7090
7088
  }
7091
7089
  async#resolveAkanServerPath() {
7092
- const candidates = [
7093
- path30.join(this.#app.workspace.workspaceRoot, "pkgs/akanjs/server"),
7094
- path30.join(this.#app.workspace.workspaceRoot, "node_modules/akanjs/server"),
7095
- path30.join(path30.dirname(Bun.main), "node_modules/akanjs/server"),
7096
- path30.join(path30.dirname(Bun.main), "../../akanjs/server"),
7097
- path30.resolve(import.meta.dir, "../../server"),
7098
- path30.resolve(import.meta.dir, "../server")
7099
- ];
7090
+ const candidates = [];
7100
7091
  try {
7101
- 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)));
7102
7093
  } catch {}
7094
+ candidates.push(path30.join(this.#app.workspace.workspaceRoot, "pkgs/akanjs/server"), path30.join(this.#app.workspace.workspaceRoot, "node_modules/akanjs/server"));
7103
7095
  try {
7104
- 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))));
7105
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"));
7106
7099
  for (const candidate of candidates) {
7107
7100
  if (await Bun.file(path30.join(candidate, "rscClient.tsx")).exists())
7108
7101
  return candidate;
package/index.js CHANGED
@@ -5417,9 +5417,7 @@ ${defaultNames.map((name) => `export default ${name};`).join(`
5417
5417
  }
5418
5418
  static resolveSsrClientRuntimeAliases() {
5419
5419
  const serverEntry = RouteClientBuilder.resolveAkanServerEntry();
5420
- const aliases = Object.fromEntries(SSR_CLIENT_ALIAS_EXTERNALS.map((specifier) => [specifier, Bun.resolveSync(specifier, serverEntry)]));
5421
- aliases[Bun.resolveSync("akanjs/fetch", serverEntry)] = "akanjs/fetch";
5422
- return aliases;
5420
+ return { [Bun.resolveSync("akanjs/fetch", serverEntry)]: "akanjs/fetch" };
5423
5421
  }
5424
5422
  static resolveSsrClientExternalOptions(command) {
5425
5423
  if (command === "start") {
@@ -7086,20 +7084,15 @@ class SsrBaseArtifactBuilder {
7086
7084
  return { rscClientUrl, vendorMap };
7087
7085
  }
7088
7086
  async#resolveAkanServerPath() {
7089
- const candidates = [
7090
- path30.join(this.#app.workspace.workspaceRoot, "pkgs/akanjs/server"),
7091
- path30.join(this.#app.workspace.workspaceRoot, "node_modules/akanjs/server"),
7092
- path30.join(path30.dirname(Bun.main), "node_modules/akanjs/server"),
7093
- path30.join(path30.dirname(Bun.main), "../../akanjs/server"),
7094
- path30.resolve(import.meta.dir, "../../server"),
7095
- path30.resolve(import.meta.dir, "../server")
7096
- ];
7087
+ const candidates = [];
7097
7088
  try {
7098
- 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)));
7099
7090
  } catch {}
7091
+ candidates.push(path30.join(this.#app.workspace.workspaceRoot, "pkgs/akanjs/server"), path30.join(this.#app.workspace.workspaceRoot, "node_modules/akanjs/server"));
7100
7092
  try {
7101
- 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))));
7102
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"));
7103
7096
  for (const candidate of candidates) {
7104
7097
  if (await Bun.file(path30.join(candidate, "rscClient.tsx")).exists())
7105
7098
  return candidate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "2.1.0-rc.4",
3
+ "version": "2.1.0-rc.6",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -34,7 +34,7 @@
34
34
  "@langchain/deepseek": "^1.0.26",
35
35
  "@langchain/openai": "^1.4.6",
36
36
  "@trapezedev/project": "^7.1.4",
37
- "akanjs": "2.1.0-rc.3",
37
+ "akanjs": "2.1.0-rc.5",
38
38
  "chalk": "^5.6.2",
39
39
  "commander": "^14.0.3",
40
40
  "daisyui": "^5.5.20",