lucy-cli 0.7.9 → 0.7.11
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/gulp/types.js
CHANGED
@@ -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 {
|
114
|
-
.pipe(replace('namespace \\$w {', 'declare namespace $w{\ntype Api =
|
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) {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"type": "module",
|
3
3
|
"name": "lucy-cli",
|
4
|
-
"version": "0.7.
|
4
|
+
"version": "0.7.11",
|
5
5
|
"description": "Lucy Framework for WIX Studio Editor",
|
6
6
|
"main": ".dist/index.js",
|
7
7
|
"scripts": {
|
@@ -14,10 +14,12 @@
|
|
14
14
|
"url": "git+https://github.com/Integral-Systems/wix-lucy-cli.git"
|
15
15
|
},
|
16
16
|
"keywords": [
|
17
|
-
"Framework",
|
18
17
|
"WIX",
|
19
18
|
"Studio",
|
20
|
-
"Velo"
|
19
|
+
"Velo",
|
20
|
+
"WIX Studio",
|
21
|
+
"CLI",
|
22
|
+
"Typescript"
|
21
23
|
],
|
22
24
|
"author": "Gradlon von Känel",
|
23
25
|
"license": "MIT",
|
package/src/gulp/types.ts
CHANGED
@@ -40,7 +40,6 @@ export function updateWixTypes(options: TaskOptions) {
|
|
40
40
|
|
41
41
|
if (modules) {
|
42
42
|
for (const [name] of Object.entries(modules)) {
|
43
|
-
console.error(`Adding module ${name} to WIX types`);
|
44
43
|
// Add module to publicSettings
|
45
44
|
publicSettings.compilerOptions.paths['backend/*.web.js'] = [`../../../${name}/backend/*.web.ts`] as never;
|
46
45
|
publicSettings.compilerOptions.paths['backend/*.web'] = [`../../../${name}/backend/*.web.ts`] as never;
|
@@ -120,8 +119,8 @@ export function addTypes(options: TaskOptions, done: gulp.TaskFunctionCallback):
|
|
120
119
|
.pipe(gulp.dest('./.wix/types/wix-code-types/dist/types/beta/common/'));
|
121
120
|
|
122
121
|
const processCommon = gulp.src(['./.wix/types/wix-code-types/dist/types/common/$w.d.ts'])
|
123
|
-
.pipe(insert.prepend("import {
|
124
|
-
.pipe(replace('namespace \\$w {', 'declare namespace $w{\ntype Api =
|
122
|
+
.pipe(insert.prepend("import { FrontendAPI } from '../../../../../../typescript/public/models/frontendApi.model';\nimport '@total-typescript/ts-reset';\n"))
|
123
|
+
.pipe(replace('namespace \\$w {', 'declare namespace $w{\ntype Api = FrontendAPI;\n', replaceOptions))
|
125
124
|
.pipe(gulp.dest('./.wix/types/wix-code-types/dist/types/common/'));
|
126
125
|
|
127
126
|
return merge(
|
File without changes
|