-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.js
More file actions
16 lines (15 loc) · 788 Bytes
/
index.js
File metadata and controls
16 lines (15 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
* Entrypoint for modules access to the bumper function.
*
* source: Source for the bump, any semver string or 'git' to fetch from tags. Defaults to 'git'.
* path: When source is 'git', path of the git repository. Defaults to './'.
* bump: Target bump, 'major' | 'minor' | 'patch' | 'auto'. Defaults to 'auto' which can only be used with a 'git' source.
* label: Development iteration build label. Defaults to '-dev'.
*
* @param {{source: string, path: string, bump: string, label: string}} opts options to configure bumper
* @returns {Promise<{current: string, bump: string, next: string, dev: string}>}
*/
import { bumper as bmpr } from "./bumper.js"
export async function bumper (opts) {
return bmpr({source: 'git', path: './', bump: 'auto', label: '-dev', ...opts})
}