lucy-cli 0.7.9 → 0.7.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -110,8 +110,8 @@ export function addTypes(options, done) {
110
110
  .pipe(replace('type ', 'export type ', replaceOptions))
111
111
  .pipe(gulp.dest('./.wix/types/wix-code-types/dist/types/beta/common/'));
112
112
  const processCommon = gulp.src(['./.wix/types/wix-code-types/dist/types/common/$w.d.ts'])
113
- .pipe(insert.prepend("import { FrontendAPISchema } from '../../../../../../lib/public/models/common/frontendApi.model';\nimport '@total-typescript/ts-reset';\n"))
114
- .pipe(replace('namespace \\$w {', 'declare namespace $w{\ntype Api = FrontendAPISchema;\n', replaceOptions))
113
+ .pipe(insert.prepend("import { FrontendAPI } from '../../../../../../typescript/public/models/frontendApi.model';\nimport '@total-typescript/ts-reset';\n"))
114
+ .pipe(replace('namespace \\$w {', 'declare namespace $w{\ntype Api = FrontendAPI;\n', replaceOptions))
115
115
  .pipe(gulp.dest('./.wix/types/wix-code-types/dist/types/common/'));
116
116
  return merge(processPages, processCommon, exportTypesBeta, exportTypes)
117
117
  .on('error', function (e) {
@@ -0,0 +1,4 @@
1
+ import { z } from "zod";
2
+
3
+ export const frontendAPISchema = z.object({});
4
+ export type FrontendAPI = z.infer<typeof frontendAPISchema>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "lucy-cli",
4
- "version": "0.7.9",
4
+ "version": "0.7.10",
5
5
  "description": "Lucy Framework for WIX Studio Editor",
6
6
  "main": ".dist/index.js",
7
7
  "scripts": {
package/src/gulp/types.ts CHANGED
@@ -120,8 +120,8 @@ export function addTypes(options: TaskOptions, done: gulp.TaskFunctionCallback):
120
120
  .pipe(gulp.dest('./.wix/types/wix-code-types/dist/types/beta/common/'));
121
121
 
122
122
  const processCommon = gulp.src(['./.wix/types/wix-code-types/dist/types/common/$w.d.ts'])
123
- .pipe(insert.prepend("import { FrontendAPISchema } from '../../../../../../lib/public/models/common/frontendApi.model';\nimport '@total-typescript/ts-reset';\n"))
124
- .pipe(replace('namespace \\$w {', 'declare namespace $w{\ntype Api = FrontendAPISchema;\n', replaceOptions))
123
+ .pipe(insert.prepend("import { FrontendAPI } from '../../../../../../typescript/public/models/frontendApi.model';\nimport '@total-typescript/ts-reset';\n"))
124
+ .pipe(replace('namespace \\$w {', 'declare namespace $w{\ntype Api = FrontendAPI;\n', replaceOptions))
125
125
  .pipe(gulp.dest('./.wix/types/wix-code-types/dist/types/common/'));
126
126
 
127
127
  return merge(
File without changes