Skip to content

Include all workspace files in webpack / rollup build configurations#2219

Merged
cristiano-belloni merged 7 commits intomainfrom
feature/include-all-workspaces-in-build
Dec 1, 2022
Merged

Include all workspace files in webpack / rollup build configurations#2219
cristiano-belloni merged 7 commits intomainfrom
feature/include-all-workspaces-in-build

Conversation

@cristiano-belloni
Copy link
Contributor

@cristiano-belloni cristiano-belloni commented Nov 28, 2022

The Webpack and Rollup configuration hardcode all packages subdirectories as the source root for files included in the build. This is incorrect, since we want to support all workspaces, not only the ones under packages. This PR fixes the issue and adds a couple of tests.

  • Fix build for apps / Webpack
  • Fix build in Windows
  • Changelog
  • Tests
  • Fix build for packages

@changeset-bot
Copy link

changeset-bot bot commented Nov 28, 2022

🦋 Changeset detected

Latest commit: 68ae3a4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
modular-scripts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coveralls
Copy link
Collaborator

coveralls commented Nov 28, 2022

Coverage Status

Coverage decreased (-0.03%) to 33.286% when pulling 68ae3a4 on feature/include-all-workspaces-in-build into e2cbdc3 on main.

@cristiano-belloni cristiano-belloni marked this pull request as draft November 28, 2022 18:29
@cristiano-belloni cristiano-belloni changed the title Build include directories in Webpack using all the workspaces Include all workspace files in webpack / rollup build configurations Dec 1, 2022
@cristiano-belloni cristiano-belloni marked this pull request as ready for review December 1, 2022 14:56
@cristiano-belloni cristiano-belloni requested review from AlbertoBrusa, ayseenver, benpryke, sgb-io and steveukx and removed request for sgb-io December 1, 2022 15:07
@cristiano-belloni cristiano-belloni merged commit 4a541a9 into main Dec 1, 2022
@cristiano-belloni cristiano-belloni deleted the feature/include-all-workspaces-in-build branch December 1, 2022 15:46
@github-actions github-actions bot mentioned this pull request Dec 1, 2022
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.

3 participants