devbonzai 1.7.5 → 1.7.9

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.
Files changed (2) hide show
  1. package/cli.js +5 -5
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -812,15 +812,15 @@ function listAllFiles(dir, base = '', ignorePatterns = null) {
812
812
 
813
813
  // Add classes and their methods
814
814
  for (const cls of parseResult.classes) {
815
- // Add class as a directory (folder-like) so methods appear as children
815
+ // Add class itself (optional, but useful)
816
816
  const className = cls.name + '.class';
817
- const classDirPath = path.join(filePath, className).replace(/\\\\/g, '/') + '/';
818
- results.push(classDirPath);
817
+ const classFilePath = path.join(filePath, className).replace(/\\\\/g, '/');
818
+ results.push(classFilePath);
819
819
 
820
- // Add methods as children of the class directory
820
+ // Add methods with dot notation: ClassName.methodName
821
821
  for (const method of cls.methods) {
822
822
  const methodFileName = method.name + '.method';
823
- const methodFilePath = path.join(filePath, className, methodFileName).replace(/\\\\/g, '/');
823
+ const methodFilePath = path.join(filePath, methodFileName).replace(/\\\\/g, '/');
824
824
  results.push(methodFilePath);
825
825
  }
826
826
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devbonzai",
3
- "version": "1.7.5",
3
+ "version": "1.7.9",
4
4
  "description": "Quickly set up a local file server in any repository for browser-based file access",
5
5
  "main": "cli.js",
6
6
  "bin": {