Skip to content

Commit

Permalink
fix: set inputs to not required
Browse files Browse the repository at this point in the history
  • Loading branch information
JPBM135 committed Jan 18, 2024
1 parent 506beee commit 5862910
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,15 @@ import { parseModulesToInstall } from './utils/parseModulesToInstall.js';
import { validateInputs, validatePolyfillNeeds } from './utils/validate.js';

export async function main() {
const IGNORE =
core
.getInput('ignored')
?.split(',')
.map((module) => module.trim())
.filter(Boolean) ?? [];
const IGNORE = core.getInput('ignored', { required: false, trimWhitespace: true })?.split(',').filter(Boolean) ?? [];
const INCLUDES =
core
.getInput('includes')
?.split(',')
.map((module) => module.trim())
.filter(Boolean) ?? [];
const SKIP_DEFAULTS = core.getBooleanInput('skip-defaults') ?? false;
core.getInput('includes', { required: false, trimWhitespace: true })?.split(',').filter(Boolean) ?? [];
const SKIP_DEFAULTS = core.getInput('skip-defaults')
? core.getBooleanInput('skip-defaults', {
required: false,
trimWhitespace: true,
})
: false;

try {
const platform = os.platform();
Expand Down

0 comments on commit 5862910

Please sign in to comment.