Dependabit Setup Guide
This guide describes how to set up and maintain the dependabit project.
Prerequisites
- Node.js >= 20.0.0
- pnpm >= 10.0.0
Initial Setup
Clone the repository:
bashgit clone https://github.com/pradeepmouli/dependabit.git cd dependabitInstall dependencies:
bashpnpm installBuild all packages:
bashpnpm run build
Local Development
Running Development Mode
Start all packages in development mode:
pnpm run devTesting
Run tests across all packages:
pnpm testRun tests with coverage:
pnpm run test:coverageRun tests in watch mode:
pnpm run test:watchLinting and Formatting
Check code quality:
pnpm run lintFix linting issues:
pnpm run lint:fixFormat code:
pnpm run formatCheck formatting:
pnpm run format:checkType Checking
Run TypeScript type checking:
pnpm run type-checkPackage Management
Adding a New Package
Create a new directory under
packages/:bashmkdir packages/my-packageInitialize with package.json following the existing structure (see other packages as examples)
Add to the monorepo by ensuring it's in the workspace (already configured via
packages/*)
Building Packages
Build all packages:
pnpm run buildBuild a specific package:
cd packages/my-package
pnpm run buildCleaning
Clean build artifacts:
pnpm run cleanClean everything including node_modules:
pnpm run clean:allFresh reinstall:
pnpm run freshGit Hooks
This project uses simple-git-hooks and lint-staged to run checks before commits. Hooks are automatically installed when you run pnpm install.
Troubleshooting
Build Errors
Try cleaning and rebuilding:
bashpnpm run clean pnpm run buildIf issues persist, do a fresh install:
bashpnpm run fresh
Test Failures
Ensure all packages are built:
pnpm run buildThen run tests:
pnpm testLinting Issues
Auto-fix issues where possible:
pnpm run lint:fix
pnpm run format