lucy-cli 0.7.9 → 0.7.10
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
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 {
|
|
124
|
-
.pipe(replace('namespace \\$w {', 'declare namespace $w{\ntype Api =
|
|
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
|