@rainbow-robotics/preview-host 0.1.2-dev.4 → 0.1.2-dev.40
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/build.mjs +13 -1
- package/dist/assets/{__federation_expose_App.B-7yegU_.js → __federation_expose_App.DTILpvFM.js} +154 -154
- package/dist/assets/{cssMode.BVhnq_6y.js → cssMode.CxPsxiNP.js} +1 -1
- package/dist/assets/{freemarker2.DtoqwD_L.js → freemarker2.e18W-vVC.js} +1 -1
- package/dist/assets/{handlebars.UmYoTOId.js → handlebars.DpGUQTlC.js} +1 -1
- package/dist/assets/{html.DC0Vlx9N.js → html.qS8AwR-R.js} +1 -1
- package/dist/assets/{htmlMode.cZn_7xZQ.js → htmlMode.D4pEgAMn.js} +1 -1
- package/dist/assets/{index.C3X9hmTL.js → index.Dxudgz78.js} +1 -1
- package/dist/assets/{javascript.CxVqa5p8.js → javascript.CIRAbwTJ.js} +1 -1
- package/dist/assets/{jsonMode.BQsXaCAy.js → jsonMode.CJcA6JGm.js} +1 -1
- package/dist/assets/{liquid.ctNTffmu.js → liquid.Cd_ynsyQ.js} +1 -1
- package/dist/assets/{lspLanguageFeatures.CIBenPTg.js → lspLanguageFeatures.ZrhgItxw.js} +1 -1
- package/dist/assets/{mdx.CEwN4-mU.js → mdx.E9Mhxtu7.js} +1 -1
- package/dist/assets/{python.DFiX7UCg.js → python.BUTzvd2f.js} +1 -1
- package/dist/assets/{razor.6V_1uJ45.js → razor.CI_gj0Fd.js} +1 -1
- package/dist/assets/remoteEntry.js +1 -1
- package/dist/assets/{tsMode.CtIlnNw7.js → tsMode.DBpdjX7n.js} +1 -1
- package/dist/assets/{typescript.D1htxZ_X.js → typescript.WM3o_g0z.js} +1 -1
- package/dist/assets/{xml.D6hYgOkJ.js → xml.D7f39jWM.js} +1 -1
- package/dist/assets/{yaml.BPMLV51E.js → yaml.BLLpRCf_.js} +1 -1
- package/dist/index.html +2 -2
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/chunks/chunk-37HVFFJB.js +1 -0
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/chunks/{chunk-JRCDA3EG.js → chunk-4MGSRUAS.js} +1 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/chunks/chunk-Q6XGCIPE.js +1 -0
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/connect.js +1 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/elements.js +1 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/react.js +1 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/sdk.js +1 -1
- package/package.json +3 -3
- package/serve.mjs +14 -21
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/chunks/chunk-AMCIKVG7.js +0 -1
- package/dist/plugin-runtime/@rainbow-robotics/plugin-ui/chunks/chunk-GJWPOWHG.js +0 -1
package/build.mjs
CHANGED
|
@@ -18,11 +18,12 @@ const nexusDir = resolve(repoRoot, "apps/web/nexus");
|
|
|
18
18
|
const nexusDist = resolve(nexusDir, "dist-preview");
|
|
19
19
|
const assetsPublic = resolve(repoRoot, "apps/web/assets/public");
|
|
20
20
|
const outDir = resolve(here, "dist");
|
|
21
|
+
const pluginUiRoot = resolve(here, "../plugin-ui");
|
|
21
22
|
|
|
22
23
|
const skipBuild = process.argv.includes("--skip-build");
|
|
23
24
|
|
|
24
25
|
if (!skipBuild) {
|
|
25
|
-
console.log("[preview-host] building
|
|
26
|
+
console.log("[preview-host] building mini-muscat (plugin-preview)…");
|
|
26
27
|
execSync("yarn workspace @app/nexus build:preview", {
|
|
27
28
|
cwd: repoRoot,
|
|
28
29
|
stdio: "inherit",
|
|
@@ -49,4 +50,15 @@ for (const dir of ["imgs", "fonts", "sounds", "data"]) {
|
|
|
49
50
|
if (existsSync(src)) cpSync(src, resolve(outDir, dir), { recursive: true });
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
// plugin-ui dist-browser — bundled in so preview-host has no npm runtime dep on plugin-ui.
|
|
54
|
+
// This lets `npm i -g muscat-plugin-kit` resolve cleanly (no react peerDep chain).
|
|
55
|
+
const distBrowser = resolve(pluginUiRoot, "dist-browser");
|
|
56
|
+
if (!existsSync(distBrowser)) {
|
|
57
|
+
throw new Error(
|
|
58
|
+
`plugin-ui dist-browser not found at ${distBrowser}.\nRun: yarn workspace @rainbow-robotics/plugin-ui build`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
cpSync(distBrowser, resolve(outDir, "plugin-runtime"), { recursive: true });
|
|
62
|
+
console.log("[preview-host] bundled plugin-runtime from plugin-ui/dist-browser");
|
|
63
|
+
|
|
52
64
|
console.log("[preview-host] dist ready →", outDir);
|