Skip to content

Commit

Permalink
fix(core): compilation issue due to barrel-less property
Browse files Browse the repository at this point in the history
  • Loading branch information
rainerhahnekamp committed Oct 6, 2024
1 parent 57682a9 commit 05eeb71
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/core/src/lib/main/parse-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -22,7 +22,7 @@ export const parseProject = (
traverse: boolean,
tsData: TsData,
config: SheriffConfig,
fileContent?: string
fileContent?: string,
): ParsedResult => {
const unassignedFileInfo = generateUnassignedFileInfo(
entryFile,
Expand All @@ -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);

Expand Down

0 comments on commit 05eeb71

Please sign in to comment.