[Pkg-javascript-commits] [Git][js-team/node-marked][master] 2 commits: Fix build with TypeScript 6
Yadd (@yadd)
gitlab at salsa.debian.org
Sun Aug 16 19:46:38 BST 2026
Yadd pushed to branch master at Debian JavaScript Maintainers / node-marked
Commits:
66811fea by Xavier Guimard at 2026-08-16T19:02:57+02:00
Fix build with TypeScript 6
- - - - -
f8b53718 by Xavier Guimard at 2026-08-16T19:03:08+02:00
releasing package node-marked version 18.0.6+~cs7.2.17-2
- - - - -
4 changed files:
- debian/changelog
- debian/nodejs/build
- debian/patches/series
- + debian/patches/ts6-github-slugger-moduleresolution.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+node-marked (18.0.6+~cs7.2.17-2) unstable; urgency=medium
+
+ * Team upload
+ * Fix build with TypeScript 6
+
+ -- Xavier Guimard <yadd at debian.org> Sun, 16 Aug 2026 19:03:08 +0200
+
node-marked (18.0.6+~cs7.2.17-1) unstable; urgency=medium
* Team upload
=====================================
debian/nodejs/build
=====================================
@@ -8,7 +8,7 @@ esbuild src/marked.ts --bundle --format=iife --global-name=marked --outfile=lib/
esbuild src/marked.ts --bundle --format=iife --global-name=marked --minify --outfile=lib/marked.umd.min.js
# Generate the TypeScript declarations
-tsc --declaration --emitDeclarationOnly --noEmit false --outDir lib --project tsconfig.json
+tsc --declaration --emitDeclarationOnly --noEmit false --outDir lib --rootDir src --project tsconfig.json
sed -i "s/\.ts'/.js'/g" lib/*.d.ts
marked-man man/marked.1.md > man/marked.1
=====================================
debian/patches/series
=====================================
@@ -3,3 +3,4 @@
0005-Do-not-rollup-cjs.patch
0006-do-not-rollup-everything.patch
0007-Build-marked-extension-for-marked.patch
+ts6-github-slugger-moduleresolution.patch
=====================================
debian/patches/ts6-github-slugger-moduleresolution.patch
=====================================
@@ -0,0 +1,17 @@
+Description: github-slugger: use the bundler module resolution
+ moduleResolution=node10 is rejected by TypeScript 6; the component is pure
+ ESM, so the bundler resolution is the right replacement.
+Author: Xavier Guimard <yadd at debian.org>
+Forwarded: not-needed
+Last-Update: 2026-08-16
+--- a/github-slugger/tsconfig.json
++++ b/github-slugger/tsconfig.json
+@@ -4,7 +4,7 @@
+ "target": "es2022",
+ "lib": ["es2022"],
+ "module": "esnext",
+- "moduleResolution": "node",
++ "moduleResolution": "bundler",
+ "allowJs": true,
+ "checkJs": true,
+ "declaration": true,
View it on GitLab: https://salsa.debian.org/js-team/node-marked/-/compare/d3ad80c8a04621875a4cf5c94467a2239e3961d5...f8b53718b95e6f6b1d91ce816766e6a1cdfc6f7f
--
View it on GitLab: https://salsa.debian.org/js-team/node-marked/-/compare/d3ad80c8a04621875a4cf5c94467a2239e3961d5...f8b53718b95e6f6b1d91ce816766e6a1cdfc6f7f
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-commits/attachments/20260816/4b4332f7/attachment-0001.htm>
More information about the Pkg-javascript-commits
mailing list