New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

synccnpm

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synccnpm

## 安装与使用

latest
npmnpm
Version
1.2.0
Version published
Weekly downloads
8
-27.27%
Maintainers
0
Weekly downloads
 
Created
Source

auto sync cnpm

安装与使用

pnpm i synccnpm --D -w

使用命令 synccnpm 自动同步,可以集成到发布脚本中,也可以添加到 scripts 中

  "scripts": {
    "autosync": "synccnpm"
  },

monorepo

自动更新配置的 workspace 的第一个目录

packages:
  - 'packages/*'
  - 'examples/*'

"workspaces": [
    "packages/*",
    "examples/*"
],

会自动读取 cwd/packages 目录下的所有包,进行自动更新

package.json 中 "private": true, 会自动跳过更新

普通仓库

自动更新 package.json 中的 name

FAQs

Package last updated on 14 Feb 2025

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