ts-builds 2.6.2 → 2.6.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 +35 -0
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -70,6 +70,17 @@ npx ts-builds dev # Dev mode (tsdown --watch or vite dev server)
|
|
|
70
70
|
npx ts-builds preview # Preview production build (vite preview)
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
### Analysis Commands
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
npx ts-builds size # Report bundle sizes (raw + gzip)
|
|
77
|
+
npx ts-builds size --save # Save baseline for delta tracking
|
|
78
|
+
npx ts-builds doctor # Check package health (exports, files, types)
|
|
79
|
+
npx ts-builds changelog # Generate changelog from conventional commits
|
|
80
|
+
npx ts-builds changelog --since v1.0.0 --version 2.0.0 # From specific tag
|
|
81
|
+
npx ts-builds changelog --output CHANGELOG.md # Write to file
|
|
82
|
+
```
|
|
83
|
+
|
|
73
84
|
## Package.json Scripts
|
|
74
85
|
|
|
75
86
|
Add these to delegate all commands to ts-builds:
|
|
@@ -141,6 +152,30 @@ With `buildMode: "vite"`:
|
|
|
141
152
|
- `ts-builds dev` → `vite` (dev server with HMR)
|
|
142
153
|
- `ts-builds preview` → `vite preview`
|
|
143
154
|
|
|
155
|
+
### Bundle Size Thresholds
|
|
156
|
+
|
|
157
|
+
```json
|
|
158
|
+
{
|
|
159
|
+
"size": {
|
|
160
|
+
"maxTotal": 51200,
|
|
161
|
+
"maxFile": 20480,
|
|
162
|
+
"gzip": true,
|
|
163
|
+
"baselineFile": ".ts-builds-size.json"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Changelog
|
|
169
|
+
|
|
170
|
+
```json
|
|
171
|
+
{
|
|
172
|
+
"changelog": {
|
|
173
|
+
"types": { "feat": "Features", "fix": "Bug Fixes" },
|
|
174
|
+
"exclude": ["chore", "ci"]
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
```
|
|
178
|
+
|
|
144
179
|
### Advanced (Monorepos, Custom Commands)
|
|
145
180
|
|
|
146
181
|
```json
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-builds",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "Shared TypeScript configuration files for library templates. Provides standardized ESLint, Prettier, Vitest, TypeScript, and build configs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -55,26 +55,26 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@eslint/js": "^10.0.1",
|
|
57
57
|
"@types/node": "~24.10.15",
|
|
58
|
-
"@vitest/coverage-v8": "^4.1.
|
|
59
|
-
"@vitest/ui": "^4.1.
|
|
58
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
59
|
+
"@vitest/ui": "^4.1.2",
|
|
60
60
|
"cross-env": "^10.1.0",
|
|
61
61
|
"eslint": "^10.1.0",
|
|
62
|
-
"eslint-config-functype": "^2.1.
|
|
63
|
-
"eslint-plugin-functype": "^2.1.
|
|
62
|
+
"eslint-config-functype": "^2.1.2",
|
|
63
|
+
"eslint-plugin-functype": "^2.1.2",
|
|
64
64
|
"eslint-plugin-prettier": "^5.5.5",
|
|
65
65
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
66
|
-
"functype": "^0.
|
|
67
|
-
"functype-os": "^0.4.
|
|
66
|
+
"functype": "^0.54.0",
|
|
67
|
+
"functype-os": "^0.4.2",
|
|
68
68
|
"globals": "^17.4.0",
|
|
69
69
|
"prettier": "^3.8.1",
|
|
70
70
|
"rimraf": "^6.1.3",
|
|
71
71
|
"ts-node": "^10.9.2",
|
|
72
|
-
"typescript": "^
|
|
73
|
-
"typescript-eslint": "^8.
|
|
74
|
-
"vitest": "^4.1.
|
|
72
|
+
"typescript": "^6.0.2",
|
|
73
|
+
"typescript-eslint": "^8.58.0",
|
|
74
|
+
"vitest": "^4.1.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"tsdown": "^0.21.
|
|
77
|
+
"tsdown": "^0.21.7"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"tsdown": "^0.x",
|