Registry / devops / dependent-build

dependent-build

JSON →
library0.1.6jsnpmunverified

Configures multi-project dependency builds to ensure downstream projects are not broken. Version 0.1.6 is an early-stage (pre-1.0) tool that reads a YAML configuration file and triggers dependent project builds, typically in CI pipelines. It targets small repositories and enforces an order of builds when dependencies change. Only supports Node >= 4. The API and configuration format may change.

npm install dependent-build
INSTALL
IMPORT
SIG · DEPENDENT-BUILD
D
dependent-build
devopsjavascriptv0.1.6
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dependentBuild
✓ import { dependentBuild } from 'dependent-build'
✗ const dependentBuild = require('dependent-build')
The package does not export a default. The named export 'dependentBuild' is the main function.
default
✓ import { dependentBuild } from 'dependent-build'
✗ import dependentBuild from 'dependent-build'
No default export exists. Use named import.
run
✓ import { run } from 'dependent-build'
✗ const run = require('dependent-build').run
'run' is another named export for programmatic execution.

Shows programmatic usage: import named function, call with options, and handle promise resolution.

import { dependentBuild } from 'dependent-build'; // Configuration example (dependent-build.yml): // projects: // - name: lib-a // depends: // - lib-b // - name: lib-c // depends: // - lib-a // - lib-b dependentBuild({ config: 'dependent-build.yml', cwd: process.cwd(), silent: false }).then(() => { console.log('Build order resolved and triggered'); }).catch(err => { console.error('Build failed:', err); });
dependent-build --version
Debug
Known issues
breakingConfiguration format and API may change without warning in future versions.
fix
Pin to a specific minor version (e.g., 0.1.x) and test upgrades.
affects: <1.0.0
deprecatedNo deprecated features documented yet.
gotchaOnly supports Node >= 4. If CI matrix includes older Node versions, builds will fail.
fix
Use node-version-check to skip dependent-build on older Node versions.
affects: >=0
breakingYAML configuration file must exist at the project root; otherwise, the tool throws an error.
fix
Create a 'dependent-build.yml' file or provide custom path via options.
affects: *
Errors
Common errors & fixes
Error: Cannot find module 'js-yaml'
Missing dependency js-yaml when using dependent-build programmatically without installing it.
fix
Run 'npm install js-yaml' as the package declares it as a peer dependency.
dependent-build: config file not found: dependent-build.yml
Configuration file is missing or not located at the expected path.
fix
Ensure a 'dependent-build.yml' file exists in the root directory or pass a custom 'config' path.
dependent-build: Project 'X' dependency cycle detected
Circular dependency in the YAML configuration (e.g., A depends on B, B depends on A).
fix
Remove circular dependency by restructuring project dependencies.
Upgrade
Version history
0.1.6latest on npm
Audit
Dependencies
js-yamlrequiredparsing YAML configuration file
minimistrequiredcommand-line argument parsing
Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
dependent-build — npm install dependent-build · libregistry