@fuzionx/framework 0.1.56 → 0.1.57

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.
@@ -9,7 +9,7 @@
9
9
  "preview": "vite preview"
10
10
  },
11
11
  "dependencies": {
12
- "@fuzionx/player": "^0.1.56",
12
+ "@fuzionx/player": "^0.1.57",
13
13
  "pinia": "^3.0.4",
14
14
  "vue": "^3.5.0",
15
15
  "vue-router": "^4.5.0"
@@ -13,16 +13,25 @@ import path from 'node:path';
13
13
  import { pathToFileURL } from 'node:url';
14
14
 
15
15
  /**
16
- * 디렉토리에서 .js 파일 목록 반환
16
+ * 디렉토리에서 .js 파일 목록을 재귀적으로 반환
17
17
  * @param {string} dir
18
18
  * @returns {Promise<string[]>}
19
19
  */
20
20
  async function scanDir(dir) {
21
21
  try {
22
22
  const entries = await fs.readdir(dir, { withFileTypes: true });
23
- return entries
24
- .filter(e => e.isFile() && e.name.endsWith('.js') && !e.name.startsWith('.'))
25
- .map(e => path.join(dir, e.name));
23
+ const results = [];
24
+ for (const e of entries) {
25
+ if (e.name.startsWith('.')) continue;
26
+ const fullPath = path.join(dir, e.name);
27
+ if (e.isFile() && e.name.endsWith('.js')) {
28
+ results.push(fullPath);
29
+ } else if (e.isDirectory()) {
30
+ const nested = await scanDir(fullPath);
31
+ results.push(...nested);
32
+ }
33
+ }
34
+ return results;
26
35
  } catch {
27
36
  return []; // 디렉토리 없으면 빈 배열
28
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzionx/framework",
3
- "version": "0.1.56",
3
+ "version": "0.1.57",
4
4
  "type": "module",
5
5
  "description": "Full-stack MVC framework built on @fuzionx/core — Controller, Service, Model, Middleware, DI, EventBus",
6
6
  "main": "index.js",
@@ -34,7 +34,7 @@
34
34
  "url": "https://github.com/saytohenry/fuzionx"
35
35
  },
36
36
  "dependencies": {
37
- "@fuzionx/core": "^0.1.56",
37
+ "@fuzionx/core": "^0.1.57",
38
38
  "better-sqlite3": "^12.8.0",
39
39
  "knex": "^3.2.5",
40
40
  "mongoose": "^9.3.2",