diff --git a/src/compiler.ts b/src/compiler.ts index 6a486ac..ff3b7ab 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -186,7 +186,7 @@ export class NexeCompiler { } } if (this.options.ghToken) { - downloadOptions.headers.Authorization = 'token ' + this.options.ghToken + downloadOptions.headers.Authorization = 'token ' + this.options.ghToken } const githubRelease = await getLatestGitRelease(downloadOptions) const assetName = target.toString() diff --git a/src/options.ts b/src/options.ts index 7a7f958..b28ea47 100644 --- a/src/options.ts +++ b/src/options.ts @@ -83,7 +83,7 @@ const alias = { h: 'help', l: 'loglevel', 'fake-argv': 'fakeArgv', - 'gh-token': 'ghToken', + 'gh-token': 'ghToken' } const argv = parseArgv(process.argv, { alias, default: { ...defaults, enableStdIn: true } }) const g = c.gray