@jay-framework/stack-route-scanner 0.16.5 → 0.17.1

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/dist/index.mjs +3 -0
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -29,12 +29,15 @@ function convertToRoutePath(BASE_DIR, jayHtmlPath, { jayHtmlFilename, compFilena
29
29
  const compPath = existsSync(candidateCompPath) ? candidateCompPath : "";
30
30
  return { segments, jayHtmlPath, compPath, rawRoute };
31
31
  }
32
+ const IGNORED_DIRS = /* @__PURE__ */ new Set(["build", "node_modules", "dist", ".git"]);
32
33
  async function scanDirectory(BASE_DIR, directory, options) {
33
34
  let routes = [];
34
35
  const items = await promises.readdir(directory, { withFileTypes: true });
35
36
  for (const item of items) {
36
37
  const fullPath = path.join(directory, item.name);
37
38
  if (item.isDirectory()) {
39
+ if (IGNORED_DIRS.has(item.name))
40
+ continue;
38
41
  routes = [...routes, ...await scanDirectory(BASE_DIR, fullPath, options)];
39
42
  } else if (item.name === options.jayHtmlFilename) {
40
43
  const route = convertToRoutePath(BASE_DIR, fullPath, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/stack-route-scanner",
3
- "version": "0.16.5",
3
+ "version": "0.17.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
@@ -9,7 +9,7 @@
9
9
  "readme.md"
10
10
  ],
11
11
  "dependencies": {
12
- "@jay-framework/logger": "^0.16.5",
12
+ "@jay-framework/logger": "^0.17.1",
13
13
  "node-html-parser": "^6.1.12",
14
14
  "yaml": "^2.3.4"
15
15
  },
@@ -25,7 +25,7 @@
25
25
  "test:watch": "vitest"
26
26
  },
27
27
  "devDependencies": {
28
- "@jay-framework/dev-environment": "^0.16.5",
28
+ "@jay-framework/dev-environment": "^0.17.1",
29
29
  "@types/node": "^20.11.5",
30
30
  "nodemon": "^3.0.3",
31
31
  "replace-in-file": "^7.1.0",