From ce1c0292044756210a84b5fa5a1672f89d7590fa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 8 Nov 2023 13:09:11 -0600 Subject: [PATCH] [Backport 8.11] Fix arg-parsing issue in codegen script (#2069) Co-authored-by: Josh Mock --- .ci/make.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.ci/make.mjs b/.ci/make.mjs index 305f066e2..33627bab6 100644 --- a/.ci/make.mjs +++ b/.ci/make.mjs @@ -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) {