Skip to content

Commit de360f1

Browse files
committed
feat: Update publish config and fix env type
Updates the GitHub publish configuration in package.json to use explicit owner and repo fields. Fixes a type error in electron/main.ts by replacing NodeJS.ProcessEnv with a compatible type for the environment variable object in the executeCommand function.
1 parent fcab06b commit de360f1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

electron/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,8 @@ const substituteVariables = (command: string, variables: TaskVariable[] = []): s
10581058
};
10591059

10601060
// --- Promise-based command executor ---
1061-
function executeCommand(cwd: string, fullCommand: string, sender: (channel: string, ...args: any[]) => void, executionId: string, env: NodeJS.ProcessEnv): Promise<number> {
1061+
// FIX: Replaced NodeJS.ProcessEnv with a compatible type to resolve namespace issue.
1062+
function executeCommand(cwd: string, fullCommand: string, sender: (channel: string, ...args: any[]) => void, executionId: string, env: { [key: string]: string | undefined }): Promise<number> {
10621063
return new Promise((resolve, reject) => {
10631064
sender('task-log', { executionId, message: `$ ${fullCommand}`, level: LogLevel.Command });
10641065

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@
6666
},
6767
"publish": [
6868
{
69-
"provider": "github",
70-
"repo": "https://github.com/beNative/git-automation.git"
69+
"provider": "github",
70+
"owner": "beNative",
71+
"repo": "git-automation"
7172
}
7273
]
7374
}

0 commit comments

Comments
 (0)