@cododel/alto 0.1.2 → 0.1.4

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 (3) hide show
  1. package/README.md +34 -0
  2. package/dist/index.js +98 -98
  3. package/package.json +8 -12
package/README.md CHANGED
@@ -5,6 +5,8 @@ A powerful CLI tool for generating TypeScript types and more.
5
5
  ## Features
6
6
 
7
7
  - Generate TypeScript types from Directus schemas
8
+ - Skip specific collections from type generation
9
+ - Compatible with Directus SDK v19.0.0+ (DirectusComment → DirectusActivity)
8
10
  - Modern CLI built with Bun and TypeScript
9
11
  - Global installation support
10
12
  - Works with bunx/npx for one-time usage
@@ -50,6 +52,38 @@ bunx @cododel/alto <command>
50
52
 
51
53
  - `types` - Generate TypeScript types
52
54
 
55
+ ## Configuration
56
+
57
+ ### Skipping Collections
58
+
59
+ You can configure which collections to skip during type generation:
60
+
61
+ ```bash
62
+ # Skip specific collections (default: ["directus_comments"])
63
+ alto types --skipCollections directus_comments,directus_revisions
64
+
65
+ # Skip multiple collections
66
+ alto types --skipCollections directus_comments,directus_revisions,directus_presets
67
+
68
+ # Don't skip any collections
69
+ alto types --skipCollections ""
70
+ ```
71
+
72
+ ### Environment Variables
73
+
74
+ ```bash
75
+ # Directus connection
76
+ export DIRECTUS_URL="http://localhost:8055"
77
+ export DIRECTUS_TOKEN="your-token-here"
78
+ ```
79
+
80
+ ## Compatibility
81
+
82
+ - ✅ Compatible with Directus SDK v19.0.0+
83
+ - ✅ Automatic handling of DirectusComment → DirectusActivity migration
84
+ - ✅ TypeScript 5.0+
85
+ - ✅ Node.js 18+
86
+
53
87
  ## Development
54
88
 
55
89
  ```bash