devbonzai 1.7.5 → 1.7.6
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/cli.js +3 -8
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -810,17 +810,12 @@ function listAllFiles(dir, base = '', ignorePatterns = null) {
|
|
|
810
810
|
results.push(functionFilePath);
|
|
811
811
|
}
|
|
812
812
|
|
|
813
|
-
// Add
|
|
813
|
+
// Add methods directly under the file (no class folder)
|
|
814
|
+
// Methods keep their dot notation name (e.g., Real.__init__.method)
|
|
814
815
|
for (const cls of parseResult.classes) {
|
|
815
|
-
// Add class as a directory (folder-like) so methods appear as children
|
|
816
|
-
const className = cls.name + '.class';
|
|
817
|
-
const classDirPath = path.join(filePath, className).replace(/\\\\/g, '/') + '/';
|
|
818
|
-
results.push(classDirPath);
|
|
819
|
-
|
|
820
|
-
// Add methods as children of the class directory
|
|
821
816
|
for (const method of cls.methods) {
|
|
822
817
|
const methodFileName = method.name + '.method';
|
|
823
|
-
const methodFilePath = path.join(filePath,
|
|
818
|
+
const methodFilePath = path.join(filePath, methodFileName).replace(/\\\\/g, '/');
|
|
824
819
|
results.push(methodFilePath);
|
|
825
820
|
}
|
|
826
821
|
}
|