Debian...geLock(3pm)

πŸ’– Debian::PkgJS::PackageLock(3pm) πŸ’–

okay bestie come sit with me, we're reading the Debian::PkgJS::PackageLock page together. (The header up top squishes it down to Debian...geLock(3pm) like it's texting with its thumbs, but it's the same girl, promise. 🫢)


✨ NAME ✨

Debian::PkgJS::PackageLock β€” it's a Perl module, and its whole job, its entire purpose, its main character era, is building pkgjs-lock.json files. That's it. That's the gig. πŸ’…


🌸 SYNOPSIS 🌸

here's the vibe in code, no cap:

use Debian::PkgJS::PackageLock;

for my $path (@jsModulePaths) {
    buildPackageLock( $path, "$path/pkgjs-locj.json");
}

use Debian::Debhelper::Dh_Lib;

addsubstvar( $pkg, builtUsing() );

like… literally just use it, loop over your @jsModulePaths, and call buildPackageLock on each one. then pull in Debian::Debhelper::Dh_Lib and hit addsubstvar( $pkg, builtUsing() ). iconic behavior. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

πŸŽ€ EXPORT πŸŽ€

these are the two things it hands out to you, the exports, the lil gifts 🎁:

  • buildPackageLock( $path, $dest ) β€” takes your $path and your $dest, and does the building thing.
  • builtUsing() β€” no args, it just tells you what you built with.

Copyright Yadd <yadd@debian.org>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

On Debian systems, the complete text of version 2 of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. If not, see <http://www.gnu.org/licenses/>.

bestie that "WITHOUT ANY WARRANTY" bit is doing a lot of heavy lifting, do not skip it, it's fr fr the whole point πŸ’€

that's the whole page!! ty for coming to my ted talk, this was perl v5.40.1, dated 2026-08-17, and you read it in the Debian...geLock(3pm) manual section. slay, go build your lockfiles, mwah πŸ“πŸ’–βœ¨

πŸ“¦ where this page comes from