How to use the nerdbank-gitversioning.setPackageVersion function in nerdbank-gitversioning

To help you get started, we’ve selected a few nerdbank-gitversioning examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AArnott / Nerdbank.Streams / src / nerdbank-streams / gulpfile.ts View on Github external
async function setPackageVersion() {
    // Stamp the copy of the NPM package in outDir, but use this
    // source directory as a reference for calculating the git version.
    await nbgv.setPackageVersion(outDir, ".");
}

nerdbank-gitversioning

Stamps your NPM packages with semver 2.0 compliant git commit specific version information.

MIT
Latest version published 10 days ago

Package Health Score

84 / 100
Full package analysis