Debian Patches

Status for node-ampproject-remapping/2.2.0+~cs5.15.37-3

Patch Description Author Forwarded Bugs Origin Last update
update-for-gen-mapping-0.2.0.patch update for @jridgewell/gen-mapping 0.2.0 Yadd <yadd@debian.org> no 2022-04-29
fix-for-rollup-3.patch fix for rollup 3 Yadd <yadd@debian.org> not-needed debian 2022-10-24
ts6-types-and-moduleresolution.patch fix TypeScript 6 compatibility (types and moduleResolution) TypeScript 6 only scans node_modules/@types when "types" contains the "*"
wildcard, so the jest globals disappear from the test files (TS2593/TS2304 on
describe, test, expect). Declaring "types" explicitly works with TypeScript 5
too. tsconfig.build.json narrows it back to node, because it drives
dh_auto_build where @types/jest is not linked (it is marked "test" in
debian/nodejs/extlinks) and a nocheck build would otherwise fail.
.
TypeScript 6 also turns moduleResolution=node10 into a hard error (TS5107).
It cannot simply be dropped here: with "module": "es2015" the implicit default
is the classic resolver, which does not find node_modules at all. "bundler" is
the non-deprecated equivalent, is accepted by both TypeScript 5 and 6, and
matches how the sources are written (extensionless relative imports, bundled
by rollup).
.
The same two fixes are needed in the embedded @jridgewell/* components, which
carry their own copy of both tsconfig files. Only sourcemap-codec needs an
explicit "types": ["node"] (TS2591 on Buffer); adding it to the components
that set "checkJs" would drag the node-util shim into the type check.
Xavier Guimard <yadd@debian.org> not-needed 2026-08-16

All known versions for source package 'node-ampproject-remapping'

Links