Skip to content

Commit 6adc8c6

Browse files
committed
Fix automatic entry point discovery for packages
1 parent 6868398 commit 6adc8c6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ title: Changelog
44

55
## Unreleased
66

7+
### Bug Fixes
8+
9+
- Fixed automatic discovery of entry points in packages mode.
10+
711
## v0.27.0 (2024-11-27)
812

913
### Breaking Changes

src/lib/utils/entry-point.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ export interface DocumentEntryPoint {
6161
}
6262

6363
export function inferEntryPoints(logger: Logger, options: Options) {
64-
const packageJson = discoverPackageJson(process.cwd());
64+
const packageJson = discoverPackageJson(
65+
options.packageDir ?? process.cwd(),
66+
);
6567
if (!packageJson) {
6668
logger.warn(logger.i18n.no_entry_points_provided());
6769
return [];

0 commit comments

Comments
 (0)