Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 656 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 656 Bytes

syncmirror

Usage

use npx

sync single package

npx syncmirror -s @soybeanjs/cli

sync multi packages

npx syncmirror -s @soybeanjs/cli,@soybeanjs/eslint-config

use api

import { sync } from 'syncmirror'

// 1. sync single package
// if not provide the name, it will use the package.json name
sync();
// sync the package with name @soybeanjs/cli
sync('@soybeanjs/cli');

// 2. sync multi packages
sync(['@soybeanjs/cli', '@soybeanjs/eslint-config']);

// 3. with options
sync('@soybeanjs/cli', {
  cwd: process.cwd(),
  log: true,
  timeout: 1000 * 60,
});

help

npx syncmirror -h