Skip to content

patrykzurawik/meta-bump

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meta-bump

Bump plugin for meta. It will:

  • bump provided package with provided version (in it's package.json) and add Git tag
  • update appropriate consumer packages package.json files with new Git tag version and regenerate yarn.lock/package-lock.json

Usage

Given that your shared dependency definition looks like e.g.

.meta

{
  "projects": {
    "shared-package": "git@github.com:meta-project/shared-package.git",
    "consumer-package": "git@github.com:meta-project/consumer-package.git"
  }
}

package.json in e.g. consumer-package

"dependencies": {
    "shared-package": "git+ssh://git@github.com:meta-project/shared-package.git#1.0.0"
}

You use meta bump-[yarn|npm] like this

➜  meta git:(master) ./bin/meta bump-[yarn|npm]

  Usage: meta bump-[yarn|npm] [options] [command]


  Commands:

    bump-yarn PROJECT_NAME   bump given version of specified package in meta and child repositories using yarn
    bump-npm PROJECT_NAME    bump given version of specified package in meta and child repositories using npm
    help [cmd]               display help for [cmd]

  Options:

    -h, --help  output usage information

e.g. meta bump-yarn shared-package

Example meta repository

https://github.com/karol-f/meta-repository

About

yarn plugin for meta

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.4%
  • Shell 8.6%