Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changeset/fix-init-template-emoji-placeholder.md

This file was deleted.

12 changes: 12 additions & 0 deletions .changeset/fix-missing-config-command-in-package.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@labcatr/labcommitr": patch
---

fix: include config command files in published package

- Change package.json files field from directory to explicit file paths
- Add dist/cli/commands/config.js and config.d.ts to files array
- Fixes ERR_MODULE_NOT_FOUND error when using lab commands
- Config command was missing from published package causing runtime errors
- Resolves issue where config.js file exists but wasn't included in npm package

11 changes: 0 additions & 11 deletions .changeset/fix-preview-emoji-display.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/implement-emoji-detection-and-display.md

This file was deleted.

28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# @labcatr/labcommitr

## 0.4.0

### Minor Changes

- ba6f8a4: feat: implement terminal emoji detection and display adaptation
- Add emoji detection utility with industry-standard heuristics (CI, TERM, NO_COLOR, Windows Terminal)
- Implement automatic emoji stripping for non-emoji terminals in Labcommitr UI
- Always store Unicode emojis in Git commits regardless of terminal support
- Update commit, preview, and revert commands to adapt display based on terminal capabilities
- Ensure GitHub and emoji-capable terminals always show emojis correctly
- Improve user experience by cleaning up broken emoji symbols on non-emoji terminals

### Patch Changes

- ba6f8a4: fix: include emoji placeholder in generated config template
- Add {emoji} placeholder to template in buildConfig function
- Generated configs now include {emoji} in format.template field
- Fixes issue where emojis didn't appear in commits even when enabled
- Template now matches default config structure with emoji support
- Ensures formatCommitMessage can properly replace emoji placeholder

- ba6f8a4: fix: show actual commit message with emojis in preview
- Preview now displays the exact commit message as it will be stored in Git
- Removed emoji stripping from preview display logic
- Users can see emojis even if terminal doesn't support emoji display
- Ensures preview accurately reflects what will be committed to Git/GitHub
- Fixes issue where emojis were hidden in preview on non-emoji terminals

## 0.3.0

### Minor Changes
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@labcatr/labcommitr",
"version": "0.3.0",
"version": "0.4.0",
"description": "Labcommitr is a solution for building standardized git commits, hassle-free!",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -56,7 +56,8 @@
"dist/cli/program.js",
"dist/cli/program.d.ts",
"dist/cli/commands/commit",
"dist/cli/commands/config",
"dist/cli/commands/config.js",
"dist/cli/commands/config.d.ts",
"dist/cli/commands/init",
"dist/cli/commands/preview",
"dist/cli/commands/revert",
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/commit/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function detectEditor(): string | null {
if (envEditor.includes("/") || envEditor.includes("\\")) {
try {
accessSync(envEditor, constants.F_OK);
return envEditor.trim();
return envEditor.trim();
} catch {
// Path doesn't exist, try to find it as a command
}
Expand Down