From 7d862402d449b8715729a9192352ca928275dbad Mon Sep 17 00:00:00 2001 From: Satanshu Mishra Date: Sat, 29 Nov 2025 22:59:13 -0700 Subject: [PATCH 1/2] fix: include config command files in published package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • 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 --- .changeset/fix-missing-config-command-in-package.md | 12 ++++++++++++ package.json | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .changeset/fix-missing-config-command-in-package.md diff --git a/.changeset/fix-missing-config-command-in-package.md b/.changeset/fix-missing-config-command-in-package.md new file mode 100644 index 0000000..c31c9b5 --- /dev/null +++ b/.changeset/fix-missing-config-command-in-package.md @@ -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 + diff --git a/package.json b/package.json index d6387bd..c7e7155 100644 --- a/package.json +++ b/package.json @@ -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", From ff6683abaac795527ef0dc8e19b770b0668cccc1 Mon Sep 17 00:00:00 2001 From: Satanshu Mishra Date: Sat, 29 Nov 2025 22:59:28 -0700 Subject: [PATCH 2/2] chore: apply code formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fix indentation in editor.ts return statement • Consistent formatting across codebase --- src/cli/commands/commit/editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/commands/commit/editor.ts b/src/cli/commands/commit/editor.ts index c75127c..3250ec8 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 }