modlock-npm

command
v0.1.96 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command modlock-npm assembles the npm packages of a Modlock release, in the layout esbuild uses: one package per system holding that system's command line, and @modlock/modlock, which holds the TypeScript library and its declarations and a launcher that runs the command line npm installed for the system it runs on. @modlock/create starts a mod with npm create @modlock:

modlock-npm -version v0.2.0 -dist dist -library js/built -out dist/npm

-dist holds the release's command lines, named modlock-<os>-<arch>, and -library the built library. Each package goes in its own directory under -out, named after the package without its scope, ready for npm publish; publish the system packages before @modlock/modlock, which depends on them, and @modlock/create after it.

npm refuses the unscoped name modlock as too close to another package's. Mods still import modlock: the command line writes the declarations there.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL