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

fix: allow users to run electron-webpack outside a workspace root #219

Merged
merged 2 commits into from
Nov 4, 2018

Conversation

stristr
Copy link
Contributor

@stristr stristr commented Nov 3, 2018

This PR has two three small changes allowing us to run electron-webpack in a directory other than the workspace root. Our monorepo uses Yarn workspaces, and we want to support electron-webpack project(s) without overloading the root workspace private package.

By using require.resolve, we don't have to make assumptions about where the node_modules directory is.

@develar develar merged commit 0a9afdb into electron-userland:master Nov 4, 2018
@develar
Copy link
Member

develar commented Nov 4, 2018

Thanks!

@develar
Copy link
Member

develar commented Nov 4, 2018

2.4.0 published (pre-release). Please try.

@stristr
Copy link
Contributor Author

stristr commented Nov 5, 2018

It works in the release! Thanks 😄.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants