Skip to content

Commit 16b3f59

Browse files
Bug Fixes (#33)
2 parents b035dc4 + b91ebe4 commit 16b3f59

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@labcatr/labcommitr": patch
3+
---
4+
5+
fix: include config command files in published package
6+
7+
- Change package.json files field from directory to explicit file paths
8+
- Add dist/cli/commands/config.js and config.d.ts to files array
9+
- Fixes ERR_MODULE_NOT_FOUND error when using lab commands
10+
- Config command was missing from published package causing runtime errors
11+
- Resolves issue where config.js file exists but wasn't included in npm package
12+

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
"dist/cli/program.js",
5757
"dist/cli/program.d.ts",
5858
"dist/cli/commands/commit",
59-
"dist/cli/commands/config",
59+
"dist/cli/commands/config.js",
60+
"dist/cli/commands/config.d.ts",
6061
"dist/cli/commands/init",
6162
"dist/cli/commands/preview",
6263
"dist/cli/commands/revert",

src/cli/commands/commit/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function detectEditor(): string | null {
6161
if (envEditor.includes("/") || envEditor.includes("\\")) {
6262
try {
6363
accessSync(envEditor, constants.F_OK);
64-
return envEditor.trim();
64+
return envEditor.trim();
6565
} catch {
6666
// Path doesn't exist, try to find it as a command
6767
}

0 commit comments

Comments
 (0)