appwrite-utils-cli 1.0.2 → 1.0.3
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/README.md +1 -0
- package/dist/interactiveCLI.js +8 -5
- package/package.json +1 -1
- package/src/interactiveCLI.ts +8 -5
package/README.md
CHANGED
@@ -377,6 +377,7 @@ This updated CLI ensures that developers have robust tools at their fingertips t
|
|
377
377
|
|
378
378
|
### Changelog
|
379
379
|
|
380
|
+
- 1.0.3: Fixed appwriteConfig detection for `--it` so it detects when you can migrate your config
|
380
381
|
- 1.0.2: Fixed migrations, sorry about that!
|
381
382
|
|
382
383
|
**Migration Note**: While fully backward compatible, we recommend migrating to YAML configuration for the best experience. Use `--setup` to generate new YAML configurations.
|
package/dist/interactiveCLI.js
CHANGED
@@ -1393,11 +1393,14 @@ export class InteractiveCLI {
|
|
1393
1393
|
}
|
1394
1394
|
// Then check for TypeScript config
|
1395
1395
|
const configPath = findAppwriteConfig(this.currentDir);
|
1396
|
-
if (configPath
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1396
|
+
if (configPath) {
|
1397
|
+
const tsConfigPath = join(configPath, 'appwriteConfig.ts');
|
1398
|
+
if (fs.existsSync(tsConfigPath)) {
|
1399
|
+
this.isUsingTypeScriptConfig = true;
|
1400
|
+
MessageFormatter.info("TypeScript configuration detected", { prefix: "Config" });
|
1401
|
+
MessageFormatter.info("Consider migrating to YAML for better organization", { prefix: "Config" });
|
1402
|
+
return;
|
1403
|
+
}
|
1401
1404
|
}
|
1402
1405
|
// No config found
|
1403
1406
|
this.isUsingTypeScriptConfig = false;
|
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.0.
|
4
|
+
"version": "1.0.3",
|
5
5
|
"main": "src/main.ts",
|
6
6
|
"type": "module",
|
7
7
|
"repository": {
|
package/src/interactiveCLI.ts
CHANGED
@@ -1914,11 +1914,14 @@ export class InteractiveCLI {
|
|
1914
1914
|
|
1915
1915
|
// Then check for TypeScript config
|
1916
1916
|
const configPath = findAppwriteConfig(this.currentDir);
|
1917
|
-
if (configPath
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1917
|
+
if (configPath) {
|
1918
|
+
const tsConfigPath = join(configPath, 'appwriteConfig.ts');
|
1919
|
+
if (fs.existsSync(tsConfigPath)) {
|
1920
|
+
this.isUsingTypeScriptConfig = true;
|
1921
|
+
MessageFormatter.info("TypeScript configuration detected", { prefix: "Config" });
|
1922
|
+
MessageFormatter.info("Consider migrating to YAML for better organization", { prefix: "Config" });
|
1923
|
+
return;
|
1924
|
+
}
|
1922
1925
|
}
|
1923
1926
|
|
1924
1927
|
// No config found
|