Skip to content

Commit

Permalink
Support build.js target positional arguments (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonmg authored Mar 3, 2024
1 parent 5e85bc5 commit 74e726a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export async function main() {
};

const argv = process.argv.slice(2);
const {values: args} = parseArgs({args: argv, options: parseArgsConfigOptions});
const {values: args, positionals: targets} = parseArgs({args: argv, options: parseArgsConfigOptions, allowPositionals: true});

const dryRun = /** @type {boolean} */ (args.dryRun);
const dryRunBuildZip = /** @type {boolean} */ (args.dryRunBuildZip);
Expand All @@ -265,7 +265,7 @@ export async function main() {
const variantNames = /** @type {string[]} */ ((
argv.length === 0 || args.all ?
manifestUtil.getVariants().filter(({buildable}) => buildable !== false).map(({name}) => name) :
[]
targets
));
await build(buildDir, extDir, manifestUtil, variantNames, manifestPath, dryRun, dryRunBuildZip, yomitanVersion);
} finally {
Expand Down

0 comments on commit 74e726a

Please sign in to comment.