elysia-autoload 0.1.2 → 0.1.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.
package/README.md CHANGED
@@ -55,13 +55,13 @@ Guide how `elysia-autoload` match routes
55
55
 
56
56
  ## Options
57
57
 
58
- | Key | Type | Default | Description |
59
- | -------- | ------------------------------------------ | --------------------------- | ----------------------------------------------------------------------------------- |
60
- | pattern? | string | "\*\*_/\*_.{ts,js,mjs,cjs}" | [Glob patterns](<https://en.wikipedia.org/wiki/Glob_(programming)>) |
61
- | dir? | string | "./routes" | The folder where routes are located |
62
- | prefix? | string | | Prefix for routes |
63
- | types? | boolean \| [Types Options](#types-options) | false | Options to configure type code-generation. if boolean - enables/disables generation |
64
- | schema? | Function | | Handler for providing routes guard schema |
58
+ | Key | Type | Default | Description |
59
+ | -------- | ------------------------------------------ | ------------------------------ | ----------------------------------------------------------------------------------- |
60
+ | pattern? | string | "\*\/.{ts,tsx,js,jsx,mjs,cjs}" | [Glob patterns](<https://en.wikipedia.org/wiki/Glob_(programming)>) |
61
+ | dir? | string | "./routes" | The folder where routes are located |
62
+ | prefix? | string | | Prefix for routes |
63
+ | types? | boolean \| [Types Options](#types-options) | false | Options to configure type code-generation. if boolean - enables/disables generation |
64
+ | schema? | Function | | Handler for providing routes guard schema |
65
65
 
66
66
  ### Types Options
67
67
 
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ async function autoload({ pattern, dir, prefix, schema, types, } = {}) {
36
36
  types,
37
37
  },
38
38
  });
39
- const glob = new Bun.Glob(pattern || "**/*.{ts,js,mjs,cjs}");
39
+ const glob = new Bun.Glob(pattern || "**/*.{ts,tsx,js,jsx,mjs,cjs}");
40
40
  const files = await Array.fromAsync(glob.scan({
41
41
  cwd: directoryPath,
42
42
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elysia-autoload",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "author": "kravetsone",
5
5
  "main": "dist/index.js",
6
6
  "description": "Plugin for Elysia which autoload all routes in directory and code-generate types for Eden",
@@ -27,14 +27,14 @@
27
27
  "dist"
28
28
  ],
29
29
  "devDependencies": {
30
- "@elysiajs/eden": "^0.8.0",
31
- "@elysiajs/swagger": "^0.8.0",
30
+ "@elysiajs/eden": "^0.8.1",
31
+ "@elysiajs/swagger": "^0.8.4",
32
32
  "bun-types": "latest",
33
- "elysia": "^0.8.3",
34
- "eslint": "^8.41.0",
35
- "eslint-kit": "^10.0.0",
36
- "prettier": "^3.0.0",
37
- "typescript": "^5.0.0"
33
+ "elysia": "^0.8.10",
34
+ "eslint": "^8.56.0",
35
+ "eslint-kit": "^10.7.0",
36
+ "prettier": "^3.2.4",
37
+ "typescript": "^5.3.3"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "elysia": "^0.8.0"