-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug?]: package.json that gets packed doesn't contain changes from after prepack #3609
Closed
1 task
Labels
bug
Something isn't working
Comments
Duplicate of #3145 |
This was fixed in #3146 which is currently in a canary release yarn set version canary I see that you made a script in wojtekmaj/enzyme-adapter-react-17@e3cadb1 to remove and restore the module.exports = {
name: `plugin-remove-workspaces-field`,
factory: () => ({
hooks: {
beforeWorkspacePacking(workspace, rawManifest) {
delete rawManifest.workspaces;
},
},
}),
}; |
Merged
2 tasks
wojtekmaj
added a commit
to wojtekmaj/enzyme-adapter-react-17
that referenced
this issue
Nov 1, 2021
wojtekmaj
added a commit
to wojtekmaj/enzyme-adapter-react-17
that referenced
this issue
Nov 1, 2021
wojtekmaj
added a commit
to wojtekmaj/enzyme-adapter-react-17
that referenced
this issue
Nov 1, 2021
* Revert "Remove remove-workspaces and restore-workspaces from lifecycle scripts" This reverts commit 2235914. * Replace prepack and postpack scripts with custom Yarn plugin As suggested in yarnpkg/berry#3609 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Self-service
Describe the bug
package.json
that gets packed is a version from beforeprepack
or from after. I think this is confusing - I was under impression that afterpostpack
prepack
and beforepostpack
is a window of time when all files are collected and packaged.To reproduce
prepack
script, add a script that modifiespackage.json
postpack
script, add a script that restorespackage.json
yarn pack
package.tgz
Environment
Additional context
Reproducible at https://github.com/wojtekmaj/enzyme-adapter-react-17/tree/502e1346f871418919275955b9ca267be0c3d6bd
The text was updated successfully, but these errors were encountered: