Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-pkg

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-pkg

npm包辅助工具

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cli-pkg

通过编程式api完成npm包的发布、git release、git tag的自动生成

安装

yarn add cli-pkg

参数说明

属性名说明类型可选值默认值
runAt日志打印的前缀string--cli-pkg
pkgName设置仅当package.json中的name与此匹配时执行脚本string----
registrynpm包发布的地址string--https://registry.npmjs.org/
firstCall调度顺序string见下"createTag"
packageManage执行命令的包管理器string"pnpm""yarn"
allowedBranch限制执行脚本的分支array--["main"]
ignoreGitChangeFiles设置跳过git clean检查的文件array--["yarn.lock","package-lock.json","pnpm-lock.yaml","yarn-error.log",]

编程接口

  • createRelease

  • createTag

  • publishNpm

生命周期

  • config

  • success

  • before:publish

  • after:publish

  • before:tag

  • after:tag

  • before:release

  • after:release

代码参考

unplugin-router中,实现的流程为:先发布npm,再创建git tag,最后生成git release

演示效果

Keywords

FAQs

Package last updated on 05 Jun 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc