lucy-cli 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/gulp/types.js +3 -2
- package/package.json +1 -1
- package/settings/page-settings.json +1 -1
- package/src/gulp/types.ts +3 -2
package/dist/gulp/types.js
CHANGED
@@ -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
|
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
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
|
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
|
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)));
|