{"_id":"@bigfootds/godot-semver-updater","_rev":"2-61f7945bd47643d4f9831ffa5f092f1b","name":"@bigfootds/godot-semver-updater","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@bigfootds/godot-semver-updater","version":"0.0.1","keywords":["godot","semver","version","cli"],"author":{"name":"BigfootDS"},"license":"MIT","_id":"@bigfootds/godot-semver-updater@0.0.1","maintainers":[{"name":"alexstormwood","email":"alex@bigfootds.com"}],"homepage":"https://github.com/BigfootDS/pkg-godot-semver-updater#readme","bugs":{"url":"https://github.com/BigfootDS/pkg-godot-semver-updater/issues"},"bin":{"godot-semver-updater":"dist/cli.js"},"dist":{"shasum":"4316ae8f1cb41c15beabcb1689994bac0531ef67","tarball":"https://registry.npmjs.org/@bigfootds/godot-semver-updater/-/godot-semver-updater-0.0.1.tgz","fileCount":19,"integrity":"sha512-7UjAyv+5vFFuNHbqA1iTpIFKVbsNyFfakBgjK3MAMlwA6OIf1M00QM5/tDP8G0OvUonJD9avlCcVjMAVGmzP9A==","signatures":[{"sig":"MEQCICMSKUFBd+XgjG2G10jywqUitS6RruaMjhZGdwM0JgIFAiBfnBEVELViZefe71Rzw3h9lrdN9w7usCP4JSXqwxekiQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20627},"main":"./dist/index.js","type":"commonjs","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"02e913746a47798e70531658a48756055217f44b","scripts":{"test":"npm run build && node --test test/*.test.js","build":"tsc --project tsconfig.json","prepack":"npm run build","pack:check":"npm pack --dry-run"},"_npmUser":{"name":"alexstormwood","email":"alex@bigfootds.com"},"repository":{"url":"git+https://github.com/BigfootDS/pkg-godot-semver-updater.git","type":"git"},"_npmVersion":"11.17.0","description":"Update a Godot project's application version from Node.js or the command line.","directories":{},"_nodeVersion":"25.6.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^7.0.2","@types/node":"^24.13.3"},"_npmOperationalInternal":{"tmp":"tmp/godot-semver-updater_0.0.1_1787283747781_0.24522120121526014","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@bigfootds/godot-semver-updater","version":"0.0.2","description":"Update a Godot project's application version from Node.js or the command line.","license":"MIT","author":{"name":"BigfootDS"},"scripts":{"build":"tsc --project tsconfig.json","test":"npm run build && node --test test/*.test.js","pack:check":"npm pack --dry-run","prepack":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/BigfootDS/pkg-godot-semver-updater.git"},"type":"commonjs","bugs":{"url":"https://github.com/BigfootDS/pkg-godot-semver-updater/issues"},"homepage":"https://github.com/BigfootDS/pkg-godot-semver-updater#readme","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.js","default":"./dist/index.js"}},"bin":{"godot-semver-updater":"dist/cli.js"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"keywords":["godot","semver","version","cli"],"devDependencies":{"@types/node":"^24.13.3","typescript":"^7.0.2"},"engines":{"node":">=20"},"gitHead":"0eca5296b0e531ce1ee5352f3686a2a34bab266e","_id":"@bigfootds/godot-semver-updater@0.0.2","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-gnG8MLM1iwMeuKudY1bMIQVOuTZnEepnoDix/s1SzdWgX9g8wsf1PRtwpW7CZifYfuuZkK4C27OVoWRRKYfoRg==","shasum":"211974a4bbaffc86da0577c4f25ab9615dff005a","tarball":"https://registry.npmjs.org/@bigfootds/godot-semver-updater/-/godot-semver-updater-0.0.2.tgz","fileCount":19,"unpackedSize":21507,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bigfootds%2fgodot-semver-updater@0.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDAfb/iNOSeQdsDgCB6FH540uBkYYhikwPWWfhrLGxlpgIhAL3ChMnBwQnmDJtn73IFptsIykvPFneGQh/QnmJEgVix"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:17b0809a-4a7d-47f7-ab99-dc8cf53cdccc"}},"directories":{},"maintainers":[{"name":"alexstormwood","email":"alex@bigfootds.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/godot-semver-updater_0.0.2_1787285182935_0.6804291678047278"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-21T03:42:27.628Z","modified":"2026-08-21T04:06:23.608Z","0.0.1":"2026-08-21T03:42:27.921Z","0.0.2":"2026-08-21T04:06:23.083Z"},"bugs":{"url":"https://github.com/BigfootDS/pkg-godot-semver-updater/issues"},"author":{"name":"BigfootDS"},"license":"MIT","homepage":"https://github.com/BigfootDS/pkg-godot-semver-updater#readme","keywords":["godot","semver","version","cli"],"repository":{"type":"git","url":"git+https://github.com/BigfootDS/pkg-godot-semver-updater.git"},"description":"Update a Godot project's application version from Node.js or the command line.","maintainers":[{"name":"alexstormwood","email":"alex@bigfootds.com"}],"readme":"# Godot SemVer Updater\n\nUpdate a Godot project's `[application] config/version` value from Node.js or the command line.\n\n## Requirements\n\nNode.js 20 or later.\n\n## Command line\n\nRun the package without installing it globally:\n\n```sh\nnpx @bigfootds/godot-semver-updater --version 1.2.3\n```\n\nBy default it updates `project.godot` in the current directory. Use `--project` to specify a different file:\n\n```sh\nnpx @bigfootds/godot-semver-updater \\\n  --project path/to/project.godot \\\n  --version 1.2.3-beta.1\n```\n\nVersions are validated as [semantic versions](https://semver.org/) by default. Pass `--allow-non-semver` for a custom Godot version string, or `--dry-run` to inspect an update without changing the file.\n\nThis fits directly in a GitHub Actions workflow after Node is available:\n\n```yaml\n- uses: actions/setup-node@v5\n  with:\n    node-version: 20\n\n- run: npx @bigfootds/godot-semver-updater --version \"${{ github.ref_name }}\" --strip-leading-v\n```\n\nUse `--strip-leading-v` when Git tags follow the common `v1.2.3` convention. Use `--allow-non-semver` for a custom version format.\n\n## Library\n\n```ts\nimport { updateGodotProjectVersion } from \"@bigfootds/godot-semver-updater\";\n\nconst result = await updateGodotProjectVersion({\n  projectPath: \"project.godot\",\n  version: \"1.2.3\",\n});\n\nconsole.log(result.previousVersion, result.version);\n```\n\nThe updater preserves unrelated settings and line endings, adds the version when the `[application]` section exists but has no `config/version`, and can run without writing with `dryRun: true`.\n\n## Development\n\n```sh\nnpm ci\nnpm test\nnpm run pack:check\n```\n\n## Releases\n\nCD releases every conventional commit that reaches `main`; do not manually edit `package.json`'s version or create release tags. The highest-impact commit since the previous release determines the version:\n\n- `feat:` creates a minor release.\n- `type!:` or a `BREAKING CHANGE:` footer creates a major release.\n- Any other conventional commit type creates a patch release.\n\nThe workflow rejects a non-conventional commit that reaches `main`, commits the generated version, creates its `vX.Y.Z` tag and GitHub release, then publishes the package with npm Trusted Publishing. All feature work should use conventional commits and be merged into `main` through a pull request. If squash-merging, ensure the resulting squash commit (usually the pull request title) is conventional too.\n","readmeFilename":"README.md"}