aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/config/types.ts2
-rw-r--r--lib/workers/repository/extract/manager-files.ts19
2 files changed, 3 insertions, 18 deletions
diff --git a/lib/config/types.ts b/lib/config/types.ts
index ae24a89b6c3..e49d86f2d5b 100644
--- a/lib/config/types.ts
+++ b/lib/config/types.ts
@@ -228,8 +228,6 @@ export interface RenovateConfig
fetchReleaseNotes?: boolean;
secrets?: Record<string, string>;
- aliases?: Record<string, any>;
- skipInstalls?: boolean;
}
export interface AllConfig extends RenovateConfig, GlobalOnlyConfig {}
diff --git a/lib/workers/repository/extract/manager-files.ts b/lib/workers/repository/extract/manager-files.ts
index 5da2054742b..79a16b4543a 100644
--- a/lib/workers/repository/extract/manager-files.ts
+++ b/lib/workers/repository/extract/manager-files.ts
@@ -6,26 +6,13 @@ import {
extractPackageFile,
get,
} from '../../../modules/manager';
-import type {
- ExtractConfig,
- PackageFile,
-} from '../../../modules/manager/types';
+import type { PackageFile } from '../../../modules/manager/types';
import { readLocalFile } from '../../../util/fs';
-function getExtractConfig(config: WorkerExtractConfig): ExtractConfig {
- return {
- npmrc: config.npmrc,
- aliases: config.aliases,
- skipInstalls: config.skipInstalls,
- npmrcMerge: config.npmrcMerge,
- };
-}
-
export async function getManagerPackageFiles(
config: WorkerExtractConfig
): Promise<PackageFile[]> {
const { enabled, manager, fileList } = config;
- const extractConfig = getExtractConfig(config);
logger.trace(`getPackageFiles(${manager})`);
if (!enabled) {
logger.debug(`${manager} is disabled`);
@@ -45,7 +32,7 @@ export async function getManagerPackageFiles(
if (get(manager, 'extractAllPackageFiles')) {
const allPackageFiles = await extractAllPackageFiles(
manager,
- extractConfig,
+ config,
fileList
);
if (allPackageFiles) {
@@ -67,7 +54,7 @@ export async function getManagerPackageFiles(
manager,
content,
packageFile,
- extractConfig
+ config
);
if (res) {
for (let index = 0; index < res.deps.length; index += 1) {