lucy-cli 0.7.7 → 0.7.8

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.
@@ -29,6 +29,7 @@ export function updateWixTypes(options) {
29
29
  masterSettings.include = ["../../../typescript/public/**/*", "index.d.ts", "../../../typescript/__mocks__/**/*", "../../../typescript/backend/**/*"];
30
30
  // Add module to pageSettings
31
31
  pageSettings.compilerOptions.paths['types/*'] = ["../../../typescript/types/*"];
32
+ pageSettings.compilerOptions.paths['backend/*'] = ["../../../typescript/backend/*.jsw.ts"];
32
33
  pageSettings.include = ["../../../typescript/public/**/*", "../../../typescript/__mocks__/**/*", "../../../typescript/backend/**/*"];
33
34
  if (modules) {
34
35
  for (const [name] of Object.entries(modules)) {
@@ -58,12 +59,12 @@ export function updateWixTypes(options) {
58
59
  pageSettings.compilerOptions.paths['backend/*.web.js'] = [`../../../${name}/backend/*.web.ts`];
59
60
  pageSettings.compilerOptions.paths['backend/*.web'] = [`../../../${name}/backend/*.web.ts`];
60
61
  pageSettings.compilerOptions.paths['public/*'].push(`../../../${name}/public/*`);
61
- pageSettings.compilerOptions.paths['backend/*'].push(`../../../${name}/backend/*`);
62
+ pageSettings.compilerOptions.paths['backend/*'].push(`../../../${name}/backend/*.jsw.ts`);
62
63
  pageSettings.compilerOptions.paths['types/*'].push(`../../../${name}/types/*`);
63
64
  pageSettings.include.push(...[`../../../${name}/public/**/*`, `../../../${name}/backend/**/*.web.js`, `../../../${name}__mocks__/**/*`, `../../../${name}/backend/**/*`]);
64
65
  }
65
66
  }
66
- return gulp.src(['./.wix/types/*/*.json', '!./.wix/types/wix-code-types/*.json'])
67
+ return gulp.src(['./.wix/types/**/*.json', '!./.wix/types/wix-code-types/*.json'])
67
68
  .pipe(flatmap(function (stream, file) {
68
69
  count++;
69
70
  if (file.dirname.endsWith('public'))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "lucy-cli",
4
- "version": "0.7.7",
4
+ "version": "0.7.8",
5
5
  "description": "Lucy Framework for WIX Studio Editor",
6
6
  "main": ".dist/index.js",
7
7
  "scripts": {
@@ -7,7 +7,7 @@
7
7
  "jsx": "react-jsx",
8
8
  "noEmit": false,
9
9
  "noUncheckedIndexedAccess": true,
10
- "lib": ["DOM"],
10
+ "lib": ["DOM", "es2015"],
11
11
  "paths": {
12
12
  "backend/*.web.js": [],
13
13
  "backend/*.web": [],
package/src/gulp/types.ts CHANGED
@@ -33,6 +33,7 @@ export function updateWixTypes(options: TaskOptions) {
33
33
  masterSettings.include = [ "../../../typescript/public/**/*", "index.d.ts", "../../../typescript/__mocks__/**/*", "../../../typescript/backend/**/*" ] as never;
34
34
  // Add module to pageSettings
35
35
  pageSettings.compilerOptions.paths['types/*'] = [ "../../../typescript/types/*" ] as never;
36
+ pageSettings.compilerOptions.paths['backend/*'] = [ "../../../typescript/backend/*.jsw.ts" ] as never;
36
37
  pageSettings.include = [ "../../../typescript/public/**/*", "../../../typescript/__mocks__/**/*", "../../../typescript/backend/**/*" ] as never;
37
38
 
38
39
  if (modules) {
@@ -63,13 +64,13 @@ export function updateWixTypes(options: TaskOptions) {
63
64
  pageSettings.compilerOptions.paths['backend/*.web.js'] = [`../../../${name}/backend/*.web.ts`] as never;
64
65
  pageSettings.compilerOptions.paths['backend/*.web'] = [`../../../${name}/backend/*.web.ts`] as never;
65
66
  pageSettings.compilerOptions.paths['public/*'].push(`../../../${name}/public/*` as never);
66
- pageSettings.compilerOptions.paths['backend/*'].push(`../../../${name}/backend/*` as never);
67
+ pageSettings.compilerOptions.paths['backend/*'].push(`../../../${name}/backend/*.jsw.ts` as never);
67
68
  pageSettings.compilerOptions.paths['types/*'].push(`../../../${name}/types/*` as never);
68
69
  pageSettings.include.push(...[`../../../${name}/public/**/*`, `../../../${name}/backend/**/*.web.js`, `../../../${name}__mocks__/**/*`, `../../../${name}/backend/**/*` ] as never[]);
69
70
  }
70
71
  }
71
72
 
72
- return gulp.src(['./.wix/types/*/*.json', '!./.wix/types/wix-code-types/*.json'])
73
+ return gulp.src(['./.wix/types/**/*.json', '!./.wix/types/wix-code-types/*.json'])
73
74
  .pipe(flatmap(function(stream: NodeJS.ReadableStream, file: File) {
74
75
  count ++;
75
76
  if (file.dirname.endsWith('public')) return stream.pipe(jeditor(publicSettings)).pipe(jeditor((json: any) => processJson(json)));