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: use internal node_modules for remapped files #1949

Merged
merged 2 commits into from
May 8, 2023

Conversation

DylanPiercey
Copy link
Contributor

Description

Avoids issues with nested package.json resolution which is finicky in several tools (including vitest and jest).
The fix here is somewhat of a hack but appears to work in all supported environments. The hack is to move all of these remapped files into their own node_module package folder that comes with the Marko runtime (see packages/marko/src/node_modules/@internal).

Checklist:

  • I have read the CONTRIBUTING document and have signed (or will sign) the CLA.
  • I have updated/added documentation affected by my changes.
  • I have added tests to cover my changes.

@changeset-bot
Copy link

changeset-bot bot commented May 8, 2023

🦋 Changeset detected

Latest commit: c5420a4

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

This PR includes changesets to release 3 packages
Name Type
@marko/translator-default Patch
marko Patch
@marko/compiler 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

@DylanPiercey DylanPiercey merged commit 7f6b65a into main May 8, 2023
@github-actions github-actions bot mentioned this pull request May 8, 2023
@DylanPiercey DylanPiercey deleted the internal-node-module-for-remaps branch January 8, 2024 20:03
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.

None yet

1 participant