Version in base suite: 16.3.2+ds1+~cs50.8.16-1 Base version: node-tap_16.3.2+ds1+~cs50.8.16-1 Target version: node-tap_16.3.2+ds1+~cs50.8.16-1+deb12u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/n/node-tap/node-tap_16.3.2+ds1+~cs50.8.16-1.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/n/node-tap/node-tap_16.3.2+ds1+~cs50.8.16-1+deb12u1.dsc changelog | 7 +++++++ gbp.conf | 1 + patches/series | 1 + patches/support-tsnode-by-default.patch | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+) Unrecognised file line in .dsc: -----BEGIN PGP SIGNATURE----- diff -Nru node-tap-16.3.2+ds1+~cs50.8.16/debian/changelog node-tap-16.3.2+ds1+~cs50.8.16/debian/changelog --- node-tap-16.3.2+ds1+~cs50.8.16/debian/changelog 2022-11-24 17:03:31.000000000 +0000 +++ node-tap-16.3.2+ds1+~cs50.8.16/debian/changelog 2024-09-11 12:16:07.000000000 +0000 @@ -1,3 +1,10 @@ +node-tap (16.3.2+ds1+~cs50.8.16-1+deb12u1) bookworm; urgency=medium + + * Backport patch to support tsnode imports by default. + Closes: #1078897. + + -- Jérémy Lal Wed, 11 Sep 2024 14:16:07 +0200 + node-tap (16.3.2+ds1+~cs50.8.16-1) unstable; urgency=medium * Team upload diff -Nru node-tap-16.3.2+ds1+~cs50.8.16/debian/gbp.conf node-tap-16.3.2+ds1+~cs50.8.16/debian/gbp.conf --- node-tap-16.3.2+ds1+~cs50.8.16/debian/gbp.conf 2022-11-14 05:03:22.000000000 +0000 +++ node-tap-16.3.2+ds1+~cs50.8.16/debian/gbp.conf 2024-09-11 12:16:07.000000000 +0000 @@ -1,4 +1,5 @@ [DEFAULT] +debian-branch = debian/bookworm pristine-tar=True component=['module-bind-obj-methods', 'module-fs-exists-cached', 'module-function-loop', 'module-own-or', 'module-own-or-env', 'module-trivial-deferred', 'module-isaacs-import-jsx', 'module-caller-path', 'module-caller-callsite', 'module-findit', 'module-jackspeak', 'module-libtap', 'module-async-hook-domain', 'module-tcompare', 'types-tap'] diff -Nru node-tap-16.3.2+ds1+~cs50.8.16/debian/patches/series node-tap-16.3.2+ds1+~cs50.8.16/debian/patches/series --- node-tap-16.3.2+ds1+~cs50.8.16/debian/patches/series 2022-11-24 16:41:03.000000000 +0000 +++ node-tap-16.3.2+ds1+~cs50.8.16/debian/patches/series 2024-09-11 12:16:07.000000000 +0000 @@ -6,3 +6,4 @@ #x2 #x11 export-package.json +support-tsnode-by-default.patch diff -Nru node-tap-16.3.2+ds1+~cs50.8.16/debian/patches/support-tsnode-by-default.patch node-tap-16.3.2+ds1+~cs50.8.16/debian/patches/support-tsnode-by-default.patch --- node-tap-16.3.2+ds1+~cs50.8.16/debian/patches/support-tsnode-by-default.patch 1970-01-01 00:00:00.000000000 +0000 +++ node-tap-16.3.2+ds1+~cs50.8.16/debian/patches/support-tsnode-by-default.patch 2024-09-11 12:16:07.000000000 +0000 @@ -0,0 +1,32 @@ +Description: Support ts-node by default + However in node < 18.19, both + -r ts-node/register + --loader ts-node/esm + would compile twice. + Probably ts-node acting up, but much easier to avoid here. +Author: Jérémy Lal +Last-Update: 2023-12-12 +Forwarded: no +--- a/bin/run.js ++++ b/bin/run.js +@@ -679,7 +679,7 @@ + if (options.flow && flowNode) + options['node-arg'].push('-r', flowNode) + +- if (options.ts && tsNode && /\.tsx?$/.test(file)) { ++ if (tsNode && /\.([mc]?ts|tsx?)$/.test(file)) { + debug('typescript file', file) + const compilerOpts = JSON.parse(env.TS_NODE_COMPILER_OPTIONS || '{}') + if (options.jsx) +@@ -695,6 +695,11 @@ + file, + ...options['test-arg'] + ] ++ if (args.includes('ts-node/esm')) { ++ args.unshift('--experimental-modules') ++ args.splice(args.indexOf('--loader'), 1); ++ args.splice(args.indexOf('ts-node/esm'), 1); ++ } + tap.spawn(node, args, opt, file) + } else if (options.jsx && /\.jsx$/.test(file)) { + debug('jsx file', file)