-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Publishing with npm@7 publishes incorrect build of compiler #5662
Comments
Now that |
I did just try that, and removing the |
npm seems to be trying really hard to hide when and how the |
Okay, it's not just an environment variable difference between v6 and v7. With the same |
The difference is the order that |
We shouldn't just remove the |
Updating the lifecycle docs to reflect reality is a TODO on npm's end - npm/statusboard#267 According to the WIP PR npm/cli#2690 it sounds like it is expected that |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm not sure what labels mean what now, but I think this is still relevant. Publishing is still inelegant, to work around what is apparently the new intended way for lifecycle scripts to work. |
I didn't look at this closely, but it sounds similar to an issue I hit in the sites repo. You can take a look at my solution there to see if it'd help: sveltejs/sites#53 |
Closing as no longer relevant |
Running
npm publish
with npm@7 produces the properPUBLISH=true
build of the compiler, runs tests against it, and then apparently re-creates a non-PUBLISH=true
build right before packaging things up to publish them. I tried fixing this in e2fa0e0 but that broke Windows builds and I reverted it.I tried looking at npm@7's changelog to see what changed that would have caused this, but didn't find anything. I don't see any references to the
prepare
script being re-run. For now, I'm just going to publish with npm@6, but we should sort this out sometime soon.The text was updated successfully, but these errors were encountered: