Skip to content

Commit 84ae999

Browse files
committed
fix(build): correct bump_targets parsing
- Changed `JSON.parse` to `core.getInput` - Prevents errors with empty inputs
1 parent 4241ce8 commit 84ae999

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Author: Taj <[email protected]>
77
* Homepage: https://github.com/taj54/universal-version-bump#readme
88
* License: MIT
9-
* Generated on Sat, 30 Aug 2025 13:47:30 GMT
9+
* Generated on Sat, 30 Aug 2025 13:50:05 GMT
1010
*/
1111
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
1212
/******/ var __webpack_modules__ = ({
@@ -32673,7 +32673,7 @@ exports.RELEASE_TYPE = (core.getInput('release_type') || 'patch');
3267332673
exports.TARGET_PLATFORM = core.getInput('target_platform');
3267432674
exports.GIT_TAG = core.getInput('git_tag') === 'true';
3267532675
exports.TARGET_PATH = core.getInput('target_path') || '.';
32676-
exports.BUMP_TARGETS = JSON.parse(core.getInput('bump_targets') || '[]');
32676+
exports.BUMP_TARGETS = core.getInput('bump_targets') || '[]';
3267732677

3267832678

3267932679
/***/ }),

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ export const RELEASE_TYPE = (core.getInput('release_type') || 'patch') as semver
55
export const TARGET_PLATFORM = core.getInput('target_platform');
66
export const GIT_TAG = core.getInput('git_tag') === 'true';
77
export const TARGET_PATH = core.getInput('target_path') || '.';
8-
export const BUMP_TARGETS = JSON.parse(core.getInput('bump_targets') || '[]');
8+
export const BUMP_TARGETS = core.getInput('bump_targets') || '[]';

0 commit comments

Comments
 (0)