@damatjs/cli-support
v1.0.6
Published
Shared Damat CLI process and package-install helpers
Readme
@damatjs/cli-support
Shared Damat-specific helpers used by independent CLI capability packages.
This package owns system Git detection and best-effort scaffold repository
initialization, Bun type-check execution, best-effort
temporary-file cleanup, and safe bun add argument construction.
Type-check execution uses bun run tsc --noEmit from the target project, so it
selects the installed project-local TypeScript compiler without registry lookup.
It also owns reusable PostgreSQL creation options, URL validation, and terminal
prompts. Password and full-URL input are not echoed by the interactive prompt.
It also adapts CLI contexts to the headless installer: origin and registry
resolution, command/fetch ports, runtime flags, modes, package backends, and
capability target overrides.
Repeated --target capability=path values arrive as an ordered array while a
single value remains scalar; duplicate capabilities resolve to the last path.
import {
invalidPackageSpecs,
installPackages,
originFromArgument,
createInstallerPorts,
createInstallerRuntime,
databaseSetupOptions,
parseGitSource,
requireGit,
resolveDatabaseSelection,
runTypeCheck,
} from "@damatjs/cli-support";Logger inputs use the structural CliLogger contract. The package does not
depend on Damat's logger implementation or any capability package.
