https://github.com/web-acad/npm-bin-spread
Spread npm binaries over monorepo
https://github.com/web-acad/npm-bin-spread
monorepo npm
Last synced: about 2 months ago
JSON representation
Spread npm binaries over monorepo
- Host: GitHub
- URL: https://github.com/web-acad/npm-bin-spread
- Owner: Web-ACAD
- License: mit
- Created: 2018-05-03T12:34:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-04T12:50:58.000Z (about 8 years ago)
- Last Synced: 2025-08-09T00:10:37.062Z (10 months ago)
- Topics: monorepo, npm
- Language: TypeScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/@webacad/npm-bin-spread)
[](https://travis-ci.org/Web-ACAD/npm-bin-spread)
# WebACAD/NpmBinSpread
Tool for spreading node_modules binaries in monorepository.
If you can, use [lerna](https://lernajs.io/) instead.
## Installation
```bash
$ npm install --save-dev @webacad/npm-bin-spread
```
or with yarn
```bash
$ yarn add --dev @webacad/npm-bin-spread
```
## Run in postinstall
This package should run automatically after any `npm install` or `yarn install`.
Modify your root package.json:
```json
{
"scripts": {
"postinstall": "npm-bin-spread project-a project-b project-c"
}
}
```
The command above will automatically symlink all root npm binaries into `project-a`, `project-b` and `project-c`
directories.