@pkg-tools/sync
v0.2.1
Published
A utility/tool for syncing packages
Downloads
3
Readme
@pkg-tools/sync
🚧 This package is in beta. 🚧
A code mirroring tool with typed configuration.
A CLI for mirroring code from a package in a monorepo to another repository.
Install
# w/ pnpm
pnpm add -D @pkg-tools/sync @pkg-tools/config
# w/ yarn
yarn add -D @pkg-tools/sync @pkg-tools/config
# w/ npm
npm install -D @pkg-tools/sync @pkg-tools/config
Usage
In your package.json
, you can use the exported cli sync
in your sync script e.g.
"scripts": {
"sync": "sync"
}
Configure
Define a pkg.config.ts
in the root of your package and add the following.
import { defineConfig } from "@pkg-tools/config";
export default defineConfig({
sync: {
//TBD
},
});