Skip to content

Commit

Permalink
Fix arg-parsing issue in codegen script (#2068)
Browse files Browse the repository at this point in the history
(cherry picked from commit b7b16d8)
  • Loading branch information
JoshMock authored and github-actions[bot] committed Nov 8, 2023
1 parent 20d7cab commit c4e43f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .ci/make.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ import assert from 'assert'
import { join } from 'desm'
import semver from 'semver'

// xz/globals loads minimist-parsed args as a global `argv`, but it
// interprets args like '8.10' as numbers and shortens them to '8.1'.
// so we have to import and configure minimist ourselves.
import minimist from 'minimist'
const argv = minimist(process.argv.slice(2), { string: ['_', 'task'] })
assert(typeof argv.task === 'string', 'Missing task parameter')

switch (argv.task) {
Expand Down

0 comments on commit c4e43f0

Please sign in to comment.