Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

refactor: Build scripts & output directories #363

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

Merged
merged 3 commits into from
May 25, 2024

Conversation

rschristian
Copy link
Member

Builds on top of #362-ish

Does a few things:

  • Output in dist/ is now nested per export
    • Makes it so much easier to debug/deal with when the exports aren't all at same level.
  • Simplifies & makes build scripts a tad more consistent
  • Drops pretty-format dependency -- it's already inlined into the export that uses it. It's not a heavy dep, but entirely unused all the same.

Copy link

changeset-bot bot commented May 24, 2024

⚠️ No Changeset found

Latest commit: dad2550

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

Comment on lines 10 to -11
fs.copyFileSync(filePath('index.js'), filePath('commonjs.js'));
fs.copyFileSync(filePath('index.js.map'), filePath('commonjs.js.map'));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No point in copying the maps AFAIK, we don't update the source map comment, i.e., commonjs.js still has //# sourceMappingURL=index.js.map.

Could fix that, but I don't see a real need to?

@rschristian rschristian force-pushed the refactor/build-scripts branch from 01f244a to dad2550 Compare May 25, 2024 13:29
@rschristian rschristian merged commit ae55a6c into main May 25, 2024
1 check passed
@rschristian rschristian deleted the refactor/build-scripts branch May 25, 2024 13:32
@rschristian rschristian mentioned this pull request May 26, 2024
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.