Skip to content

Commit b00e76a

Browse files
Configuration File & Validator Functionality (#20)
2 parents d268a9c + f6e41e7 commit b00e76a

19 files changed

+2539
-2716
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@labcatr/labcommitr": minor
3+
---
4+
5+
feat: add intelligent configuration file discovery
6+
7+
- Tool now automatically finds configuration files in project roots
8+
- Prioritizes git repositories and supports monorepo structures
9+
- Provides clear error messages when configuration files have issues
10+
- Improved performance with smart caching for faster subsequent runs
11+
- Works reliably across different project structures and environments
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@labcatr/labcommitr": minor
3+
---
4+
5+
feat: add configuration file validation
6+
7+
- Configuration files are now validated for syntax and required fields
8+
- Clear error messages help users fix configuration issues quickly
9+
- Tool prevents common mistakes like missing commit types or invalid IDs
10+
- Improved reliability when loading project-specific configurations
11+
- Validates commit type IDs contain only lowercase letters as required

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,18 @@ jspm_packages/
2525
web_modules/
2626

2727
# TypeScript cache
28-
*.tsbuildinfo\
28+
*.tsbuildinfo
2929

3030

3131
### Other
3232
# Remove rust files for now
3333
rust-src/
3434
dist/
35+
36+
### Development
37+
# Development progress tracking (internal use only)
38+
DEVELOPMENT_PROGRESS.md
39+
REQUIREMENTS.md
40+
CONFIG_SCHEMA.md
41+
DEVELOPMENT_GUIDELINES.md
42+
ARCHITECTURE_DECISIONS.md

dist/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"format:code": "prettier -w \"**/*\" --ignore-unknown --cache",
1212
"version": "changeset version && pnpm install --no-frozen-lockfile && pnpm run format"
1313
},
14+
"type": "module",
1415
"bin": {
1516
"labcommitr": "./dist/index.js"
1617
},
@@ -27,15 +28,21 @@
2728
"author": "Trevor Fox",
2829
"license": "ISC",
2930
"dependencies": {
30-
"@changesets/cli": "^2.27.1",
31-
"boxen": "^7.1.1",
32-
"consola": "^3.2.3",
33-
"magicast": "^0.3.2",
34-
"prettier": "^3.1.1",
35-
"typescript": "^5.3.3",
36-
"ufo": "^1.3.2"
31+
"@changesets/cli": "^2.29.7",
32+
"@types/node": "^24.3.3",
33+
"boxen": "^8.0.1",
34+
"consola": "^3.4.2",
35+
"cosmiconfig": "^9.0.0",
36+
"js-yaml": "^4.1.0",
37+
"magicast": "^0.3.5",
38+
"prettier": "^3.6.2",
39+
"typescript": "^5.9.2",
40+
"ufo": "^1.6.1"
3741
},
3842
"publishConfig": {
3943
"access": "public"
44+
},
45+
"devDependencies": {
46+
"@types/js-yaml": "^4.0.9"
4047
}
4148
}

0 commit comments

Comments
 (0)