-
Notifications
You must be signed in to change notification settings - Fork 916
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
[esinstall] enable native esm for node v12+ #1093
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pikapkg/snowpack/7ibq5lqzv |
I went one step further and removed @pika/pack from Snowpack as well. I love @pika/pack as much as the next person, but in this exact usecase it was causing more harm than good. See the contributing docs for all the weirdness that this removes. Also, we now have a build:watch command: make changes and see the reflected instantly. Way overdue, imo! |
yarn --force # only needed after very first build; afterward can be skipped | ||
``` | ||
|
||
#### Why is `yarn --force` needed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍 😍 😍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested the pull request locally with the example documented in https://github.com/pikapkg/snowpack/tree/0fe3dccb4b957d301718cfac82abbb035e740d17/esinstall#esinstall and worked as expected 👍🏼
I’m seeing some weird behavior in the tests, I think from this PR? Before, all of our test repos symlinked Now, it seems all of our build tests download snowpack from npm, which means we’re no longer testing the local version (so any test success or failure in a PR can’t be trusted). To confirm this, in |
Hmm, I do see "snowpack" being installed locally, but the |
Okay, think that fixed it. I think it was the |
Ah good to know! Sorry—my mistake. 🤔 What if in the test deps we just did |
+1 if that means also moving the tests out of lerna/yarn workspaces entirely :) (at that point we’d only be using them to manage the test deps, which we’ve been bitten by “did this snapshot change because of a test dep or a Snowpack dep” when doing a fresh “yarn install”) |
As long as tests surface regressions in a PR before merging that’s all that matters to me! I don’t care if they’re a part of the Lerna/Yarn workspace or not. As long as CI runs quickly and setup for contributors is easy, that’s mostly what matters. |
/cc @ChristopherBiscardi
Changes
Testing