From 05eeb71b6964797d17b025ef958aba321fe29717 Mon Sep 17 00:00:00 2001 From: Rainer Hahnekamp Date: Mon, 7 Oct 2024 00:50:31 +0200 Subject: [PATCH] fix(core): compilation issue due to barrel-less property --- packages/core/src/lib/main/parse-project.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/core/src/lib/main/parse-project.ts b/packages/core/src/lib/main/parse-project.ts index 5d485ed..e3c77fa 100644 --- a/packages/core/src/lib/main/parse-project.ts +++ b/packages/core/src/lib/main/parse-project.ts @@ -8,7 +8,7 @@ import throwIfNull from '../util/throw-if-null'; import { TsData } from '../file-info/ts-data'; import { Module } from '../modules/module'; import { SheriffConfig } from '../config/sheriff-config'; -import { findModulePaths } from "../modules/find-module-paths"; +import { findModulePaths } from '../modules/find-module-paths'; export type ParsedResult = { fileInfo: FileInfo; @@ -22,7 +22,7 @@ export const parseProject = ( traverse: boolean, tsData: TsData, config: SheriffConfig, - fileContent?: string + fileContent?: string, ): ParsedResult => { const unassignedFileInfo = generateUnassignedFileInfo( entryFile, @@ -38,14 +38,19 @@ export const parseProject = ( const getFileInfo = (path: FsPath) => throwIfNull(fileInfoMap.get(path), `cannot find FileInfo for ${path}`); - const modulePaths = findModulePaths(projectDirs, config.tagging, config.barrelFileName); + const modulePaths = findModulePaths( + projectDirs, + config.tagging, + config.barrelFileName, + config.enableBarrelLess, + ); const modules = createModules( unassignedFileInfo, modulePaths, rootDir, fileInfoMap, getFileInfo, - config.barrelFileName + config.barrelFileName, ); fillFileInfoMap(fileInfoMap, modules);