-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Migrate tools and configs to typescript, require node.js >= 22.18.0 #35421
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
Conversation
Looks like
I think it needs a multi-stage build. |
Docker build works now. As a workaround, I'm copying over the |
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 is a failure on main: https://github.com/go-gitea/gitea/actions/runs/17514788636/job/49750917680 I think it's because the node image lacks the https://hub.docker.com/_/node/tags?name=22-alpine3.22 I wonder why the CI tests did not bring this up. |
Might have to revert this and wait for alpine 3.23. The only other option seems to be to compile node.js from source which seems complicated. |
* giteaofficial/main: fix: add author.name field to Swift Package Registry API response (go-gitea#35410) Update js dependencies (go-gitea#35429) Support Node.js 22.6 with type stripping (go-gitea#35427) [skip ci] Updated translations via Crowdin apply as maintainer (go-gitea#35424) Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (go-gitea#35418) Migrate tools and configs to typescript, require node.js >= 22.18.0 (go-gitea#35421) [skip ci] Updated translations via Crowdin Switch to `@resvg/resvg-wasm` for `generate-images` (go-gitea#35415) fix(webhook/discord): fixed username cannot be empty error (go-gitea#35412) add `/.pnpm-store` to .gitignore (go-gitea#35414)
Migrate all JS config and tools to TS and fix a number of type issues. This required Node.js 22.18.0 or greater where type-stripping was enabled by default.
Given that Node 22 is the current LTS, I think it's ok to assume that the user has a recent version of it.
Webpack currently requires the
--disable-interpret
flag to work, should be fixed eventually with webpack/webpack-cli#4525.fast-glob
is replaced byfs.globSync
, available in Node 22.0.0 or greater.