DH_NOD...PACKAGE(1p)

πŸ’– DH_NOD...PACKAGE(1p) πŸ’–

okay bestie, quick vibe check: this is a page from the User Contributed Perl Documentation collection, and it's about a lil debhelper helper that goes absolutely feral in the best way. stay with me, it's short and it slays 🫢


✨ NAME ✨

dh_nodejs_build_debug_package β€” the girl whose whole job is to automatically move sourcemap files into a separate debug package. queen behavior, honestly πŸ‘‘


🌸 SYNOPSIS 🌸

okay so the basic setup? you drop her into override_dh_install and she just does the thing:

override_dh_install:
    dh_install
    dh_nodejs_build_debug_package node-foo-debug

and if you're feeling fancy and want a custom regex (the classic example being moving typescript declarations), it's giving:

override_dh_install:
    dh_install
    dh_nodejs_build_debug_package node-types-foo '^.*\.d\.ts$'

no cap, that's the whole synopsis πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so dh_nodejs_build_debug_package automatically moves sourcemap files from all packages into a separate debug package. literally all of them. she's not picky, she's thorough ✨

you reach for her when package size is too big β€” like, your .deb is lowkey bloated and you need to offload the sourcemaps somewhere else so the main package can breathe. that's her moment. main character energy fr fr 🌈


Copyright Yadd <yadd@debian.org> πŸ’œ

Licensed under GPL-2+ (go peek at /usr/share/common-licenses/GPL-2 if you wanna read the whole thing, iykyk)


and that's it, that's the page πŸ“ this doc came to you courtesy of perl v5.40.1 and it's dated 2026-08-17, so it's fresh fresh. go forth and ship tiny packages, bestie πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from