https://github.com/alcalzone/monopack
Like `npm pack` or `yarn pack`, but for entire monorepos
https://github.com/alcalzone/monopack
Last synced: 4 months ago
JSON representation
Like `npm pack` or `yarn pack`, but for entire monorepos
- Host: GitHub
- URL: https://github.com/alcalzone/monopack
- Owner: AlCalzone
- License: mit
- Created: 2022-09-19T21:08:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-31T05:47:19.000Z (almost 2 years ago)
- Last Synced: 2025-03-18T21:52:03.616Z (about 1 year ago)
- Language: TypeScript
- Size: 1.14 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# monopack
Like `npm pack` or `yarn pack`, but for entire monorepos.
This works by editing the `package.json` files in the resulting tarballs so that they reference each other.
## Usage
Run this inside the root of your monorepo:
```sh
npx @alcalzone/monopack [--target ] [--no-version] [--absolute]
```
To specify a target directory, use the `--target` flag. By default, the tarballs will be created in the `.monopack` directory.
By default, the package version will be included in the tarball name. To disable this, use the `--no-version` flag.
To reference the dependency tarballs using absolute paths (`file:/path/to/dependency.tgz`) instead of relative paths (`file:../dependency.tgz`), use the `--absolute` flag. This may be necessary for some `yarn` versions that don't resolve the referenced tarballs correctly. Note that the tarballs CANNOT be moved when doing this.