refactor: use @tsconfig/node16 (#721)

This commit is contained in:
Jamie Magee 2023-04-25 22:51:16 -07:00 committed by GitHub
parent 5fcc920667
commit 1bf6b3ad0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 11 deletions

View file

@ -31,7 +31,9 @@ class Input {
? new RegExp(envRegexInput)
: this.options.envRegex;
this._environmentVariables = new Map(
Object.entries(process.env).filter(([key]) => envRegex.test(key))
Object.entries(process.env)
.filter(([key]) => envRegex.test(key))
.filter((pair): pair is [string, string] => pair[1] !== undefined)
);
this.token = this.get(

View file

@ -22,12 +22,13 @@ class Renovate {
.map((e) => `--env ${e.key}`)
.concat([`--env ${this.input.token.key}=${this.input.token.value}`]);
if (this.input.configurationFile() !== null) {
const baseName = path.basename(this.input.configurationFile().value);
const configurationFile = this.input.configurationFile();
if (configurationFile !== null) {
const baseName = path.basename(configurationFile.value);
const mountPath = path.join(this.configFileMountDir, baseName);
dockerArguments.push(
`--env ${this.input.configurationFile().key}=${mountPath}`,
`--volume ${this.input.configurationFile().value}:${mountPath}`
`--env ${configurationFile.key}=${mountPath}`,
`--volume ${configurationFile.value}:${mountPath}`
);
}