appwrite-utils-cli 0.9.0 → 0.9.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.
@@ -158,8 +158,11 @@ export default ${collectionName};`;
158
158
  writeFileSync(collectionFilePath, emptyCollection);
159
159
  };
160
160
 
161
- export const setupDirsFiles = async (example: boolean = false) => {
162
- const basePath = process.cwd();
161
+ export const setupDirsFiles = async (
162
+ example: boolean = false,
163
+ currentDir?: string
164
+ ) => {
165
+ const basePath = currentDir || process.cwd();
163
166
  const srcPath = path.join(basePath);
164
167
 
165
168
  // Check if src directory exists in the current working directory