@shopify/cli 3.80.7 → 3.81.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dev-console/extensions/dev-console/assets/index-ohOjvIJh.js +64 -0
- package/dist/assets/dev-console/index.html +1 -1
- package/dist/assets/hydrogen/starter/.cursor/rules/cookbook-recipe-subscriptions.mdc +921 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +0 -35
- package/dist/assets/hydrogen/starter/app/components/AddToCartButton.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Footer.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Header.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductItem.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +6 -1
- package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/entry.client.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/entry.server.tsx +4 -9
- package/dist/assets/hydrogen/starter/app/lib/variants.ts +1 -1
- package/dist/assets/hydrogen/starter/app/root.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +4 -4
- package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +7 -1
- package/dist/assets/hydrogen/starter/app/routes/account.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +2 -7
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes.ts +2 -2
- package/dist/assets/hydrogen/starter/env.d.ts +2 -12
- package/dist/assets/hydrogen/starter/eslint.config.js +0 -2
- package/dist/assets/hydrogen/starter/package.json +12 -11
- package/dist/assets/hydrogen/starter/server.ts +5 -2
- package/dist/assets/hydrogen/starter/tsconfig.json +6 -18
- package/dist/assets/hydrogen/starter/vite.config.ts +24 -3
- package/dist/assets/hydrogen/tailwind/package.json +1 -4
- package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/layout.jsx +7 -1
- package/dist/assets/hydrogen/virtual-routes/routes/index.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/routes/subrequest-profiler.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/virtual-root-with-layout.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -1
- package/dist/{chunk-TNF6QFVZ.js → chunk-27MYZBXV.js} +28 -31
- package/dist/{chunk-63DIRIVX.js → chunk-2Y3UFXD6.js} +242 -216
- package/dist/{chunk-YQXBJZRZ.js → chunk-5CZUSVND.js} +2 -2
- package/dist/{chunk-TMYCLPMW.js → chunk-5LMBCQDG.js} +544 -336
- package/dist/{chunk-KGZTFG3M.js → chunk-5NWUTFCV.js} +3 -3
- package/dist/{chunk-JRAEVQWT.js → chunk-5OBLOY7U.js} +2 -2
- package/dist/{chunk-RJJFC36J.js → chunk-5RPSJUXQ.js} +28 -28
- package/dist/{chunk-5K4EFFDY.js → chunk-6CJ6BGWA.js} +9 -8
- package/dist/{chunk-OQ7ZCSZM.js → chunk-6GAIDVJR.js} +8 -6
- package/dist/{chunk-PJZWUPY4.js → chunk-6NGGBF47.js} +5 -5
- package/dist/{chunk-XZM7J5LL.js → chunk-ALHM5GST.js} +5 -5
- package/dist/{chunk-ECV2CLGW.js → chunk-B44H2P6E.js} +4 -4
- package/dist/{chunk-T6CKLCY3.js → chunk-B5JZHKPR.js} +3 -3
- package/dist/{chunk-IHC7Q4LY.js → chunk-CN7P6XXP.js} +4 -4
- package/dist/{chunk-TJM3YBLQ.js → chunk-CTFDRWUN.js} +15 -12
- package/dist/{chunk-HWRJLLWI.js → chunk-DDYH6337.js} +2 -2
- package/dist/{chunk-NY2OPNXU.js → chunk-E6T6HFSE.js} +5 -5
- package/dist/{chunk-CDBXAE2F.js → chunk-EG6MBBEN.js} +99 -11
- package/dist/{chunk-OWRPRJTD.js → chunk-FAITFLRX.js} +2 -2
- package/dist/{chunk-ZOUELNMC.js → chunk-GMFX4XJF.js} +3 -3
- package/dist/{chunk-2W6OLZFD.js → chunk-H37YPI3Y.js} +3 -3
- package/dist/{chunk-RJ4CN43L.js → chunk-I2M5KL5Z.js} +4 -4
- package/dist/{chunk-VYIBTTN2.js → chunk-JKKYVUPT.js} +3 -3
- package/dist/{chunk-QPXAGLXJ.js → chunk-JV3N43QW.js} +5 -5
- package/dist/{chunk-NSTNFY7W.js → chunk-KJXXNUND.js} +45 -23
- package/dist/{chunk-5AFYDRV4.js → chunk-LPU2VGJR.js} +42 -507
- package/dist/{chunk-KUZYMDX4.js → chunk-NEQJPNB5.js} +8 -8
- package/dist/{chunk-5YH5HMRM.js → chunk-NZVDI2PG.js} +3 -3
- package/dist/{chunk-W4ZWJMX2.js → chunk-O66CPW2Z.js} +2 -2
- package/dist/{chunk-PDNRVFZE.js → chunk-OU2VE5NL.js} +16 -11
- package/dist/{chunk-RFO2FC5M.js → chunk-PINTEIWG.js} +6 -6
- package/dist/{chunk-JDRMHPFL.js → chunk-PLXKIAXS.js} +4 -4
- package/dist/{chunk-MQCYR4KR.js → chunk-R7PQLQRT.js} +4 -4
- package/dist/{chunk-MSHN7O5N.js → chunk-SOZ33QZX.js} +2 -2
- package/dist/{chunk-LQ2ZKVR6.js → chunk-UMUTXITN.js} +87 -4
- package/dist/chunk-V67D4V7T.js +107 -0
- package/dist/{chunk-77RMKCKT.js → chunk-VANXFY34.js} +2 -2
- package/dist/chunk-W5G2YPO2.js +11805 -0
- package/dist/{chunk-3DYG3ZWU.js → chunk-WSP4T6BG.js} +3 -3
- package/dist/{chunk-JU6SOKDJ.js → chunk-X2GG47RT.js} +4 -4
- package/dist/{chunk-HYECXSZG.js → chunk-ZARNHYRC.js} +276 -77
- package/dist/cli/commands/auth/logout.js +16 -17
- package/dist/cli/commands/auth/logout.test.js +18 -19
- package/dist/cli/commands/cache/clear.js +15 -16
- package/dist/cli/commands/debug/command-flags.js +15 -16
- package/dist/cli/commands/docs/generate.js +15 -16
- package/dist/cli/commands/docs/generate.test.js +16 -17
- package/dist/cli/commands/help.js +15 -16
- package/dist/cli/commands/kitchen-sink/async.js +16 -17
- package/dist/cli/commands/kitchen-sink/async.test.js +17 -18
- package/dist/cli/commands/kitchen-sink/index.js +18 -19
- package/dist/cli/commands/kitchen-sink/index.test.js +19 -20
- package/dist/cli/commands/kitchen-sink/prompts.js +16 -17
- package/dist/cli/commands/kitchen-sink/prompts.test.js +17 -18
- package/dist/cli/commands/kitchen-sink/static.js +16 -17
- package/dist/cli/commands/kitchen-sink/static.test.js +17 -18
- package/dist/cli/commands/notifications/generate.js +16 -17
- package/dist/cli/commands/notifications/list.js +16 -17
- package/dist/cli/commands/search.js +16 -17
- package/dist/cli/commands/upgrade.js +16 -17
- package/dist/cli/commands/upgrade.test.js +1 -2
- package/dist/cli/commands/version.js +16 -17
- package/dist/cli/commands/version.test.js +17 -18
- package/dist/cli/services/commands/notifications.js +11 -12
- package/dist/cli/services/commands/search.js +7 -8
- package/dist/cli/services/commands/search.test.js +8 -9
- package/dist/cli/services/commands/version.js +8 -9
- package/dist/cli/services/commands/version.test.js +10 -11
- package/dist/cli/services/kitchen-sink/async.js +7 -8
- package/dist/cli/services/kitchen-sink/prompts.js +7 -8
- package/dist/cli/services/kitchen-sink/static.js +7 -8
- package/dist/cli/services/upgrade.js +8 -9
- package/dist/cli/services/upgrade.test.js +10 -11
- package/dist/{custom-oclif-loader-XTWWK7GM.js → custom-oclif-loader-7E5Z2M56.js} +7 -8
- package/dist/{del-YIU34DZ5.js → del-4JSTEFDW.js} +3 -3
- package/dist/{devtools-J4QAI6HR.js → devtools-LDCSRUXB.js} +4 -4
- package/dist/{error-handler-MIQWANES.js → error-handler-GHVJK7OK.js} +13 -14
- package/dist/hooks/postrun.js +11 -12
- package/dist/hooks/prerun.js +12 -13
- package/dist/{http-proxy-KGLXPNEY.js → http-proxy-LHSVRGJ5.js} +14 -10
- package/dist/index.js +153266 -162667
- package/dist/{lib-MIBR2T7P.js → lib-2ZBT3UR2.js} +5 -5
- package/dist/{local-OL4QQF7A.js → local-GLHD5LYH.js} +9 -14
- package/dist/{magic-string.es-BSVDQOZI.js → magic-string.es-UZAAPNRE.js} +42 -36
- package/dist/{morph-3VOLMA55.js → morph-DFRO3NRL.js} +10 -10
- package/dist/node-OFSPLONP.js +164 -0
- package/dist/{node-package-manager-YZ7SC7JY.js → node-package-manager-K7DEALW5.js} +8 -9
- package/dist/{out-5KP5WGIK.js → out-NKJPLKLB.js} +2 -2
- package/dist/{path-2K5HIMHZ.js → path-GB4VIEM6.js} +2 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-UMSB2BWG.js → ui-G7IYCY5T.js} +7 -10
- package/dist/{workerd-K4ZX64LQ.js → workerd-IDTCFUND.js} +18 -20
- package/oclif.manifest.json +29 -9
- package/package.json +10 -11
- package/dist/assets/dev-console/extensions/dev-console/assets/index-CqNhY1h-.js +0 -64
- package/dist/assets/hydrogen/starter/.cursor/rules/hydrogen-react-router.mdc +0 -52
- package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +0 -14
- package/dist/assets/hydrogen/starter/react-router.config.ts +0 -7
- package/dist/chunk-3I3GQNEW.js +0 -95
- package/dist/chunk-57Q6OQG4.js +0 -111
- package/dist/chunk-ZEM3T4UY.js +0 -10590
- package/dist/toml-patch-wasm-J5VGG6WG.js +0 -140
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packageManagerFromUserAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZARNHYRC.js";
|
|
4
4
|
import {
|
|
5
5
|
currentProcessIsGlobal,
|
|
6
6
|
inferPackageManagerForGlobalCLI,
|
|
7
7
|
outputContent,
|
|
8
8
|
outputToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2Y3UFXD6.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
cliInstallCommand,
|
|
26
26
|
getOutputUpdateCLIReminder
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-H37YPI3Y.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
findUpAndReadPackageJson,
|
|
5
5
|
getPackageManager,
|
|
6
6
|
usesWorkspaces
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZARNHYRC.js";
|
|
8
8
|
import {
|
|
9
9
|
AbortError,
|
|
10
10
|
exec,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
outputSuccess,
|
|
16
16
|
outputToken,
|
|
17
17
|
outputWarn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2Y3UFXD6.js";
|
|
19
19
|
import {
|
|
20
20
|
dirname,
|
|
21
21
|
joinPath,
|
|
22
22
|
moduleDirectory
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EG6MBBEN.js";
|
|
24
24
|
import {
|
|
25
25
|
init_cjs_shims
|
|
26
26
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -139,4 +139,4 @@ function usingPackageManager({ env } = { env: process.env }) {
|
|
|
139
139
|
export {
|
|
140
140
|
upgrade
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=chunk-
|
|
142
|
+
//# sourceMappingURL=chunk-I2M5KL5Z.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KJXXNUND.js";
|
|
4
4
|
import {
|
|
5
5
|
require_lib
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LPU2VGJR.js";
|
|
7
7
|
import {
|
|
8
8
|
__toESM,
|
|
9
9
|
init_cjs_shims
|
|
@@ -46,4 +46,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
|
|
|
46
46
|
export {
|
|
47
47
|
HelpCommand
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-JKKYVUPT.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
list
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ALHM5GST.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KJXXNUND.js";
|
|
7
7
|
import {
|
|
8
8
|
sendErrorToBugsnag
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OU2VE5NL.js";
|
|
10
10
|
import {
|
|
11
11
|
require_lib
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LPU2VGJR.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM,
|
|
15
15
|
init_cjs_shims
|
|
@@ -49,4 +49,4 @@ var List = class _List extends base_command_default {
|
|
|
49
49
|
export {
|
|
50
50
|
List
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=chunk-
|
|
52
|
+
//# sourceMappingURL=chunk-JV3N43QW.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandler,
|
|
3
3
|
registerCleanBugsnagErrorsFromWithinPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OU2VE5NL.js";
|
|
5
5
|
import {
|
|
6
6
|
setCurrentCommandId,
|
|
7
7
|
showNotificationsIfNeeded
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PINTEIWG.js";
|
|
9
9
|
import {
|
|
10
10
|
hashString
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-27MYZBXV.js";
|
|
12
12
|
import {
|
|
13
13
|
AbortError,
|
|
14
14
|
addPublicMetadata,
|
|
@@ -17,20 +17,20 @@ import {
|
|
|
17
17
|
isDevelopment,
|
|
18
18
|
isTruthy,
|
|
19
19
|
outputContent,
|
|
20
|
-
|
|
20
|
+
outputResult,
|
|
21
21
|
outputToken,
|
|
22
22
|
readFile,
|
|
23
23
|
renderInfo,
|
|
24
24
|
renderWarning,
|
|
25
25
|
terminalSupportsPrompting,
|
|
26
26
|
underscore
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2Y3UFXD6.js";
|
|
28
28
|
import {
|
|
29
29
|
cwd
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EG6MBBEN.js";
|
|
31
31
|
import {
|
|
32
32
|
require_lib
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-LPU2VGJR.js";
|
|
34
34
|
import {
|
|
35
35
|
__commonJS,
|
|
36
36
|
__require,
|
|
@@ -1515,29 +1515,40 @@ function encodeToml(content) {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
1517
1517
|
// ../cli-kit/dist/public/node/environments.js
|
|
1518
|
+
function renderWarningIfNeeded(message, silent) {
|
|
1519
|
+
silent || renderWarning(message);
|
|
1520
|
+
}
|
|
1518
1521
|
async function loadEnvironment(environmentName, fileName, options) {
|
|
1519
|
-
let
|
|
1520
|
-
cwd: basePath,
|
|
1521
|
-
type: "file"
|
|
1522
|
-
});
|
|
1522
|
+
let filePath = await environmentFilePath(fileName, options);
|
|
1523
1523
|
if (!filePath) {
|
|
1524
|
-
|
|
1524
|
+
renderWarningIfNeeded({ body: "Environment file not found." }, options?.silent);
|
|
1525
1525
|
return;
|
|
1526
1526
|
}
|
|
1527
1527
|
let environments = decodeToml(await readFile(filePath)).environments;
|
|
1528
1528
|
if (!environments) {
|
|
1529
|
-
|
|
1529
|
+
renderWarningIfNeeded({
|
|
1530
1530
|
body: ["No environments found in", { command: filePath }, { char: "." }]
|
|
1531
|
-
});
|
|
1531
|
+
}, options?.silent);
|
|
1532
1532
|
return;
|
|
1533
1533
|
}
|
|
1534
1534
|
let environment = environments[environmentName];
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1535
|
+
if (!environment) {
|
|
1536
|
+
renderWarningIfNeeded({
|
|
1537
|
+
body: ["Environment", { command: environmentName }, "not found."]
|
|
1538
|
+
}, options?.silent);
|
|
1539
|
+
return;
|
|
1540
|
+
}
|
|
1541
|
+
return await addSensitiveMetadata(() => ({
|
|
1538
1542
|
environmentFlags: JSON.stringify(environment)
|
|
1539
1543
|
})), environment;
|
|
1540
1544
|
}
|
|
1545
|
+
async function environmentFilePath(fileName, options) {
|
|
1546
|
+
let basePath = options?.from && options.from !== "." ? options.from : cwd();
|
|
1547
|
+
return findPathUp(fileName, {
|
|
1548
|
+
cwd: basePath,
|
|
1549
|
+
type: "file"
|
|
1550
|
+
});
|
|
1551
|
+
}
|
|
1541
1552
|
|
|
1542
1553
|
// ../cli-kit/dist/public/node/base-command.js
|
|
1543
1554
|
var import_core = __toESM(require_lib()), BaseCommand = class extends import_core.Command {
|
|
@@ -1572,7 +1583,7 @@ var import_core = __toESM(require_lib()), BaseCommand = class extends import_cor
|
|
|
1572
1583
|
}
|
|
1573
1584
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
1574
1585
|
exitWithTimestampWhenEnvVariablePresent() {
|
|
1575
|
-
isTruthy(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN) && (
|
|
1586
|
+
isTruthy(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN) && (outputResult(`
|
|
1576
1587
|
SHOPIFY_CLI_TIMESTAMP_START
|
|
1577
1588
|
{ "timestamp": ${Date.now()} }
|
|
1578
1589
|
SHOPIFY_CLI_TIMESTAMP_END
|
|
@@ -1596,17 +1607,28 @@ This flag is required in non-interactive terminal environments, such as a CI env
|
|
|
1596
1607
|
}
|
|
1597
1608
|
async resultWithEnvironment(originalResult, options, argv) {
|
|
1598
1609
|
let flags = originalResult.flags, environmentsFileName = this.environmentsFilename();
|
|
1599
|
-
if (!
|
|
1610
|
+
if (!environmentsFileName)
|
|
1611
|
+
return originalResult;
|
|
1612
|
+
let environmentFileExists = await environmentFilePath(environmentsFileName, { from: flags.path }), environments = flags.environment ?? [], environmentSpecified = environments.length > 0;
|
|
1613
|
+
if (!environmentFileExists && !environmentSpecified || environmentSpecified && environments.length > 1)
|
|
1600
1614
|
return originalResult;
|
|
1601
|
-
let environment = await
|
|
1615
|
+
let { environment, isDefaultEnvironment } = await this.loadEnvironmentForCommand(flags.path, environmentsFileName, environments[0]);
|
|
1602
1616
|
if (!environment)
|
|
1603
1617
|
return originalResult;
|
|
1604
1618
|
let noDefaultsResult = await super.parse(noDefaultsOptions(options), argv), result = await super.parse(options, [
|
|
1605
1619
|
// Need to specify argv default because we're merging with argsFromEnvironment.
|
|
1606
1620
|
...argv ?? this.argv,
|
|
1607
|
-
...argsFromEnvironment(environment, options, noDefaultsResult)
|
|
1621
|
+
...argsFromEnvironment(environment, options, noDefaultsResult),
|
|
1622
|
+
...isDefaultEnvironment ? ["--environment", "default"] : []
|
|
1608
1623
|
]);
|
|
1609
|
-
return reportEnvironmentApplication(noDefaultsResult.flags, result.flags, flags.environment[0], environment), result;
|
|
1624
|
+
return reportEnvironmentApplication(noDefaultsResult.flags, result.flags, isDefaultEnvironment ? "default" : flags.environment?.[0], environment), result;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Tries to load an environment to forward to the command. If no environment
|
|
1628
|
+
* is specified it will try to load a default environment.
|
|
1629
|
+
*/
|
|
1630
|
+
async loadEnvironmentForCommand(path, environmentsFileName, specifiedEnvironment) {
|
|
1631
|
+
return specifiedEnvironment ? { environment: await loadEnvironment(specifiedEnvironment, environmentsFileName, { from: path }), isDefaultEnvironment: !1 } : { environment: await loadEnvironment("default", environmentsFileName, { from: path, silent: !0 }), isDefaultEnvironment: !0 };
|
|
1610
1632
|
}
|
|
1611
1633
|
};
|
|
1612
1634
|
BaseCommand.baseFlags = {};
|
|
@@ -1665,4 +1687,4 @@ export {
|
|
|
1665
1687
|
loadEnvironment,
|
|
1666
1688
|
base_command_default
|
|
1667
1689
|
};
|
|
1668
|
-
//# sourceMappingURL=chunk-
|
|
1690
|
+
//# sourceMappingURL=chunk-KJXXNUND.js.map
|