@unoverse-platform/studio 0.1.106 → 0.1.107
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/local/plugin.ts +8 -4
- package/package.json +1 -1
package/local/plugin.ts
CHANGED
|
@@ -229,11 +229,15 @@ export function localStudioHost(): Plugin {
|
|
|
229
229
|
* is what kept Studio from being publishable at all.
|
|
230
230
|
*/
|
|
231
231
|
const vendored = resolve(dirname(fileURLToPath(import.meta.url)), "../vendor/base/src");
|
|
232
|
+
// AN INSTALLED STUDIO USES ONLY ITS OWN COPY. Node can still find a base on npm, an
|
|
233
|
+
// old one the marketplace package depends on (0.3.67, deprecated), and preferring it
|
|
234
|
+
// crashed 0.1.106 on a file that copy predates (orgDocuments.ts, 2026-10-03). Only
|
|
235
|
+
// the monorepo, where Studio is not under node_modules, resolves the live package.
|
|
236
|
+
const installed = fileURLToPath(import.meta.url).includes("/node_modules/");
|
|
232
237
|
try {
|
|
233
|
-
baseSrc =
|
|
234
|
-
|
|
235
|
-
"../src"
|
|
236
|
-
);
|
|
238
|
+
baseSrc = installed
|
|
239
|
+
? vendored
|
|
240
|
+
: resolve(createRequire(import.meta.url).resolve("@unoverse-platform/base/package.json"), "../src");
|
|
237
241
|
} catch {
|
|
238
242
|
baseSrc = vendored;
|
|
239
243
|
}
|