diff --git a/.changeset/fix-missing-config-command-in-package.md b/.changeset/fix-missing-config-command-in-package.md deleted file mode 100644 index c31c9b5..0000000 --- a/.changeset/fix-missing-config-command-in-package.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@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 - diff --git a/CHANGELOG.md b/CHANGELOG.md index 007ca9f..e5c8f28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # @labcatr/labcommitr +## 0.4.1 + +### Patch Changes + +- 7d86240: 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 + ## 0.4.0 ### Minor Changes diff --git a/package.json b/package.json index c7e7155..565b4fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@labcatr/labcommitr", - "version": "0.4.0", + "version": "0.4.1", "description": "Labcommitr is a solution for building standardized git commits, hassle-free!", "main": "dist/index.js", "scripts": { diff --git a/src/cli/commands/commit/editor.ts b/src/cli/commands/commit/editor.ts index 3250ec8..c75127c 100644 --- a/src/cli/commands/commit/editor.ts +++ b/src/cli/commands/commit/editor.ts @@ -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 }