@sudobility/types 1.9.40 → 1.9.42
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/CLAUDE.md +29 -17
- package/package.json +6 -6
package/CLAUDE.md
CHANGED
|
@@ -56,44 +56,56 @@ src/
|
|
|
56
56
|
└── index.ts # Main export file
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
## Package Manager
|
|
60
|
+
|
|
61
|
+
**This project uses Bun as the package manager.** Always use `bun` commands instead of `npm`:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Install dependencies
|
|
65
|
+
bun install
|
|
66
|
+
|
|
67
|
+
# Run any script
|
|
68
|
+
bun run <script-name>
|
|
69
|
+
```
|
|
70
|
+
|
|
59
71
|
## Essential Commands
|
|
60
72
|
|
|
61
73
|
### Development Commands
|
|
62
74
|
```bash
|
|
63
75
|
# Build the project (dual ESM/CJS output)
|
|
64
|
-
|
|
76
|
+
bun run build
|
|
65
77
|
|
|
66
78
|
# Watch mode for development
|
|
67
|
-
|
|
79
|
+
bun run dev
|
|
68
80
|
|
|
69
81
|
# Run all 219 tests
|
|
70
|
-
|
|
82
|
+
bun test
|
|
71
83
|
|
|
72
84
|
# Type checking
|
|
73
|
-
|
|
85
|
+
bun run typecheck
|
|
74
86
|
|
|
75
87
|
# Linting (ESLint v9)
|
|
76
|
-
|
|
88
|
+
bun run lint
|
|
77
89
|
|
|
78
90
|
# Fix linting issues
|
|
79
|
-
|
|
91
|
+
bun run lint:fix
|
|
80
92
|
|
|
81
93
|
# Format code (Prettier)
|
|
82
|
-
|
|
94
|
+
bun run format
|
|
83
95
|
|
|
84
96
|
# Check formatting
|
|
85
|
-
|
|
97
|
+
bun run format:check
|
|
86
98
|
|
|
87
99
|
# Clean build artifacts
|
|
88
|
-
|
|
100
|
+
bun run clean
|
|
89
101
|
|
|
90
102
|
# Full verification (build + test + lint + typecheck)
|
|
91
|
-
|
|
103
|
+
bun run verify
|
|
92
104
|
|
|
93
105
|
# AI development tools
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
106
|
+
bun run ai:analyze # Analyze type structure
|
|
107
|
+
bun run ai:validate # Validate exports
|
|
108
|
+
bun run ai:docs # Generate AI documentation
|
|
97
109
|
```
|
|
98
110
|
|
|
99
111
|
## Testing Strategy
|
|
@@ -173,19 +185,19 @@ npm run ai:docs # Generate AI documentation
|
|
|
173
185
|
### Testing New Code
|
|
174
186
|
```bash
|
|
175
187
|
# Run tests in watch mode during development
|
|
176
|
-
|
|
188
|
+
bun run test:watch
|
|
177
189
|
|
|
178
190
|
# Run specific test file
|
|
179
|
-
|
|
191
|
+
bun test -- path/to/test.file.ts
|
|
180
192
|
|
|
181
193
|
# Generate coverage report
|
|
182
|
-
|
|
194
|
+
bun run test:coverage
|
|
183
195
|
```
|
|
184
196
|
|
|
185
197
|
## AI Assistant Specific Notes
|
|
186
198
|
|
|
187
199
|
### When Working on This Project:
|
|
188
|
-
1. **Always run verification after changes**: `
|
|
200
|
+
1. **Always run verification after changes**: `bun run verify`
|
|
189
201
|
2. **Maintain zero dependencies**: Don't add runtime dependencies
|
|
190
202
|
3. **Keep utilities pure**: No side effects in utility functions
|
|
191
203
|
4. **Follow naming conventions**: Established patterns for consistency
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/types",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.42",
|
|
4
4
|
"description": "Comprehensive TypeScript types, interfaces, and utilities for Web3 email applications - optimized for AI-assisted development",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build": "
|
|
26
|
+
"build": "bun run build:esm && bun run build:cjs",
|
|
27
27
|
"build:esm": "tsc -p tsconfig.esm.json",
|
|
28
|
-
"build:cjs": "tsc -p tsconfig.cjs.json &&
|
|
28
|
+
"build:cjs": "tsc -p tsconfig.cjs.json && bun run build:cjs-rename",
|
|
29
29
|
"build:cjs-rename": "find dist -name '*.js' -not -name '*.cjs' -exec sh -c 'cp \"$1\" \"${1%.js}.cjs\"' _ {} \\;",
|
|
30
30
|
"clean": "rimraf dist",
|
|
31
31
|
"dev": "tsc --watch",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"format": "prettier --write \"src/**/*.{ts,js,json,md}\"",
|
|
38
38
|
"format:check": "prettier --check \"src/**/*.{ts,js,json,md}\"",
|
|
39
39
|
"typecheck": "tsc --noEmit",
|
|
40
|
-
"verify": "
|
|
40
|
+
"verify": "bun run typecheck && bun run lint && bun run test && bun run build",
|
|
41
41
|
"ai:analyze": "node .ai/scripts/analyze-types.js",
|
|
42
42
|
"ai:validate-exports": "node .ai/scripts/validate-exports.js",
|
|
43
|
-
"ai:docs": "
|
|
44
|
-
"prepublishOnly": "
|
|
43
|
+
"ai:docs": "bun run ai:analyze && bun run ai:validate-exports",
|
|
44
|
+
"prepublishOnly": "bun run clean && bun run verify"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"dist/**/*",
|