ts-builds 2.6.2 → 2.6.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 (2) hide show
  1. package/README.md +35 -0
  2. package/package.json +16 -25
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.2",
3
+ "version": "2.6.4",
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.1",
59
- "@vitest/ui": "^4.1.1",
58
+ "@vitest/coverage-v8": "^4.1.4",
59
+ "@vitest/ui": "^4.1.4",
60
60
  "cross-env": "^10.1.0",
61
- "eslint": "^10.1.0",
62
- "eslint-config-functype": "^2.1.1",
63
- "eslint-plugin-functype": "^2.1.1",
61
+ "eslint": "^10.2.0",
62
+ "eslint-config-functype": "^2.2.0",
63
+ "eslint-plugin-functype": "^2.2.0",
64
64
  "eslint-plugin-prettier": "^5.5.5",
65
65
  "eslint-plugin-simple-import-sort": "^12.1.1",
66
- "functype": "^0.51.0",
67
- "functype-os": "^0.4.1",
66
+ "functype": "^0.56.0",
67
+ "functype-os": "^0.4.2",
68
68
  "globals": "^17.4.0",
69
- "prettier": "^3.8.1",
69
+ "prettier": "^3.8.2",
70
70
  "rimraf": "^6.1.3",
71
71
  "ts-node": "^10.9.2",
72
- "typescript": "^5.9.3",
73
- "typescript-eslint": "^8.57.2",
74
- "vitest": "^4.1.1"
72
+ "typescript": "^6.0.2",
73
+ "typescript-eslint": "^8.58.1",
74
+ "vitest": "^4.1.4"
75
75
  },
76
76
  "devDependencies": {
77
- "tsdown": "^0.21.5"
77
+ "tsdown": "^0.21.7"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "tsdown": "^0.x",
@@ -100,15 +100,6 @@
100
100
  "test": "node dist/cli.js test",
101
101
  "test:watch": "vitest",
102
102
  "build": "node dist/cli.js build",
103
- "dev": "node dist/cli.js dev",
104
- "prepublishOnly": "pnpm validate:bootstrap"
105
- },
106
- "pnpm": {
107
- "peerDependencyRules": {
108
- "allowedVersions": {
109
- "eslint": "10"
110
- }
111
- }
112
- },
113
- "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319"
114
- }
103
+ "dev": "node dist/cli.js dev"
104
+ }
105
+ }