Socket
Book a DemoInstallSign in
Socket

@fmfe/psync

Package Overview
Dependencies
Maintainers
15
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fmfe/psync

Replace npm link or yarn link

latest
npmnpm
Version
0.0.4
Version published
Maintainers
15
Created
Source

介绍

有了 Psync,你可以放弃使用 npm link 或者 yarn link,你只需要配置你的开发目录,程序自动为你同步包。注意,需要你的电脑支持 rsync

原理

Psync 会自动分析你指定的目录的所有 package.json 文件的 name,和 node_modules 目录下的 package.json 文件的 name 进行依赖关联,在文件改动时,自动帮你更新。

安装

    npm install -g @fmfe/psync

快速开始

# 指定一个文件夹
psync --dir=/Volumes/dev/followme/5.0
# 指定多个文件夹
psync --dir=/Volumes/dev/followme/5.0 --dir=/Volumes/dev/followme/6.0

配置文件

也可以在项目下创建配置文件:sync.config.json

{
    "folders": ["/Volumes/dev/followme/5.0"]
}

在当前目录下运行:psync

Keywords

npm link

FAQs

Package last updated on 18 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts