Skip to content

Commit

Permalink
Fix automatic entry point discovery for packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Nov 27, 2024
1 parent 6868398 commit 6adc8c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ title: Changelog

## Unreleased

### Bug Fixes

- Fixed automatic discovery of entry points in packages mode.

## v0.27.0 (2024-11-27)

### Breaking Changes
Expand Down
4 changes: 3 additions & 1 deletion src/lib/utils/entry-point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export interface DocumentEntryPoint {
}

export function inferEntryPoints(logger: Logger, options: Options) {
const packageJson = discoverPackageJson(process.cwd());
const packageJson = discoverPackageJson(
options.packageDir ?? process.cwd(),
);
if (!packageJson) {
logger.warn(logger.i18n.no_entry_points_provided());
return [];
Expand Down

0 comments on commit 6adc8c6

Please sign in to comment.