@wix/ditto-codegen-public 1.0.237 → 1.0.238
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/dist/out.js +3 -1
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -122043,6 +122043,8 @@ var require_extensionGenerators = __commonJS({
|
|
|
122043
122043
|
const absoluteScaffoldPath = resolveAndValidateScaffoldPath(outputPath, scaffoldDir);
|
|
122044
122044
|
const componentPath = getScaffoldPath(scaffoldDir, "component.tsx");
|
|
122045
122045
|
const extensionName = generateUniqueExtensionName(extensionType, name);
|
|
122046
|
+
const folderName = path_1.default.basename(scaffoldDir);
|
|
122047
|
+
const typeName = toCamelCase(sanitizeName(folderName).replace(/-/g, " ")).replace(/^./, (c) => c.toUpperCase());
|
|
122046
122048
|
const tsContent = `import { extensions } from '@wix/astro/builders';
|
|
122047
122049
|
import manifest from './manifest.json';
|
|
122048
122050
|
|
|
@@ -122050,7 +122052,7 @@ export const ${extensionName} = extensions.siteComponent({
|
|
|
122050
122052
|
...manifest,
|
|
122051
122053
|
id: '${id}',
|
|
122052
122054
|
description: '${name}',
|
|
122053
|
-
type: 'platform
|
|
122055
|
+
type: 'platform.${typeName}',
|
|
122054
122056
|
resources: {
|
|
122055
122057
|
client: {
|
|
122056
122058
|
component: '${componentPath}',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.238",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@wix/ditto-codegen": "1.0.0",
|
|
29
29
|
"esbuild": "^0.27.2"
|
|
30
30
|
},
|
|
31
|
-
"falconPackageHash": "
|
|
31
|
+
"falconPackageHash": "70ecd4496dda0c97bb94afe6b075edc33e3700b5159dd5a216fe07f0"
|
|
32
32
|
}
|