ts-file-router 1.0.0 → 1.0.2

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/README.md +25 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # ðŸ“Ķ ts-file-router
2
+
3
+ A lightweight TypeScript filesystem router generator.
4
+ Automatically scans folders and outputs a clean, structured `routes.ts` tree ready for dynamic imports (e.g., `React.lazy`).
5
+
6
+ ---
7
+
8
+ ## âœĻ Features
9
+
10
+ - 🔍 Recursive folder scanning
11
+ - 📄 Auto-generated `routes.ts` (TypeScript code, no `resolveJsonModule` required)
12
+ - ⚛ïļ Works perfectly with `React.lazy()` and dynamic imports
13
+ - 📘 Full TypeScript `.d.ts` definitions included
14
+ - ðŸ§Đ Custom route file name (default: `page.ts`)
15
+ - ðŸŠķ Zero runtime dependencies
16
+ - ðŸŽŊ Clean, formatted output with readable keys
17
+
18
+ ---
19
+
20
+ ## ðŸ“Ĩ Installation
21
+
22
+ ```bash
23
+ npm install ts-file-router
24
+ # or
25
+ yarn add ts-file-router
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-file-router",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "router based on project files using typescript",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",