From 8d648194c567a83195e056f316da914022b130e2 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 1 Mar 2021 14:52:19 +0100 Subject: [PATCH] chore: add missing manager types --- lib/manager/common.ts | 3 ++- lib/manager/npm/post-update/index.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/manager/common.ts b/lib/manager/common.ts index 3517f22e39..9a330aa7a5 100644 --- a/lib/manager/common.ts +++ b/lib/manager/common.ts @@ -201,6 +201,7 @@ export interface Upgrade<T = Record<string, any>> updateType?: UpdateType; version?: string; isLockFileMaintenance?: boolean; + isRemediation?: boolean; } export interface ArtifactError { @@ -289,7 +290,7 @@ export interface ManagerApi { // TODO: name and properties used by npm manager export interface PostUpdateConfig extends ManagerConfig, Record<string, any> { cacheDir?: string; - + updatedPackageFiles?: File[]; postUpdateOptions?: string[]; skipInstalls?: boolean; diff --git a/lib/manager/npm/post-update/index.ts b/lib/manager/npm/post-update/index.ts index 08f27d465f..03ffbc6c8e 100644 --- a/lib/manager/npm/post-update/index.ts +++ b/lib/manager/npm/post-update/index.ts @@ -239,7 +239,7 @@ export async function writeUpdatedPackageFiles( continue; // eslint-disable-line } logger.debug(`Writing ${String(packageFile.name)}`); - const massagedFile = JSON.parse(packageFile.contents); + const massagedFile = JSON.parse(packageFile.contents.toString()); try { const { token } = hostRules.find({ hostType: config.platform, -- GitLab