@wix/ditto-codegen-public 1.0.14 → 1.0.15

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/out.js +12 -12
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -119281,20 +119281,20 @@ var require_scaffolding = __commonJS({
119281
119281
  }
119282
119282
  }
119283
119283
  async function copyServicePluginScaffolding(extension, outputPath) {
119284
- if (extension.relatedSpis && extension.relatedSpis.length > 0) {
119285
- let scaffoldingSubPath = "";
119286
- for (const spi of extension.relatedSpis) {
119287
- console.log(` \u{1F4CB} Copying service plugin scaffolding for related SPI: ${spi.name}`);
119288
- const mapped = constants_1.spiToSubPath[spi.name || ""];
119289
- if (mapped) {
119290
- scaffoldingSubPath = mapped;
119291
- break;
119292
- }
119284
+ if (!extension.relatedSpis || extension.relatedSpis.length === 0) {
119285
+ throw new Error("Service plugin extension must have related SPIs");
119286
+ }
119287
+ let scaffoldingSubPath = "";
119288
+ for (const spi of extension.relatedSpis) {
119289
+ console.log(` \u{1F4CB} Copying service plugin scaffolding for related SPI: ${spi.name}`);
119290
+ const mapped = constants_1.spiToSubPath[spi.name || ""];
119291
+ if (mapped) {
119292
+ scaffoldingSubPath = mapped;
119293
+ break;
119293
119294
  }
119294
- const scaffoldingPath = `src/backend/service-plugins/${scaffoldingSubPath}/my-service-plugin`;
119295
- return (0, tools_1.copyScaffolding)(scaffoldingPath, outputPath);
119296
119295
  }
119297
- return [];
119296
+ const scaffoldingPath = `src/backend/service-plugins/${scaffoldingSubPath}/my-service-plugin`;
119297
+ return (0, tools_1.copyScaffolding)(scaffoldingPath, outputPath);
119298
119298
  }
119299
119299
  async function copyDashboardPageScaffolding(extension, outputPath) {
119300
119300
  const scaffoldingSubPath = "src/dashboard/pages";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -24,5 +24,5 @@
24
24
  "@wix/ditto-codegen": "1.0.0",
25
25
  "esbuild": "^0.25.9"
26
26
  },
27
- "falconPackageHash": "4b5dbc2a8ecdd4788aba33821cd10f881f3f0380eb13d39c14c0532d"
27
+ "falconPackageHash": "56bac02b80b787701c852c60753c9636582a74af53844b56851d4ca5"
28
28
  }