New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

cross-release-cli

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-release-cli

command line app for cross language bump utility

Source
npmnpm
Version
0.1.0-alpha.2
Version published
Weekly downloads
21
10.53%
Maintainers
1
Weekly downloads
 
Created
Source

Cross Release CLI

Usage

  • install through package manager
# pnpm
pnpm i cross-release -g

otherwise you can use you favorite package manager instead

# npm
npm i cross-release -g
# yarn
yarn add cross-release --global
  • add to your package.json
{
    "scripts": {
        "release": "cross-release"
    }
}
  • run release script
pnpm run release

Command line

shortlongdescriptiondefault
-m--mainMain project language e.g. java / javascript / rustfalse
-r--recursiveRun the command for each project in the workspacefalse
-d--dryDry runfalse
-D--dir [dir]Set working directoryproject root
-c--commitCommit current changesfalse
-p--pushPush the project to remotefalse
-t--tagCreate a tag for current versionfalse
-e--exclude [dir]Folders to exclude from search["node_modules", ".git"]
-y--yesAnswer yes to all promptsfalse

Configuration

You can specify various runtime settings by using the "package.json" file. Here are some examples that cover all the parameters:

{
    "...": "...",
    "cross-release": {
    // show the help message
        "showHelp": false,
        // show the version about cross-release
        "showVersion": false,
        "version": "",
        "isAllYes": false,
        "isDry": false,
        "isRecursive": false,
        "shouldCommit": false,
        "shouldPush": false,
        "shouldTag": false,
        // default exclude folders are `["node_modules", ".git"]`, your config will be append within it
        "excludes": ["path/to/exclude"],
        "dir": "/path/to/run",
        "commit": {
            // Whether to invoke git pre-commit and commit-msg hook
            "shouldVerify": true,
            // Whether to stage all un-staged files or stage only changed files
            "shouldStageAll": false,
            // the symbol '%s' will be replace to the version number that you specified
            "template": "chore: release v%s"
        },
        "push": {
            "shouldFollowTags": false
        }
    }
}

FAQs

Package last updated on 05 Sep 2024

Related posts