https://github.com/hrsh7th/node-monores
monorepo scripts.
https://github.com/hrsh7th/node-monores
Last synced: about 1 month ago
JSON representation
monorepo scripts.
- Host: GitHub
- URL: https://github.com/hrsh7th/node-monores
- Owner: hrsh7th
- Created: 2022-01-20T07:55:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T09:48:59.000Z (about 1 year ago)
- Last Synced: 2025-07-11T12:55:13.360Z (3 months ago)
- Language: TypeScript
- Size: 172 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
monores
=====Monorepo management scripts.
Usage
=====```ts
import { getPackages, getRootPackage, updatePackageVersion, } from 'monores';// Update test command only `apps` packages..
getPackages('apps/*').forEach(p => {
const scripts = p.packageJson.scripts ?? {};
scripts.test = 'jest --passWithNoTests';
p.writePackageJson();
});// Update versions (like lerna's fixed versioning.)
getPackages().forEach(p => {
updatePackageVersion(p, getRootPackage().packageJson.version);
});
writePackageJsons();
```