@akanjs/devkit 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.
|
@@ -92,24 +92,27 @@ export class SsrBaseArtifactBuilder {
|
|
|
92
92
|
return { rscClientUrl, vendorMap };
|
|
93
93
|
}
|
|
94
94
|
async #resolveAkanServerPath() {
|
|
95
|
-
const candidates = [
|
|
96
|
-
path.join(this.#app.workspace.workspaceRoot, "pkgs/akanjs/server"),
|
|
97
|
-
path.join(this.#app.workspace.workspaceRoot, "node_modules/akanjs/server"),
|
|
98
|
-
path.join(path.dirname(Bun.main), "node_modules/akanjs/server"),
|
|
99
|
-
path.join(path.dirname(Bun.main), "../../akanjs/server"),
|
|
100
|
-
path.resolve(import.meta.dir, "../../server"),
|
|
101
|
-
path.resolve(import.meta.dir, "../server"),
|
|
102
|
-
];
|
|
95
|
+
const candidates: string[] = [];
|
|
103
96
|
try {
|
|
104
|
-
candidates.
|
|
97
|
+
candidates.push(path.dirname(Bun.resolveSync("akanjs/server", this.#app.workspace.workspaceRoot)));
|
|
105
98
|
} catch {
|
|
106
|
-
// Source workspaces and bundled CLI execution have different resolution roots; try
|
|
99
|
+
// Source workspaces and bundled CLI execution have different resolution roots; try explicit candidates below.
|
|
107
100
|
}
|
|
101
|
+
candidates.push(
|
|
102
|
+
path.join(this.#app.workspace.workspaceRoot, "pkgs/akanjs/server"),
|
|
103
|
+
path.join(this.#app.workspace.workspaceRoot, "node_modules/akanjs/server"),
|
|
104
|
+
);
|
|
108
105
|
try {
|
|
109
|
-
candidates.
|
|
106
|
+
candidates.push(path.dirname(Bun.resolveSync("akanjs/server", path.dirname(Bun.main))));
|
|
110
107
|
} catch {
|
|
111
108
|
// Published CLI installs may hoist dependencies differently; explicit Bun.main candidates cover that.
|
|
112
109
|
}
|
|
110
|
+
candidates.push(
|
|
111
|
+
path.join(path.dirname(Bun.main), "node_modules/akanjs/server"),
|
|
112
|
+
path.join(path.dirname(Bun.main), "../../akanjs/server"),
|
|
113
|
+
path.resolve(import.meta.dir, "../../server"),
|
|
114
|
+
path.resolve(import.meta.dir, "../server"),
|
|
115
|
+
);
|
|
113
116
|
for (const candidate of candidates) {
|
|
114
117
|
if (await Bun.file(path.join(candidate, "rscClient.tsx")).exists()) return candidate;
|
|
115
118
|
}
|