@rodyssey/cli 0.4.0 → 0.4.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +13 -7
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2071,7 +2071,7 @@ var {
2071
2071
  // package.json
2072
2072
  var package_default = {
2073
2073
  name: "@rodyssey/cli",
2074
- version: "0.4.0",
2074
+ version: "0.4.1",
2075
2075
  description: "Scaffold new projects from airconcepts templates",
2076
2076
  repository: {
2077
2077
  type: "git",
@@ -3879,16 +3879,18 @@ function resolveWidgetConfigUrl(options) {
3879
3879
  return url.toString().replace(/\/$/, "");
3880
3880
  }
3881
3881
  function resolveManifestPath(manifest) {
3882
- if (manifest)
3883
- return resolve(process.cwd(), manifest);
3882
+ if (manifest) {
3883
+ const manifestPath = resolve(process.cwd(), manifest);
3884
+ if (!existsSync4(manifestPath)) {
3885
+ throw new Error(`Widget manifest not found: ${manifestPath}`);
3886
+ }
3887
+ return manifestPath;
3888
+ }
3884
3889
  const candidates = [
3885
3890
  resolve(process.cwd(), "build/client/widgets.manifest.json"),
3886
3891
  resolve(process.cwd(), "dist/widgets.manifest.json")
3887
3892
  ];
3888
3893
  const found = candidates.find((candidate) => existsSync4(candidate));
3889
- if (!found) {
3890
- throw new Error("No widget manifest found. Run `bun run build` first or pass --manifest <path>.");
3891
- }
3892
3894
  return found;
3893
3895
  }
3894
3896
  function readManifest(path3) {
@@ -3912,10 +3914,14 @@ function ensureDeployToken(env) {
3912
3914
  }
3913
3915
  async function syncWidgetManifest(options) {
3914
3916
  loadEnv(options.env);
3917
+ const manifestPath = resolveManifestPath(options.manifest);
3918
+ if (!manifestPath) {
3919
+ console.log("No widget manifest found; skipping widget manifest sync.");
3920
+ return;
3921
+ }
3915
3922
  const webappId = resolveWebappId(options.webappId);
3916
3923
  if (!options.dryRun)
3917
3924
  ensureDeployToken(options.env);
3918
- const manifestPath = resolveManifestPath(options.manifest);
3919
3925
  const manifest = readManifest(manifestPath);
3920
3926
  const payload = { webappId, details: { widgetManifest: manifest } };
3921
3927
  const configUrl = resolveWidgetConfigUrl(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodyssey/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Scaffold new projects from airconcepts templates",
5
5
  "repository": {
6
6
  "type": "git",