This repo hold many of my nodejs packages in one place for ease of management.
- Node.js ≥ 8.9.0
- Satisfies package requirements
- UNIX-like environment (Linux, macOS, FreeBSD, etc.)
- Package manager that supports monorepo: pnpm (Recommened), yarn
pnpm recursive linkyarn # or yarn installMost scripts are available in package.json's scripts object but some are only available through pnpx/yarn exec.
In the following section, pnpm run/yarn run is alternative to npm run, pnpx/yarn exec is alternative to npx.
Normal tests:
pnpm testUpdate jest snapshots:
pnpm test -- -uRun TypeScript check:
pnpm run type-checkpnpm run clean-typescript-buildpnpm run generate-npmignoreCheck for mismatched local packages' version:
pnpm run mismatched-versionsUpdate mismatches local packages' versions:
pnpx nested-wrkspc.prv verman mismatches -u .Check for outdated packages:
pnpx nested-wrkspc.prv depman outdated .Update outdated packages:
pnpx nested-wrkspc.prv depman outdated -u .
pnpm recursive link # or yarn install- CLI subcommand
publishin packagenested-workspace-helper: Cannot mock npm registry in CLI environment. - CLI subcommand
dependency-management outdatedin packagenested-workspace-helper: Cannot mock npm registry in CLI environment. - Entire package
git-ts: It's too complicated to create a test friendly git repo. - Most of
random-org-http: Testing over network is complicated.