{"id":19970197,"url":"https://github.com/webdeveric/sync-package-version","last_synced_at":"2026-01-05T00:11:01.718Z","repository":{"id":42712142,"uuid":"292929352","full_name":"webdeveric/sync-package-version","owner":"webdeveric","description":"Use your package.json version number in other files","archived":false,"fork":false,"pushed_at":"2024-09-07T20:44:05.000Z","size":415,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T20:04:40.713Z","etag":null,"topics":["package","sync","version"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@webdeveric/sync-package-version","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdeveric.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["webdeveric"]}},"created_at":"2020-09-04T19:21:58.000Z","updated_at":"2024-09-07T20:44:07.000Z","dependencies_parsed_at":"2024-02-07T21:44:27.310Z","dependency_job_id":"f7a232a9-7921-4c07-92f1-b5b60de1d602","html_url":"https://github.com/webdeveric/sync-package-version","commit_stats":{"total_commits":72,"total_committers":2,"mean_commits":36.0,"dds":0.01388888888888884,"last_synced_commit":"7aad3da78f748e492ca923018be669ceb3adf708"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fsync-package-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fsync-package-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fsync-package-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fsync-package-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdeveric","download_url":"https://codeload.github.com/webdeveric/sync-package-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252081841,"owners_count":21691776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["package","sync","version"],"created_at":"2024-11-13T02:53:30.487Z","updated_at":"2026-01-05T00:11:01.659Z","avatar_url":"https://github.com/webdeveric.png","language":"TypeScript","funding_links":["https://github.com/sponsors/webdeveric"],"categories":[],"sub_categories":[],"readme":"# @webdeveric/sync-package-version\n\n[![Node.js CI](https://github.com/webdeveric/sync-package-version/actions/workflows/node.js.yml/badge.svg)](https://github.com/webdeveric/sync-package-version/actions/workflows/node.js.yml)\n\n## Install\n\n```shell\nnpm i @webdeveric/sync-package-version -D\n```\n\n## Usage\n\n```json\n{\n  \"name\": \"YOUR-PACKAGE-NAME\",\n  \"version\": \"1.0.0\",\n  \"scripts\": {\n    \"version\": \"sync-package-version YOUR-JSON-FILE-HERE | xargs git add\"\n  }\n}\n```\n\nYou can specify a custom version to use if you don't want the `version` from `package.json`.\n\n```sh\nsync-package-version --package-version \"custom.version.here\" [files...]\n```\n\n### Commands\n\n#### `sync` (default)\n\n##### Options\n\n- `--package-version \u003cversion\u003e` - Provide your own version number\n- `--property-path \u003cpath\u003e` - The path to the property in the destination file where you want to store the version number\n- `--force` - Force a sync, ignoring destination data type\n\n## Local development\n\n```\nnpx corepack enable\npnpm install\npnpm build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fsync-package-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdeveric%2Fsync-package-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fsync-package-version/lists"}