1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-10 10:48:28 +00:00

Migrate tools and configs to typescript, require node.js >= 22.18.0 (#35421)

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](https://nodejs.org/en/blog/release/v22.18.0) 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
https://github.com/webpack/webpack-cli/issues/4525.
`fast-glob` is replaced by `fs.globSync`, available in Node 22.0.0 or
greater.
This commit is contained in:
silverwind
2025-09-06 14:58:25 +02:00
committed by GitHub
parent 1640e9a490
commit b8f1c9f048
14 changed files with 89 additions and 99 deletions

17
pnpm-lock.yaml generated
View File

@@ -83,9 +83,6 @@ importers:
esbuild-loader:
specifier: 4.3.0
version: 4.3.0(webpack@5.101.0)
fast-glob:
specifier: 3.3.3
version: 3.3.3
htmx.org:
specifier: 2.0.6
version: 2.0.6
@@ -315,9 +312,6 @@ importers:
stylelint-declaration-strict-value:
specifier: 1.10.11
version: 1.10.11(stylelint@16.23.1(typescript@5.8.3))
stylelint-define-config:
specifier: 16.22.0
version: 16.22.0(stylelint@16.23.1(typescript@5.8.3))
stylelint-value-no-unknown-custom-properties:
specifier: 6.0.1
version: 6.0.1(stylelint@16.23.1(typescript@5.8.3))
@@ -4518,12 +4512,6 @@ packages:
peerDependencies:
stylelint: '>=7 <=16'
stylelint-define-config@16.22.0:
resolution: {integrity: sha512-EEgHRugsryKo7LpenYyd4yLoZon3lHvRAi7WsMaZoRX9GPOkeDXrMga+N4VA4nK4Zus02EQwyYkndNQ64jaB2A==}
engines: {node: '>=18.0.0', npm: '>=9.0.0', pnpm: '>=8.6.0'}
peerDependencies:
stylelint: '>=16.0.0'
stylelint-value-no-unknown-custom-properties@6.0.1:
resolution: {integrity: sha512-N60PTdaTknB35j6D4FhW0GL2LlBRV++bRpXMMldWMQZ240yFQaoltzlLY4lXXs7Z0J5mNUYZQ/gjyVtU2DhCMA==}
engines: {node: '>=18.12.0'}
@@ -9732,11 +9720,6 @@ snapshots:
dependencies:
stylelint: 16.23.1(typescript@5.8.3)
stylelint-define-config@16.22.0(stylelint@16.23.1(typescript@5.8.3)):
dependencies:
csstype: 3.1.3
stylelint: 16.23.1(typescript@5.8.3)
stylelint-value-no-unknown-custom-properties@6.0.1(stylelint@16.23.1(typescript@5.8.3)):
dependencies:
postcss-value-parser: 4.2.0