appwrite-utils-cli 1.2.20 → 1.2.22
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.
@@ -185,10 +185,8 @@ export class AppwriteToX {
|
|
185
185
|
specification: func.specification,
|
186
186
|
}));
|
187
187
|
// Make sure to update the config with all changes
|
188
|
-
|
189
|
-
|
190
|
-
functions: this.updatedConfig.functions,
|
191
|
-
};
|
188
|
+
updatedConfig.functions = this.updatedConfig.functions;
|
189
|
+
this.updatedConfig = updatedConfig;
|
192
190
|
}
|
193
191
|
async toSchemas(databases) {
|
194
192
|
await this.appwriteSync(this.config, databases);
|
@@ -199,10 +197,12 @@ export class AppwriteToX {
|
|
199
197
|
if (isYamlProject) {
|
200
198
|
console.log("📄 Detected YAML configuration - generating YAML collection definitions");
|
201
199
|
generator.updateYamlCollections();
|
200
|
+
await generator.updateConfig(this.updatedConfig, true);
|
202
201
|
}
|
203
202
|
else {
|
204
203
|
console.log("📝 Generating TypeScript collection definitions");
|
205
204
|
generator.updateTsSchemas();
|
205
|
+
await generator.updateConfig(this.updatedConfig, false);
|
206
206
|
}
|
207
207
|
generator.generateSchemas();
|
208
208
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "appwrite-utils-cli",
|
3
3
|
"description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
|
4
|
-
"version": "1.2.
|
4
|
+
"version": "1.2.22",
|
5
5
|
"main": "src/main.ts",
|
6
6
|
"type": "module",
|
7
7
|
"repository": {
|
@@ -261,10 +261,8 @@ export class AppwriteToX {
|
|
261
261
|
);
|
262
262
|
|
263
263
|
// Make sure to update the config with all changes
|
264
|
-
|
265
|
-
|
266
|
-
functions: this.updatedConfig.functions,
|
267
|
-
};
|
264
|
+
updatedConfig.functions = this.updatedConfig.functions;
|
265
|
+
this.updatedConfig = updatedConfig;
|
268
266
|
}
|
269
267
|
|
270
268
|
async toSchemas(databases?: Models.Database[]) {
|
@@ -281,9 +279,11 @@ export class AppwriteToX {
|
|
281
279
|
if (isYamlProject) {
|
282
280
|
console.log("📄 Detected YAML configuration - generating YAML collection definitions");
|
283
281
|
generator.updateYamlCollections();
|
282
|
+
await generator.updateConfig(this.updatedConfig, true);
|
284
283
|
} else {
|
285
284
|
console.log("📝 Generating TypeScript collection definitions");
|
286
285
|
generator.updateTsSchemas();
|
286
|
+
await generator.updateConfig(this.updatedConfig, false);
|
287
287
|
}
|
288
288
|
|
289
289
|
generator.generateSchemas();
|