How gristlabs/collect-js-deps works
collect-js-deps is a small Node.js utility that collects the files Browserify discovers for an entry point. Its CLI configures Browserify and attaches the collector; dependency rows are then listed or written, with needed parent package.json files copied alongside output. Browserify transforms can provide compiled files, including TypeScript output. The runtime is concentrated in index.js; the graph omits tests and build tooling.
Main entry points: index.js Dependency collector
Components 7
Other components
- CLI user
- CLI entry
index.js - Browserify
- Dependency collector
index.js - Parent manifests
index.js - List and files
index.js - Filesystem
Connections 8
- CLI user → CLI entry: provides arguments
README.md - CLI entry → Browserify: parses options
index.js - CLI entry → Dependency collector: attaches collector
index.js - Browserify → Dependency collector: emits dependency rows
index.js - Dependency collector → Parent manifests: checks parent packages
index.js - Dependency collector → List and files: lists or writes sources
index.js - Parent manifests → Filesystem: checks and copies manifests
index.js - List and files → Filesystem: writes or copies files
index.js