Skip to content

feat!: allow to run any script for clean/install/build - #126

Merged
rschristian merged 11 commits into
preactjs:v3from
unrevised6419:feat/make-scripts-generic
Dec 6, 2025
Merged

feat!: allow to run any script for clean/install/build#126
rschristian merged 11 commits into
preactjs:v3from
unrevised6419:feat/make-scripts-generic

Conversation

@unrevised6419

@unrevised6419 unrevised6419 commented Dec 3, 2025

Copy link
Copy Markdown

@rschristian rschristian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize this is a draft but please revert all formatting & other unrelated changes before opening up for review, they can be submitted separately if you think they're worthwhile.

Comment thread jsconfig.json Outdated
Comment thread jsconfig.json Outdated
Comment thread action.yml
@unrevised6419

unrevised6419 commented Dec 3, 2025

Copy link
Copy Markdown
Author

@rschristian the changes from the action.yml file were made by the prettier config in the package.json file. Should I still revert them? 👀

Will check again, seems the IDE does not know which to use prettier or editorconfig

PS: reverted prettier changes in the action.yml

Comment thread README.md Outdated
@unrevised6419

Copy link
Copy Markdown
Author

@rschristian I left some notes, when you have time please take a look

@unrevised6419
unrevised6419 marked this pull request as ready for review December 3, 2025 20:29
Comment thread package.json Outdated

@rschristian rschristian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting changes were done by your editor formatting on save, the config sat in the repo root is pretty innocent.

PRs should ideally only contain relevant changes. Formatting discrepancies and dependency bumps should be entirely separate PRs.

Revert everything down to the very specific changes you're actually proposing here. This is unreviewable as-is unfortunately.

@rschristian rschristian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a swing at landing this! I appreciate it.

Comment thread README.md Outdated
Comment thread src/index.js
Comment thread src/index.js
Comment thread src/index.js
Comment thread src/index.js Outdated
Comment thread action.yml
Comment thread index.js
Comment thread README.md Outdated
Comment thread README.md
@rschristian
rschristian changed the base branch from master to v3 December 6, 2025 23:34

@rschristian rschristian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just created a v3 branch & switched your PR over to target it so that we can at least merge this in & you're not left rebasing as I figure out a timeline here.

At best, this can go out maybe at the end of January as I need to a) put in deprecation notices for folks missing scripts, giving them a nudge to add them before they become required, and b) wrangle up any other changes that should go along with a new major. At the same time, with the holidays coming up I have very limited free time so we'll see if/when I can do any of that.

Thanks for doing this & working with me to get those corrections in!

@rschristian
rschristian merged commit 49c7ff0 into preactjs:v3 Dec 6, 2025
1 check passed
@unrevised6419
unrevised6419 deleted the feat/make-scripts-generic branch December 7, 2025 11:12
@unrevised6419

Copy link
Copy Markdown
Author

Great news!
Can you please do a build in v3, so it can be used already?
If you need help with anything please ping me.

@rschristian

Copy link
Copy Markdown
Member

Can you please do a build in v3, so it can be used already?

Uploading a build is part of the publish process, that'll only be done when/if a v3 release is cut.

@unrevised6419

Copy link
Copy Markdown
Author

Hey @rschristian! Is there any timeline when v3 will be built? I see downstream repositories started using v3 branch, because Dependabot reported the update with no breaking changes. It seems that now if doing a v3 built, it my break the downstream CI jobs 🤔

@rschristian

rschristian commented Jun 4, 2026

Copy link
Copy Markdown
Member

Is there any timeline when v3 will be built?

Want to start using it? Happy to push up a build after work today.

I see downstream repositories started using v3 branch, because Dependabot reported the update with no breaking changes. It seems that now if doing a v3 built, it my break the downstream CI jobs

Hm, another reason to avoid dependabot I guess.

If users are blindly using the new version because dependabot told them to, any breakages are on them. Nothing we can really do about that. Using a branch instead of a proper release is quite a bad idea, if you're not intentional about it anyhow. If you landed changes that you want to use early then that's a different matter obviously 😅

@unrevised6419

Copy link
Copy Markdown
Author

Commiting the build changes in v3 without a release I think should be enough 🤔
Thanks in advance!

rschristian pushed a commit that referenced this pull request Jun 5, 2026
* feat!: allow to run any script for clean/install/build

* docs: change v2 to v3

* chore: revert action.yml prettier changes

* docs: add important note that scripts need to exist in both branches

* docs: fix configs in README

* chore: update microbundle to support Optional chaining

* feat: make install-script optional, some don't need it

* chore: run build

* chore: revert all unrelated changes

* fix: add logs back

* fix: add the required inputs in action workflow
@rschristian

Copy link
Copy Markdown
Member

Pushed a build for you: 261e5e2

@unrevised6419

Copy link
Copy Markdown
Author

Thanks!

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.

Proposal: Fully externalize install/build/clean commands

2 participants