@webdeveric/sync-package-version

0.4.3 • Public • Published

@webdeveric/sync-package-version

Node.js CI

Install

npm i @webdeveric/sync-package-version -D

Usage

{
  "name": "YOUR-PACKAGE-NAME",
  "version": "1.0.0",
  "scripts": {
    "version": "sync-package-version YOUR-JSON-FILE-HERE | xargs git add"
  }
}

You can specify a custom version to use if you don't want the version from package.json.

sync-package-version --package-version "custom.version.here" [files...]

Commands

sync (default)

Options
  • --package-version <version> - Provide your own version number
  • --property-path <path> - The path to the property in the destination file where you want to store the version number
  • --force - Force a sync, ignoring destination data type

Local development

npx corepack enable
pnpm install
pnpm build

Package Sidebar

Install

npm i @webdeveric/sync-package-version

Weekly Downloads

1

Version

0.4.3

License

MIT

Unpacked Size

7.23 kB

Total Files

4

Last publish

Collaborators

  • webdeveric