From 0b4c3cc46195d666ed69ceef0c4defd0b93cfa92 Mon Sep 17 00:00:00 2001 From: Adam Stone-Lord Date: Mon, 16 Oct 2023 13:57:16 -0400 Subject: [PATCH] chore: use env to override branch instead of cli arg (#28057) --- cli/scripts/build.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cli/scripts/build.js b/cli/scripts/build.js index 155a8a47a35e..a957f3e701b3 100644 --- a/cli/scripts/build.js +++ b/cli/scripts/build.js @@ -1,8 +1,6 @@ const _ = require('lodash') const path = require('path') const shell = require('shelljs') -const minimist = require('minimist') - const fs = require('../lib/fs') // grab the current version and a few other properties @@ -72,9 +70,7 @@ function makeUserPackageFile (branchName) { module.exports = makeUserPackageFile if (!module.parent) { - const args = minimist(process.argv) - - makeUserPackageFile(args.branch) + makeUserPackageFile(process.env.BRANCH) .catch((err) => { /* eslint-disable no-console */ console.error('Could not write user package file')