Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple package.json inputs #1

Open
aleclarson opened this issue May 4, 2022 · 0 comments
Open

Support for multiple package.json inputs #1

aleclarson opened this issue May 4, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@aleclarson
Copy link
Owner

Sometimes dev dependencies can exist in a monorepo's root package.json, or maybe I have multiple entries from different packages that I want merged. In the latter case, it would probably be best to add support for an entry-specific config, like so:

// This maps "outSrcRoot" => "entry"
entries: {
  'src/foo': 'packages/foo/src/index.ts',
  'src/bar': 'packages/bar/src/index.ts',
}

Then let's add an array version of pkgRoot option. The highest common ancestor is used to compute module IDs.

pkgRoots: ['/path/to/packages/foo', '/path/to/packages/bar']
@aleclarson aleclarson added the enhancement New feature or request label May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant