appwrite-utils-cli 0.0.285 → 0.0.286
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.
@@ -17,7 +17,7 @@ export class SchemaGenerator {
|
|
17
17
|
const collections = this.config.collections;
|
18
18
|
delete this.config.collections;
|
19
19
|
const configPath = path.join(this.appwriteFolderPath, "appwriteConfig.ts");
|
20
|
-
const configContent = `import { AppwriteConfig } from "appwrite-utils";
|
20
|
+
const configContent = `import { type AppwriteConfig } from "appwrite-utils";
|
21
21
|
|
22
22
|
const appwriteConfig: AppwriteConfig = {
|
23
23
|
appwriteEndpoint: "${this.config.appwriteEndpoint}",
|
@@ -45,7 +45,7 @@ export class SchemaGenerator {
|
|
45
45
|
collections?.forEach((collection) => {
|
46
46
|
const { databaseId, ...collectionWithoutDbId } = collection; // Destructure to exclude databaseId
|
47
47
|
const collectionFilePath = path.join(collectionsFolderPath, `${collection.name}.ts`);
|
48
|
-
const collectionContent = `import { CollectionCreate } from "appwrite-utils";
|
48
|
+
const collectionContent = `import { type CollectionCreate } from "appwrite-utils";
|
49
49
|
|
50
50
|
const ${collection.name}Config: Partial<CollectionCreate> = {
|
51
51
|
name: "${collection.name}",
|
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": "0.0.
|
4
|
+
"version": "0.0.286",
|
5
5
|
"main": "src/main.ts",
|
6
6
|
"type": "module",
|
7
7
|
"repository": {
|
@@ -35,7 +35,7 @@ export class SchemaGenerator {
|
|
35
35
|
delete this.config.collections;
|
36
36
|
|
37
37
|
const configPath = path.join(this.appwriteFolderPath, "appwriteConfig.ts");
|
38
|
-
const configContent = `import { AppwriteConfig } from "appwrite-utils";
|
38
|
+
const configContent = `import { type AppwriteConfig } from "appwrite-utils";
|
39
39
|
|
40
40
|
const appwriteConfig: AppwriteConfig = {
|
41
41
|
appwriteEndpoint: "${this.config.appwriteEndpoint}",
|
@@ -71,7 +71,7 @@ export class SchemaGenerator {
|
|
71
71
|
collectionsFolderPath,
|
72
72
|
`${collection.name}.ts`
|
73
73
|
);
|
74
|
-
const collectionContent = `import { CollectionCreate } from "appwrite-utils";
|
74
|
+
const collectionContent = `import { type CollectionCreate } from "appwrite-utils";
|
75
75
|
|
76
76
|
const ${collection.name}Config: Partial<CollectionCreate> = {
|
77
77
|
name: "${collection.name}",
|