-
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
Build: Add package build shebang and sync comments #58264
Conversation
Allows us to run build directly: ./bin/packages/build.js
Size Change: 0 B Total Size: 1.7 MB ℹ️ View Unchanged
|
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.
Nice enhancement 👍
Any idea for the future, how we could read the same information from package.json, files and serialize to the disk for DEWP before publishing to npm?
Maybe DEWP could be the single source of truth. It doesn't require a build step, so we wouldn't have a problem where building packages requires on a package being built 🙂 It could expose either this data or a function like |
That could work. I think we need to be able to do something similar in WP core in the webpack config. |
What?
Two small build-related improvements I added to #58258 then extracted here.
bin/packages/build.js
. This allows it to be called directly. It was already executable but was missing this.BUNDLED_PACKAGES
stating that they should remain in sync and referencing the other location.Why?
Self explanatory.
Testing Instructions
This works: