@geekmidas/cli 10.0.0-alpha.172 → 10.0.0-alpha.174
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/{GoDaddyProvider-CIhg_ymt.mjs → GoDaddyProvider-BxQYQT7E.mjs} +2 -2
- package/dist/{GoDaddyProvider-CIhg_ymt.mjs.map → GoDaddyProvider-BxQYQT7E.mjs.map} +1 -1
- package/dist/{GoDaddyProvider-BLCCgWNA.cjs → GoDaddyProvider-gn-UeZl_.cjs} +7 -7
- package/dist/{GoDaddyProvider-BLCCgWNA.cjs.map → GoDaddyProvider-gn-UeZl_.cjs.map} +1 -1
- package/dist/{HostingerProvider-BOFzH5JM.mjs → HostingerProvider-B-FP4-z6.mjs} +2 -2
- package/dist/{HostingerProvider-BOFzH5JM.mjs.map → HostingerProvider-B-FP4-z6.mjs.map} +1 -1
- package/dist/{HostingerProvider-BUBeLZFT.cjs → HostingerProvider-znlxfl_p.cjs} +4 -4
- package/dist/{HostingerProvider-BUBeLZFT.cjs.map → HostingerProvider-znlxfl_p.cjs.map} +1 -1
- package/dist/{LegacyStateStore-CrkjCaSU.mjs → LegacyStateStore-Bds2IJbE.mjs} +2 -2
- package/dist/{LegacyStateStore-CrkjCaSU.mjs.map → LegacyStateStore-Bds2IJbE.mjs.map} +1 -1
- package/dist/{LegacyStateStore-CLuyua0d.cjs → LegacyStateStore-bS6W95Cq.cjs} +2 -2
- package/dist/{LegacyStateStore-CLuyua0d.cjs.map → LegacyStateStore-bS6W95Cq.cjs.map} +1 -1
- package/dist/{LocalStateStore-Bu1mGMUv.cjs → LocalStateStore-DN0_SCii.cjs} +2 -2
- package/dist/{LocalStateStore-Bu1mGMUv.cjs.map → LocalStateStore-DN0_SCii.cjs.map} +1 -1
- package/dist/{LocalStateStore-DV4jBo8p.mjs → LocalStateStore-Zvirfsr4.mjs} +2 -2
- package/dist/{LocalStateStore-DV4jBo8p.mjs.map → LocalStateStore-Zvirfsr4.mjs.map} +1 -1
- package/dist/{S3StateStore-kbkBod12.cjs → S3StateStore-Cs_ONSe7.cjs} +5 -5
- package/dist/{S3StateStore-kbkBod12.cjs.map → S3StateStore-Cs_ONSe7.cjs.map} +1 -1
- package/dist/{S3StateStore-B4FDrGY1.mjs → S3StateStore-CxNPJKqU.mjs} +4 -4
- package/dist/{S3StateStore-B4FDrGY1.mjs.map → S3StateStore-CxNPJKqU.mjs.map} +1 -1
- package/dist/{SSMStateStore-5MSu94ua.mjs → SSMStateStore-CK52ONQn.mjs} +2 -2
- package/dist/{SSMStateStore-5MSu94ua.mjs.map → SSMStateStore-CK52ONQn.mjs.map} +1 -1
- package/dist/{SSMStateStore-DbsAcN97.cjs → SSMStateStore-CzF_ghlT.cjs} +2 -2
- package/dist/{SSMStateStore-DbsAcN97.cjs.map → SSMStateStore-CzF_ghlT.cjs.map} +1 -1
- package/dist/{add-CLEIQtcF.mjs → add-D570rDKN.mjs} +5 -5
- package/dist/{add-CLEIQtcF.mjs.map → add-D570rDKN.mjs.map} +1 -1
- package/dist/{add-CB1o52l-.cjs → add-DD5bYU31.cjs} +7 -7
- package/dist/{add-CB1o52l-.cjs.map → add-DD5bYU31.cjs.map} +1 -1
- package/dist/{apps-CTyacCpW.cjs → apps-CIKiSUxH.cjs} +15 -13
- package/dist/apps-CIKiSUxH.cjs.map +1 -0
- package/dist/{apps-B4qOLFEC.mjs → apps-iHK70h_F.mjs} +11 -9
- package/dist/apps-iHK70h_F.mjs.map +1 -0
- package/dist/{bundler-Bma2_DTI.cjs → bundler-CMieQ_0t.cjs} +18 -10
- package/dist/bundler-CMieQ_0t.cjs.map +1 -0
- package/dist/{bundler-CSSYSsl8.mjs → bundler-Cdhf7lv3.mjs} +16 -8
- package/dist/bundler-Cdhf7lv3.mjs.map +1 -0
- package/dist/{cli-BFEuBKiU.mjs → cli-CcWMO_-0.mjs} +4 -4
- package/dist/{cli-BFEuBKiU.mjs.map → cli-CcWMO_-0.mjs.map} +1 -1
- package/dist/{cli-DXGl3fsc.cjs → cli-DHnkkrXz.cjs} +6 -6
- package/dist/{cli-DXGl3fsc.cjs.map → cli-DHnkkrXz.cjs.map} +1 -1
- package/dist/{compose-SSYHdZMN.mjs → compose-CFCSlSXx.mjs} +8 -8
- package/dist/{compose-SSYHdZMN.mjs.map → compose-CFCSlSXx.mjs.map} +1 -1
- package/dist/{compose-DpDrZwZS.cjs → compose-D8cd13Eo.cjs} +16 -16
- package/dist/{compose-DpDrZwZS.cjs.map → compose-D8cd13Eo.cjs.map} +1 -1
- package/dist/{compose-CANkT9bL.mjs → compose-DsFvWwAu.mjs} +5 -5
- package/dist/{compose-CANkT9bL.mjs.map → compose-DsFvWwAu.mjs.map} +1 -1
- package/dist/{compose-BNWFrHHE.cjs → compose-SAxadQy7.cjs} +25 -25
- package/dist/{compose-BNWFrHHE.cjs.map → compose-SAxadQy7.cjs.map} +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/deploy/public.cjs +20 -20
- package/dist/deploy/public.cjs.map +1 -1
- package/dist/deploy/public.mjs +11 -11
- package/dist/{deploy-Qa7wXYS4.mjs → deploy-CyrHJ5tR.mjs} +13 -24
- package/dist/deploy-CyrHJ5tR.mjs.map +1 -0
- package/dist/{deploy-DHrbzHxT.cjs → deploy-DnkGdwUd.cjs} +54 -65
- package/dist/deploy-DnkGdwUd.cjs.map +1 -0
- package/dist/{destroy-CKuYg9JQ.mjs → destroy-C2VQEDji.mjs} +9 -9
- package/dist/{destroy-CKuYg9JQ.mjs.map → destroy-C2VQEDji.mjs.map} +1 -1
- package/dist/{destroy-CJ6wwQRQ.cjs → destroy-Qb0MuIV4.cjs} +24 -24
- package/dist/{destroy-CJ6wwQRQ.cjs.map → destroy-Qb0MuIV4.cjs.map} +1 -1
- package/dist/{credentials-DmNpxlFO.mjs → dns-BMtL2ytM.mjs} +123 -123
- package/dist/dns-BMtL2ytM.mjs.map +1 -0
- package/dist/{credentials-BAeWfaj3.cjs → dns-DSzsbU2g.cjs} +122 -122
- package/dist/dns-DSzsbU2g.cjs.map +1 -0
- package/dist/{docker-CrNWM0jN.mjs → docker-D89imkq2.mjs} +186 -13
- package/dist/docker-D89imkq2.mjs.map +1 -0
- package/dist/{docker-C9ObsT80.cjs → docker-aJbcdGKT.cjs} +220 -11
- package/dist/docker-aJbcdGKT.cjs.map +1 -0
- package/dist/{dokploy-C6KfcyOG.cjs → dokploy-DvG19W0p.cjs} +2 -2
- package/dist/{dokploy-C6KfcyOG.cjs.map → dokploy-DvG19W0p.cjs.map} +1 -1
- package/dist/{dokploy-DITW2LHL.mjs → dokploy-QAThjPQL.mjs} +2 -2
- package/dist/{dokploy-DITW2LHL.mjs.map → dokploy-QAThjPQL.mjs.map} +1 -1
- package/dist/{eas-BBwlSGd8.cjs → eas-DvKir935.cjs} +3 -3
- package/dist/{eas-BBwlSGd8.cjs.map → eas-DvKir935.cjs.map} +1 -1
- package/dist/{eas-BE7tu9eH.mjs → eas-VxFCgjQa.mjs} +3 -3
- package/dist/{eas-BE7tu9eH.mjs.map → eas-VxFCgjQa.mjs.map} +1 -1
- package/dist/{encryption-D0jmwRdU.cjs → encryption-D88IRxkV.cjs} +6 -6
- package/dist/{encryption-D0jmwRdU.cjs.map → encryption-D88IRxkV.cjs.map} +1 -1
- package/dist/{encryption-Bn_pIrIe.mjs → encryption-_GRjwxGO.mjs} +3 -3
- package/dist/{encryption-Bn_pIrIe.mjs.map → encryption-_GRjwxGO.mjs.map} +1 -1
- package/dist/{engine-BDqBychY.cjs → engine-7oDEgerp.cjs} +58 -58
- package/dist/{engine-BDqBychY.cjs.map → engine-7oDEgerp.cjs.map} +1 -1
- package/dist/{engine-Dv4SfML2.mjs → engine-CQfdAI92.mjs} +9 -9
- package/dist/{engine-Dv4SfML2.mjs.map → engine-CQfdAI92.mjs.map} +1 -1
- package/dist/{github-7vONG88-.mjs → github-BE-0zZ0H.mjs} +7 -7
- package/dist/{github-7vONG88-.mjs.map → github-BE-0zZ0H.mjs.map} +1 -1
- package/dist/{github-orgDU5Ta.cjs → github-CaUfjXXt.cjs} +16 -16
- package/dist/{github-orgDU5Ta.cjs.map → github-CaUfjXXt.cjs.map} +1 -1
- package/dist/{googlePlay-DOPEv_Uu.mjs → googlePlay-DrBrk6dZ.mjs} +4 -4
- package/dist/{googlePlay-DOPEv_Uu.mjs.map → googlePlay-DrBrk6dZ.mjs.map} +1 -1
- package/dist/{googlePlay-DWiYD2Up.cjs → googlePlay-FCJulaVY.cjs} +5 -5
- package/dist/{googlePlay-DWiYD2Up.cjs.map → googlePlay-FCJulaVY.cjs.map} +1 -1
- package/dist/{iam-FA95ku7l.cjs → iam-CGd_oEyz.cjs} +2 -2
- package/dist/{iam-FA95ku7l.cjs.map → iam-CGd_oEyz.cjs.map} +1 -1
- package/dist/{iam-BE0qX5Lb.mjs → iam-Cs2Ph5f2.mjs} +2 -2
- package/dist/{iam-BE0qX5Lb.mjs.map → iam-Cs2Ph5f2.mjs.map} +1 -1
- package/dist/index.cjs +204 -253
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +156 -205
- package/dist/index.mjs.map +1 -1
- package/dist/{local-Dx_1DLrj.cjs → local-BclGW_Zo.cjs} +3 -3
- package/dist/{local-Dx_1DLrj.cjs.map → local-BclGW_Zo.cjs.map} +1 -1
- package/dist/{local-s-ReaV9D.mjs → local-DbxB0Fg4.mjs} +2 -2
- package/dist/{local-s-ReaV9D.mjs.map → local-DbxB0Fg4.mjs.map} +1 -1
- package/dist/{migrate-83OqvIDr.mjs → migrate-C2Kjfwui.mjs} +3 -3
- package/dist/{migrate-83OqvIDr.mjs.map → migrate-C2Kjfwui.mjs.map} +1 -1
- package/dist/{migrate-BwKps39u.cjs → migrate-D2mp7qyM.cjs} +6 -6
- package/dist/{migrate-BwKps39u.cjs.map → migrate-D2mp7qyM.cjs.map} +1 -1
- package/dist/{migrate-rZPQE2lm.mjs → migrate-lidIEoZm.mjs} +5 -5
- package/dist/{migrate-rZPQE2lm.mjs.map → migrate-lidIEoZm.mjs.map} +1 -1
- package/dist/{migrate-BCnC1nUd.cjs → migrate-z_MuES4x.cjs} +6 -6
- package/dist/{migrate-BCnC1nUd.cjs.map → migrate-z_MuES4x.cjs.map} +1 -1
- package/dist/{notes-Chp3yhjU.cjs → notes-Cs0rVvlG.cjs} +3 -3
- package/dist/{notes-Chp3yhjU.cjs.map → notes-Cs0rVvlG.cjs.map} +1 -1
- package/dist/{notes-BvER-Te2.mjs → notes-Dw9BWRJP.mjs} +3 -3
- package/dist/{notes-BvER-Te2.mjs.map → notes-Dw9BWRJP.mjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/{projectBucket-BcbirdBj.cjs → projectBucket-BvcErpo0.cjs} +2 -2
- package/dist/{projectBucket-BcbirdBj.cjs.map → projectBucket-BvcErpo0.cjs.map} +1 -1
- package/dist/{projectBucket-BfE46Zj9.mjs → projectBucket-DHuBZDPJ.mjs} +2 -2
- package/dist/{projectBucket-BfE46Zj9.mjs.map → projectBucket-DHuBZDPJ.mjs.map} +1 -1
- package/dist/{publish-N7RjKFiU.cjs → publish-DzMQWBW8.cjs} +2 -2
- package/dist/{publish-N7RjKFiU.cjs.map → publish-DzMQWBW8.cjs.map} +1 -1
- package/dist/{publish-Cm7fGhl3.mjs → publish-yslBcYWN.mjs} +2 -2
- package/dist/{publish-Cm7fGhl3.mjs.map → publish-yslBcYWN.mjs.map} +1 -1
- package/dist/{resolve-Bjz8vr36.cjs → resolve-CQvEtM5c.cjs} +4 -4
- package/dist/{resolve-Bjz8vr36.cjs.map → resolve-CQvEtM5c.cjs.map} +1 -1
- package/dist/{resolve-BP-wvD7F.mjs → resolve-Dfind5fY.mjs} +4 -4
- package/dist/{resolve-BP-wvD7F.mjs.map → resolve-Dfind5fY.mjs.map} +1 -1
- package/dist/{rollback-C0QxGS7N.cjs → rollback-DUbm19zl.cjs} +9 -9
- package/dist/{rollback-C0QxGS7N.cjs.map → rollback-DUbm19zl.cjs.map} +1 -1
- package/dist/{rollback-OWocmLZ3.mjs → rollback-j8X0RdpU.mjs} +6 -6
- package/dist/{rollback-OWocmLZ3.mjs.map → rollback-j8X0RdpU.mjs.map} +1 -1
- package/dist/{s3-CQHYU8Iy.cjs → s3-Ba3WIaGU.cjs} +3 -3
- package/dist/{s3-CQHYU8Iy.cjs.map → s3-Ba3WIaGU.cjs.map} +1 -1
- package/dist/{s3-BrXDNOOi.mjs → s3-Bs1qUnxt.mjs} +3 -3
- package/dist/{s3-BrXDNOOi.mjs.map → s3-Bs1qUnxt.mjs.map} +1 -1
- package/dist/{serverSetup-DAXGkiFf.mjs → serverSetup-DUrSo7HL.mjs} +6 -6
- package/dist/{serverSetup-DAXGkiFf.mjs.map → serverSetup-DUrSo7HL.mjs.map} +1 -1
- package/dist/{serverSetup-DcyafYuO.cjs → serverSetup-Drh_mhxR.cjs} +8 -8
- package/dist/{serverSetup-DcyafYuO.cjs.map → serverSetup-Drh_mhxR.cjs.map} +1 -1
- package/dist/{sniffer-D6dwbd7L.mjs → sniffer-DgjWtfBW.mjs} +7 -7
- package/dist/{sniffer-D6dwbd7L.mjs.map → sniffer-DgjWtfBW.mjs.map} +1 -1
- package/dist/{sniffer-DpiPHtcR.cjs → sniffer-zsLNtFK0.cjs} +7 -7
- package/dist/{sniffer-DpiPHtcR.cjs.map → sniffer-zsLNtFK0.cjs.map} +1 -1
- package/dist/{snsSubscriptions-BVaZU0qQ.mjs → snsSubscriptions-BLfWAnzg.mjs} +5 -78
- package/dist/snsSubscriptions-BLfWAnzg.mjs.map +1 -0
- package/dist/{snsSubscriptions-CXpZqb-Y.cjs → snsSubscriptions-CGO6EO7H.cjs} +20 -111
- package/dist/snsSubscriptions-CGO6EO7H.cjs.map +1 -0
- package/dist/{sst-CglMlWMQ.mjs → sst-B2h4rE6j.mjs} +5 -5
- package/dist/{sst-CglMlWMQ.mjs.map → sst-B2h4rE6j.mjs.map} +1 -1
- package/dist/{sst-C0VMb3o0.cjs → sst-Bih36ADr.cjs} +7 -7
- package/dist/{sst-C0VMb3o0.cjs.map → sst-Bih36ADr.cjs.map} +1 -1
- package/dist/{stack-DKloCsy6.cjs → stack-D0CC6_b-.cjs} +162 -14
- package/dist/stack-D0CC6_b-.cjs.map +1 -0
- package/dist/{stack-DXHdVCsD.mjs → stack-DI4qbrtn.mjs} +141 -12
- package/dist/stack-DI4qbrtn.mjs.map +1 -0
- package/dist/{stage-CcsCwU8-.cjs → stage--Z6-pM9E.cjs} +8 -8
- package/dist/{stage-CcsCwU8-.cjs.map → stage--Z6-pM9E.cjs.map} +1 -1
- package/dist/{stage-BOOoPl_k.mjs → stage-C-qe-Lye.mjs} +6 -6
- package/dist/{stage-BOOoPl_k.mjs.map → stage-C-qe-Lye.mjs.map} +1 -1
- package/dist/{stages-D49CUpBY.cjs → stages-8izznWib.cjs} +2 -2
- package/dist/{stages-D49CUpBY.cjs.map → stages-8izznWib.cjs.map} +1 -1
- package/dist/{stages-CCAAe1tP.mjs → stages-QPWgbm9P.mjs} +2 -2
- package/dist/{stages-CCAAe1tP.mjs.map → stages-QPWgbm9P.mjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-Bc0XhkqW.cjs → terminal-CnhNSW3v.cjs} +5 -5
- package/dist/{terminal-Bc0XhkqW.cjs.map → terminal-CnhNSW3v.cjs.map} +1 -1
- package/dist/{terminal-D92VjzyD.mjs → terminal-DtO0Eh3g.mjs} +2 -2
- package/dist/{terminal-D92VjzyD.mjs.map → terminal-DtO0Eh3g.mjs.map} +1 -1
- package/dist/types-Bl_CwZC9.cjs.map +1 -1
- package/dist/types-Y1NfWlyG.mjs.map +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-B0PI9k9p.mjs → workspace-BBa1Ck5j.mjs} +16 -2
- package/dist/workspace-BBa1Ck5j.mjs.map +1 -0
- package/dist/{workspace-LR9DFjU8.cjs → workspace-DirP2-ed.cjs} +21 -7
- package/dist/workspace-DirP2-ed.cjs.map +1 -0
- package/package.json +15 -15
- package/dist/apps-B4qOLFEC.mjs.map +0 -1
- package/dist/apps-CTyacCpW.cjs.map +0 -1
- package/dist/bundler-Bma2_DTI.cjs.map +0 -1
- package/dist/bundler-CSSYSsl8.mjs.map +0 -1
- package/dist/credentials-BAeWfaj3.cjs.map +0 -1
- package/dist/credentials-DmNpxlFO.mjs.map +0 -1
- package/dist/deploy-DHrbzHxT.cjs.map +0 -1
- package/dist/deploy-Qa7wXYS4.mjs.map +0 -1
- package/dist/docker-C9ObsT80.cjs.map +0 -1
- package/dist/docker-CrNWM0jN.mjs.map +0 -1
- package/dist/snsSubscriptions-BVaZU0qQ.mjs.map +0 -1
- package/dist/snsSubscriptions-CXpZqb-Y.cjs.map +0 -1
- package/dist/stack-DKloCsy6.cjs.map +0 -1
- package/dist/stack-DXHdVCsD.mjs.map +0 -1
- package/dist/workspace-B0PI9k9p.mjs.map +0 -1
- package/dist/workspace-LR9DFjU8.cjs.map +0 -1
package/dist/config.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_errors = require("./errors-DMC4Umsb.cjs");
|
|
3
|
-
const require_workspace = require("./workspace-
|
|
3
|
+
const require_workspace = require("./workspace-DirP2-ed.cjs");
|
|
4
4
|
const require_schemas = require("./schemas-BQ_v0lEX.cjs");
|
|
5
5
|
const require_discover = require("./discover-39VKSE2i.cjs");
|
|
6
6
|
let node_path = require("node:path");
|
package/dist/config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
2
|
-
import { a as allConstructGlobs, b as isWorkspaceConfig, d as getAppGkmConfig, l as defineWorkspace, m as processConfig, st as derivedApps } from "./workspace-
|
|
2
|
+
import { a as allConstructGlobs, b as isWorkspaceConfig, d as getAppGkmConfig, l as defineWorkspace, m as processConfig, st as derivedApps } from "./workspace-BBa1Ck5j.mjs";
|
|
3
3
|
import { a as discriminatedUnion, c as literal, d as object, f as record, g as unknown, n as array, p as string } from "./schemas-BCwKKA42.mjs";
|
|
4
4
|
import { i as discover, l as runWorker, m as activeSandbox, y as output } from "./discover-B_PDDaVj.mjs";
|
|
5
5
|
import { dirname, join, parse, resolve, sep } from "node:path";
|
package/dist/deploy/public.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_errors = require("../errors-DMC4Umsb.cjs");
|
|
3
|
-
const
|
|
4
|
-
const require_workspace = require("../workspace-
|
|
5
|
-
const require_apps = require("../apps-
|
|
3
|
+
const require_dns = require("../dns-DSzsbU2g.cjs");
|
|
4
|
+
const require_workspace = require("../workspace-DirP2-ed.cjs");
|
|
5
|
+
const require_apps = require("../apps-CIKiSUxH.cjs");
|
|
6
6
|
const require_define = require("../define-crmMcXFS.cjs");
|
|
7
7
|
const require_discover = require("../discover-39VKSE2i.cjs");
|
|
8
8
|
const require_config = require("../config.cjs");
|
|
9
|
-
const require_resolve = require("../resolve-
|
|
10
|
-
const require_notes = require("../notes-
|
|
11
|
-
const require_local = require("../local-
|
|
12
|
-
const require_sniffer = require("../sniffer-
|
|
13
|
-
const require_deploy = require("../deploy-
|
|
9
|
+
const require_resolve = require("../resolve-CQvEtM5c.cjs");
|
|
10
|
+
const require_notes = require("../notes-Cs0rVvlG.cjs");
|
|
11
|
+
const require_local = require("../local-BclGW_Zo.cjs");
|
|
12
|
+
const require_sniffer = require("../sniffer-zsLNtFK0.cjs");
|
|
13
|
+
const require_deploy = require("../deploy-DnkGdwUd.cjs");
|
|
14
14
|
const require_seeds = require("../seeds-Bc3niNVb.cjs");
|
|
15
|
-
const require_engine = require("../engine-
|
|
16
|
-
const require_rollback = require("../rollback-
|
|
15
|
+
const require_engine = require("../engine-7oDEgerp.cjs");
|
|
16
|
+
const require_rollback = require("../rollback-DUbm19zl.cjs");
|
|
17
17
|
const require_provider = require("../provider-BqpjG9QM.cjs");
|
|
18
|
-
const require_sst = require("../sst-
|
|
18
|
+
const require_sst = require("../sst-Bih36ADr.cjs");
|
|
19
19
|
let node_path = require("node:path");
|
|
20
20
|
let node_fs = require("node:fs");
|
|
21
21
|
//#region src/sandbox/install.ts
|
|
@@ -135,15 +135,15 @@ async function installDependencies(sandbox, options = {}) {
|
|
|
135
135
|
...options.signal ? { signal: options.signal } : {}
|
|
136
136
|
});
|
|
137
137
|
results.push(result);
|
|
138
|
-
if (result.exitCode !== 0) throw new
|
|
138
|
+
if (result.exitCode !== 0) throw new require_dns.CommandFailed(command, args, result.exitCode, result.signal);
|
|
139
139
|
}
|
|
140
140
|
return results;
|
|
141
141
|
}
|
|
142
142
|
//#endregion
|
|
143
143
|
exports.AllowDevServicesTakesNoValue = require_notes.AllowDevServicesTakesNoValue;
|
|
144
144
|
exports.BackendDeployFailed = require_engine.BackendDeployFailed;
|
|
145
|
-
exports.CommandFailed =
|
|
146
|
-
exports.CommandTimedOut =
|
|
145
|
+
exports.CommandFailed = require_dns.CommandFailed;
|
|
146
|
+
exports.CommandTimedOut = require_dns.CommandTimedOut;
|
|
147
147
|
exports.ConfigLoadFailed = require_config.ConfigLoadFailed;
|
|
148
148
|
exports.ConfigObjectNotSerializable = require_config.ConfigObjectNotSerializable;
|
|
149
149
|
exports.ConstructDiscoveryFailed = require_discover.ConstructDiscoveryFailed;
|
|
@@ -157,7 +157,7 @@ exports.DeploymentTimedOut = require_sniffer.DeploymentTimedOut;
|
|
|
157
157
|
exports.DevServicesNeedServerTarget = require_notes.DevServicesNeedServerTarget;
|
|
158
158
|
exports.ExternalServicesNotConfigured = require_notes.ExternalServicesNotConfigured;
|
|
159
159
|
exports.FrontendDeployFailed = require_engine.FrontendDeployFailed;
|
|
160
|
-
exports.GKM_HOME_ENV =
|
|
160
|
+
exports.GKM_HOME_ENV = require_dns.GKM_HOME_ENV;
|
|
161
161
|
exports.HealthCheckTimedOut = require_engine.HealthCheckTimedOut;
|
|
162
162
|
exports.INSTALL_TIMEOUT_MS = INSTALL_TIMEOUT_MS;
|
|
163
163
|
exports.InstallAllowlistNameInvalid = InstallAllowlistNameInvalid;
|
|
@@ -165,7 +165,7 @@ exports.InstallScriptsAllowlistUnsupported = InstallScriptsAllowlistUnsupported;
|
|
|
165
165
|
exports.InvalidTargetOptions = require_resolve.InvalidTargetOptions;
|
|
166
166
|
exports.LocalSandbox = require_local.LocalSandbox;
|
|
167
167
|
exports.LocalStateInCi = require_sniffer.LocalStateInCi;
|
|
168
|
-
exports.MissingCredential =
|
|
168
|
+
exports.MissingCredential = require_dns.MissingCredential;
|
|
169
169
|
exports.MissingEnvVars = require_engine.MissingEnvVars;
|
|
170
170
|
exports.NoDeployableApps = require_deploy.NoDeployableApps;
|
|
171
171
|
exports.NothingToRollBack = require_rollback.NothingToRollBack;
|
|
@@ -199,13 +199,13 @@ exports.UnknownDeployApps = require_deploy.UnknownDeployApps;
|
|
|
199
199
|
exports.UnknownDeployTarget = require_define.UnknownDeployTarget;
|
|
200
200
|
exports.UnknownStageProvider = require_workspace.UnknownStageProvider;
|
|
201
201
|
exports.allowlistedEnv = require_local.allowlistedEnv;
|
|
202
|
-
exports.chainCredentials =
|
|
202
|
+
exports.chainCredentials = require_dns.chainCredentials;
|
|
203
203
|
exports.confineCwd = require_discover.confineCwd;
|
|
204
204
|
exports.deploy = require_deploy.deploy;
|
|
205
|
-
exports.deployIdentity =
|
|
206
|
-
exports.gkmHome =
|
|
205
|
+
exports.deployIdentity = require_dns.deployIdentity;
|
|
206
|
+
exports.gkmHome = require_dns.gkmHome;
|
|
207
207
|
exports.installDependencies = installDependencies;
|
|
208
208
|
exports.rollbackStage = require_rollback.rollbackStage;
|
|
209
|
-
exports.storedCredentials =
|
|
209
|
+
exports.storedCredentials = require_dns.storedCredentials;
|
|
210
210
|
|
|
211
211
|
//# sourceMappingURL=public.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.cjs","names":["GkmError","existsSync","join","detectPackageManager","resolve","CommandFailed"],"sources":["../../src/sandbox/install.ts"],"sourcesContent":["/**\n * Installing a project's dependencies in a sandbox, with or without their\n * lifecycle scripts.\n *\n * `postinstall` is the oldest way into a build machine: any package in the\n * lockfile — a dependency of a dependency — runs whatever it likes the moment\n * it is installed. For a build the host trusts that is how native modules get\n * built. For one it does not, the scripts are skipped, and the few packages\n * that genuinely need theirs (esbuild's binary, a database driver) are named\n * and rebuilt — with nothing but the sandbox's environment either way.\n */\n\nimport { existsSync } from 'node:fs';\nimport { join, resolve } from 'node:path';\nimport { detectPackageManager, type PackageManager } from '../docker/templates';\nimport { GkmError } from '../errors';\nimport { CommandFailed } from '../run';\nimport type { Sandbox, SandboxOutput, SandboxResult } from './sandbox';\n\n/** Long enough for a cold install of a large monorepo. */\nexport const INSTALL_TIMEOUT_MS = 15 * 60_000;\n\nexport interface InstallOptions {\n\t/** The directory to install in. Defaults to the sandbox's root. */\n\tcwd?: string;\n\t/** Defaults to the one the lockfile above `cwd` names. */\n\tpackageManager?: PackageManager;\n\t/**\n\t * Skip every lifecycle script — dependencies' and the project's own —\n\t * except those of {@link allowScripts}. Defaults to false: scripts run as\n\t * a plain install runs them, under the package manager's own policy —\n\t * npm 12 and pnpm 10 skip dependencies' scripts nobody approved.\n\t */\n\tignoreScripts?: boolean;\n\t/**\n\t * With `ignoreScripts`, the packages whose scripts still run: rebuilt by\n\t * name once the install is done.\n\t */\n\tallowScripts?: readonly string[];\n\t/** Variables the install needs beyond the sandbox's own. */\n\tenv?: Readonly<Record<string, string>>;\n\t/** Defaults to {@link INSTALL_TIMEOUT_MS}, for each command. */\n\ttimeoutMs?: number;\n\t/** Where the package manager's output goes. Defaults to `inherit`. */\n\toutput?: SandboxOutput;\n\tsignal?: AbortSignal;\n}\n\n/** A name in `allowScripts` that is not a package name. */\nexport class InstallAllowlistNameInvalid extends GkmError {\n\tconstructor(readonly packageName: string) {\n\t\tsuper(\n\t\t\t`'${packageName}' is not a package name, so its scripts cannot be ` +\n\t\t\t\t'allowed. Name the package as it appears in package.json — ' +\n\t\t\t\t\"'esbuild', '@prisma/client'.\",\n\t\t);\n\t\tthis.name = 'InstallAllowlistNameInvalid';\n\t}\n}\n\n/** The package manager has no way to run only some packages' scripts. */\nexport class InstallScriptsAllowlistUnsupported extends GkmError {\n\tconstructor(\n\t\treadonly packageManager: string,\n\t\treadonly allowScripts: readonly string[],\n\t) {\n\t\tsuper(\n\t\t\t`${packageManager} cannot rebuild named packages after an install ` +\n\t\t\t\t`without scripts, so ${allowScripts.join(', ')} cannot be allowed ` +\n\t\t\t\t'theirs. Use pnpm, npm or Yarn 2+, or install with every script ' +\n\t\t\t\t'skipped.',\n\t\t);\n\t\tthis.name = 'InstallScriptsAllowlistUnsupported';\n\t}\n}\n\n/**\n * npm's package-name grammar, less a leading `-`: each name is an argument to\n * `rebuild`, and must never be read as a flag.\n */\nconst PACKAGE_NAME = /^(?:@[a-z0-9~][a-z0-9._~-]*\\/)?[a-z0-9~][a-z0-9._~-]*$/;\n\n/**\n * The commands an install runs, in order. Exported for the tests, which\n * check each package manager's flags without installing with all four.\n */\nexport function installCommands(\n\tpackageManager: PackageManager,\n\tcwd: string,\n\toptions: Pick<InstallOptions, 'ignoreScripts' | 'allowScripts'> = {},\n): [string, string[]][] {\n\tconst ignore = options.ignoreScripts ?? false;\n\tconst allow = ignore ? [...(options.allowScripts ?? [])] : [];\n\tfor (const name of allow) {\n\t\tif (!PACKAGE_NAME.test(name)) throw new InstallAllowlistNameInvalid(name);\n\t}\n\n\tswitch (packageManager) {\n\t\tcase 'pnpm':\n\t\t\treturn [\n\t\t\t\t[\n\t\t\t\t\t'pnpm',\n\t\t\t\t\t[\n\t\t\t\t\t\t'install',\n\t\t\t\t\t\t'--frozen-lockfile',\n\t\t\t\t\t\t...(ignore ? ['--ignore-scripts'] : []),\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t// pnpm 10 builds no dependency it was not told to, even by name;\n\t\t\t\t// this command names exactly the ones allowed, so it may build\n\t\t\t\t// what it names.\n\t\t\t\t...(allow.length > 0\n\t\t\t\t\t? [\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t'pnpm',\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t'rebuild',\n\t\t\t\t\t\t\t\t\t'--config.dangerouslyAllowAllBuilds=true',\n\t\t\t\t\t\t\t\t\t...allow,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t] as [string, string[]],\n\t\t\t\t\t\t]\n\t\t\t\t\t: []),\n\t\t\t];\n\t\tcase 'npm': {\n\t\t\tconst locked = existsSync(join(cwd, 'package-lock.json'));\n\t\t\treturn [\n\t\t\t\t[\n\t\t\t\t\t'npm',\n\t\t\t\t\t[locked ? 'ci' : 'install', ...(ignore ? ['--ignore-scripts'] : [])],\n\t\t\t\t],\n\t\t\t\t// npm 12 runs no dependency's install script its `allowScripts`\n\t\t\t\t// policy does not approve, rebuilt by name or not, and refuses\n\t\t\t\t// `--allow-scripts` on a project's command line. This command\n\t\t\t\t// names exactly the packages allowed, so it may run what it names.\n\t\t\t\t...(allow.length > 0\n\t\t\t\t\t? [\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t'npm',\n\t\t\t\t\t\t\t\t['rebuild', '--dangerously-allow-all-scripts', ...allow],\n\t\t\t\t\t\t\t] as [string, string[]],\n\t\t\t\t\t\t]\n\t\t\t\t\t: []),\n\t\t\t];\n\t\t}\n\t\tcase 'yarn': {\n\t\t\t// Yarn 2+ keeps a `.yarnrc.yml`; it skips builds by mode and can\n\t\t\t// rebuild by name. Yarn 1 can only skip them all.\n\t\t\tconst berry = existsSync(join(cwd, '.yarnrc.yml'));\n\t\t\tif (berry) {\n\t\t\t\treturn [\n\t\t\t\t\t[\n\t\t\t\t\t\t'yarn',\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t'install',\n\t\t\t\t\t\t\t'--immutable',\n\t\t\t\t\t\t\t...(ignore ? ['--mode=skip-build'] : []),\n\t\t\t\t\t\t],\n\t\t\t\t\t],\n\t\t\t\t\t...(allow.length > 0\n\t\t\t\t\t\t? [['yarn', ['rebuild', ...allow]] as [string, string[]]]\n\t\t\t\t\t\t: []),\n\t\t\t\t];\n\t\t\t}\n\t\t\tif (allow.length > 0) {\n\t\t\t\tthrow new InstallScriptsAllowlistUnsupported('Yarn 1', allow);\n\t\t\t}\n\t\t\treturn [\n\t\t\t\t[\n\t\t\t\t\t'yarn',\n\t\t\t\t\t[\n\t\t\t\t\t\t'install',\n\t\t\t\t\t\t'--frozen-lockfile',\n\t\t\t\t\t\t...(ignore ? ['--ignore-scripts'] : []),\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t];\n\t\t}\n\t\tcase 'bun':\n\t\t\tif (allow.length > 0) {\n\t\t\t\tthrow new InstallScriptsAllowlistUnsupported('bun', allow);\n\t\t\t}\n\t\t\treturn [\n\t\t\t\t[\n\t\t\t\t\t'bun',\n\t\t\t\t\t[\n\t\t\t\t\t\t'install',\n\t\t\t\t\t\t'--frozen-lockfile',\n\t\t\t\t\t\t...(ignore ? ['--ignore-scripts'] : []),\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t];\n\t}\n}\n\n/**\n * Install the project's dependencies in `sandbox`.\n *\n * ```ts\n * // A checkout nobody has reviewed: no scripts but esbuild's.\n * await installDependencies(sandbox, {\n * ignoreScripts: true,\n * allowScripts: ['esbuild'],\n * });\n * ```\n *\n * Resolves with each command's result, in order — with its output when\n * `output` is `capture`.\n *\n * @throws {CommandFailed} when the package manager exits unsuccessfully.\n * @throws {InstallScriptsAllowlistUnsupported} for an allowlist the package\n * manager cannot honour, before anything is installed.\n */\nexport async function installDependencies(\n\tsandbox: Sandbox,\n\toptions: InstallOptions = {},\n): Promise<SandboxResult[]> {\n\tconst cwd = options.cwd ?? sandbox.root;\n\tconst results: SandboxResult[] = [];\n\tconst packageManager =\n\t\toptions.packageManager ?? detectPackageManager(resolve(sandbox.root, cwd));\n\n\tfor (const [command, args] of installCommands(\n\t\tpackageManager,\n\t\tresolve(sandbox.root, cwd),\n\t\toptions,\n\t)) {\n\t\tconst result = await sandbox.exec(command, args, {\n\t\t\tcwd,\n\t\t\tenv: { ...sandbox.env, ...options.env },\n\t\t\ttimeoutMs: options.timeoutMs ?? INSTALL_TIMEOUT_MS,\n\t\t\toutput: options.output ?? 'inherit',\n\t\t\t...(options.signal ? { signal: options.signal } : {}),\n\t\t});\n\t\tresults.push(result);\n\t\tif (result.exitCode !== 0) {\n\t\t\tthrow new CommandFailed(\n\t\t\t\tcommand,\n\t\t\t\targs,\n\t\t\t\tresult.exitCode,\n\t\t\t\tresult.signal as NodeJS.Signals | null,\n\t\t\t);\n\t\t}\n\t}\n\treturn results;\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"public.cjs","names":["GkmError","existsSync","join","detectPackageManager","resolve","CommandFailed"],"sources":["../../src/sandbox/install.ts"],"sourcesContent":["/**\n * Installing a project's dependencies in a sandbox, with or without their\n * lifecycle scripts.\n *\n * `postinstall` is the oldest way into a build machine: any package in the\n * lockfile — a dependency of a dependency — runs whatever it likes the moment\n * it is installed. For a build the host trusts that is how native modules get\n * built. For one it does not, the scripts are skipped, and the few packages\n * that genuinely need theirs (esbuild's binary, a database driver) are named\n * and rebuilt — with nothing but the sandbox's environment either way.\n */\n\nimport { existsSync } from 'node:fs';\nimport { join, resolve } from 'node:path';\nimport { detectPackageManager, type PackageManager } from '../docker/templates';\nimport { GkmError } from '../errors';\nimport { CommandFailed } from '../run';\nimport type { Sandbox, SandboxOutput, SandboxResult } from './sandbox';\n\n/** Long enough for a cold install of a large monorepo. */\nexport const INSTALL_TIMEOUT_MS = 15 * 60_000;\n\nexport interface InstallOptions {\n\t/** The directory to install in. Defaults to the sandbox's root. */\n\tcwd?: string;\n\t/** Defaults to the one the lockfile above `cwd` names. */\n\tpackageManager?: PackageManager;\n\t/**\n\t * Skip every lifecycle script — dependencies' and the project's own —\n\t * except those of {@link allowScripts}. Defaults to false: scripts run as\n\t * a plain install runs them, under the package manager's own policy —\n\t * npm 12 and pnpm 10 skip dependencies' scripts nobody approved.\n\t */\n\tignoreScripts?: boolean;\n\t/**\n\t * With `ignoreScripts`, the packages whose scripts still run: rebuilt by\n\t * name once the install is done.\n\t */\n\tallowScripts?: readonly string[];\n\t/** Variables the install needs beyond the sandbox's own. */\n\tenv?: Readonly<Record<string, string>>;\n\t/** Defaults to {@link INSTALL_TIMEOUT_MS}, for each command. */\n\ttimeoutMs?: number;\n\t/** Where the package manager's output goes. Defaults to `inherit`. */\n\toutput?: SandboxOutput;\n\tsignal?: AbortSignal;\n}\n\n/** A name in `allowScripts` that is not a package name. */\nexport class InstallAllowlistNameInvalid extends GkmError {\n\tconstructor(readonly packageName: string) {\n\t\tsuper(\n\t\t\t`'${packageName}' is not a package name, so its scripts cannot be ` +\n\t\t\t\t'allowed. Name the package as it appears in package.json — ' +\n\t\t\t\t\"'esbuild', '@prisma/client'.\",\n\t\t);\n\t\tthis.name = 'InstallAllowlistNameInvalid';\n\t}\n}\n\n/** The package manager has no way to run only some packages' scripts. */\nexport class InstallScriptsAllowlistUnsupported extends GkmError {\n\tconstructor(\n\t\treadonly packageManager: string,\n\t\treadonly allowScripts: readonly string[],\n\t) {\n\t\tsuper(\n\t\t\t`${packageManager} cannot rebuild named packages after an install ` +\n\t\t\t\t`without scripts, so ${allowScripts.join(', ')} cannot be allowed ` +\n\t\t\t\t'theirs. Use pnpm, npm or Yarn 2+, or install with every script ' +\n\t\t\t\t'skipped.',\n\t\t);\n\t\tthis.name = 'InstallScriptsAllowlistUnsupported';\n\t}\n}\n\n/**\n * npm's package-name grammar, less a leading `-`: each name is an argument to\n * `rebuild`, and must never be read as a flag.\n */\nconst PACKAGE_NAME = /^(?:@[a-z0-9~][a-z0-9._~-]*\\/)?[a-z0-9~][a-z0-9._~-]*$/;\n\n/**\n * The commands an install runs, in order. Exported for the tests, which\n * check each package manager's flags without installing with all four.\n */\nexport function installCommands(\n\tpackageManager: PackageManager,\n\tcwd: string,\n\toptions: Pick<InstallOptions, 'ignoreScripts' | 'allowScripts'> = {},\n): [string, string[]][] {\n\tconst ignore = options.ignoreScripts ?? false;\n\tconst allow = ignore ? [...(options.allowScripts ?? [])] : [];\n\tfor (const name of allow) {\n\t\tif (!PACKAGE_NAME.test(name)) throw new InstallAllowlistNameInvalid(name);\n\t}\n\n\tswitch (packageManager) {\n\t\tcase 'pnpm':\n\t\t\treturn [\n\t\t\t\t[\n\t\t\t\t\t'pnpm',\n\t\t\t\t\t[\n\t\t\t\t\t\t'install',\n\t\t\t\t\t\t'--frozen-lockfile',\n\t\t\t\t\t\t...(ignore ? ['--ignore-scripts'] : []),\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t\t// pnpm 10 builds no dependency it was not told to, even by name;\n\t\t\t\t// this command names exactly the ones allowed, so it may build\n\t\t\t\t// what it names.\n\t\t\t\t...(allow.length > 0\n\t\t\t\t\t? [\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t'pnpm',\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t'rebuild',\n\t\t\t\t\t\t\t\t\t'--config.dangerouslyAllowAllBuilds=true',\n\t\t\t\t\t\t\t\t\t...allow,\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t] as [string, string[]],\n\t\t\t\t\t\t]\n\t\t\t\t\t: []),\n\t\t\t];\n\t\tcase 'npm': {\n\t\t\tconst locked = existsSync(join(cwd, 'package-lock.json'));\n\t\t\treturn [\n\t\t\t\t[\n\t\t\t\t\t'npm',\n\t\t\t\t\t[locked ? 'ci' : 'install', ...(ignore ? ['--ignore-scripts'] : [])],\n\t\t\t\t],\n\t\t\t\t// npm 12 runs no dependency's install script its `allowScripts`\n\t\t\t\t// policy does not approve, rebuilt by name or not, and refuses\n\t\t\t\t// `--allow-scripts` on a project's command line. This command\n\t\t\t\t// names exactly the packages allowed, so it may run what it names.\n\t\t\t\t...(allow.length > 0\n\t\t\t\t\t? [\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t'npm',\n\t\t\t\t\t\t\t\t['rebuild', '--dangerously-allow-all-scripts', ...allow],\n\t\t\t\t\t\t\t] as [string, string[]],\n\t\t\t\t\t\t]\n\t\t\t\t\t: []),\n\t\t\t];\n\t\t}\n\t\tcase 'yarn': {\n\t\t\t// Yarn 2+ keeps a `.yarnrc.yml`; it skips builds by mode and can\n\t\t\t// rebuild by name. Yarn 1 can only skip them all.\n\t\t\tconst berry = existsSync(join(cwd, '.yarnrc.yml'));\n\t\t\tif (berry) {\n\t\t\t\treturn [\n\t\t\t\t\t[\n\t\t\t\t\t\t'yarn',\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t'install',\n\t\t\t\t\t\t\t'--immutable',\n\t\t\t\t\t\t\t...(ignore ? ['--mode=skip-build'] : []),\n\t\t\t\t\t\t],\n\t\t\t\t\t],\n\t\t\t\t\t...(allow.length > 0\n\t\t\t\t\t\t? [['yarn', ['rebuild', ...allow]] as [string, string[]]]\n\t\t\t\t\t\t: []),\n\t\t\t\t];\n\t\t\t}\n\t\t\tif (allow.length > 0) {\n\t\t\t\tthrow new InstallScriptsAllowlistUnsupported('Yarn 1', allow);\n\t\t\t}\n\t\t\treturn [\n\t\t\t\t[\n\t\t\t\t\t'yarn',\n\t\t\t\t\t[\n\t\t\t\t\t\t'install',\n\t\t\t\t\t\t'--frozen-lockfile',\n\t\t\t\t\t\t...(ignore ? ['--ignore-scripts'] : []),\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t];\n\t\t}\n\t\tcase 'bun':\n\t\t\tif (allow.length > 0) {\n\t\t\t\tthrow new InstallScriptsAllowlistUnsupported('bun', allow);\n\t\t\t}\n\t\t\treturn [\n\t\t\t\t[\n\t\t\t\t\t'bun',\n\t\t\t\t\t[\n\t\t\t\t\t\t'install',\n\t\t\t\t\t\t'--frozen-lockfile',\n\t\t\t\t\t\t...(ignore ? ['--ignore-scripts'] : []),\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t];\n\t}\n}\n\n/**\n * Install the project's dependencies in `sandbox`.\n *\n * ```ts\n * // A checkout nobody has reviewed: no scripts but esbuild's.\n * await installDependencies(sandbox, {\n * ignoreScripts: true,\n * allowScripts: ['esbuild'],\n * });\n * ```\n *\n * Resolves with each command's result, in order — with its output when\n * `output` is `capture`.\n *\n * @throws {CommandFailed} when the package manager exits unsuccessfully.\n * @throws {InstallScriptsAllowlistUnsupported} for an allowlist the package\n * manager cannot honour, before anything is installed.\n */\nexport async function installDependencies(\n\tsandbox: Sandbox,\n\toptions: InstallOptions = {},\n): Promise<SandboxResult[]> {\n\tconst cwd = options.cwd ?? sandbox.root;\n\tconst results: SandboxResult[] = [];\n\tconst packageManager =\n\t\toptions.packageManager ?? detectPackageManager(resolve(sandbox.root, cwd));\n\n\tfor (const [command, args] of installCommands(\n\t\tpackageManager,\n\t\tresolve(sandbox.root, cwd),\n\t\toptions,\n\t)) {\n\t\tconst result = await sandbox.exec(command, args, {\n\t\t\tcwd,\n\t\t\tenv: { ...sandbox.env, ...options.env },\n\t\t\ttimeoutMs: options.timeoutMs ?? INSTALL_TIMEOUT_MS,\n\t\t\toutput: options.output ?? 'inherit',\n\t\t\t...(options.signal ? { signal: options.signal } : {}),\n\t\t});\n\t\tresults.push(result);\n\t\tif (result.exitCode !== 0) {\n\t\t\tthrow new CommandFailed(\n\t\t\t\tcommand,\n\t\t\t\targs,\n\t\t\t\tresult.exitCode,\n\t\t\t\tresult.signal as NodeJS.Signals | null,\n\t\t\t);\n\t\t}\n\t}\n\treturn results;\n}\n"],"mappings":"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"}
|
package/dist/deploy/public.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as GkmError } from "../errors-D8Gwp5kU.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { V as detectPackageManager } from "../apps-
|
|
2
|
+
import { C as storedCredentials, S as chainCredentials, X as deployIdentity, bt as gkmHome, it as CommandTimedOut, rt as CommandFailed, x as MissingCredential, yt as GKM_HOME_ENV } from "../dns-BMtL2ytM.mjs";
|
|
3
|
+
import { V as UnknownStageProvider, wt as ProvisionedBucketUnreachable } from "../workspace-BBa1Ck5j.mjs";
|
|
4
|
+
import { V as detectPackageManager } from "../apps-iHK70h_F.mjs";
|
|
5
5
|
import { a as UnknownDeployTarget, i as DeployTargetNotYetSupported } from "../define-6poNqm5O.mjs";
|
|
6
6
|
import { d as SECRETS_DIR_ENV, f as SandboxCwdEscape, g as confineCwd, n as ConstructsNotSerializable, p as SecretNameInvalid, s as SandboxWorkerFailed, t as ConstructDiscoveryFailed } from "../discover-B_PDDaVj.mjs";
|
|
7
7
|
import { ConfigLoadFailed, ConfigObjectNotSerializable } from "../config.mjs";
|
|
8
|
-
import { i as TargetRuntimeMismatch, l as TargetPackageNotFound, n as TargetEntryInvalid, r as TargetPackageInvalid, s as TargetRuntimeUndeclared, t as InvalidTargetOptions } from "../resolve-
|
|
9
|
-
import { c as DevServicesNeedServerTarget, l as ExternalServicesNotConfigured, o as AllowDevServicesTakesNoValue, s as DEV_SERVICES, t as StageProviderDisabled } from "../notes-
|
|
10
|
-
import { n as SANDBOX_ENV_ALLOWLIST, r as allowlistedEnv, t as LocalSandbox } from "../local-
|
|
11
|
-
import { a as DeploymentTimedOut, f as StateLocked, g as StateVersionConflict, i as DeploymentFailed, u as LocalStateInCi } from "../sniffer-
|
|
12
|
-
import { a as UnknownDeployApps, i as TargetBuildsNothing, n as NoDeployableApps, r as RollbackFailed, t as deploy } from "../deploy-
|
|
8
|
+
import { i as TargetRuntimeMismatch, l as TargetPackageNotFound, n as TargetEntryInvalid, r as TargetPackageInvalid, s as TargetRuntimeUndeclared, t as InvalidTargetOptions } from "../resolve-Dfind5fY.mjs";
|
|
9
|
+
import { c as DevServicesNeedServerTarget, l as ExternalServicesNotConfigured, o as AllowDevServicesTakesNoValue, s as DEV_SERVICES, t as StageProviderDisabled } from "../notes-Dw9BWRJP.mjs";
|
|
10
|
+
import { n as SANDBOX_ENV_ALLOWLIST, r as allowlistedEnv, t as LocalSandbox } from "../local-DbxB0Fg4.mjs";
|
|
11
|
+
import { a as DeploymentTimedOut, f as StateLocked, g as StateVersionConflict, i as DeploymentFailed, u as LocalStateInCi } from "../sniffer-DgjWtfBW.mjs";
|
|
12
|
+
import { a as UnknownDeployApps, i as TargetBuildsNothing, n as NoDeployableApps, r as RollbackFailed, t as deploy } from "../deploy-CyrHJ5tR.mjs";
|
|
13
13
|
import { t as DeploySeedsFailed } from "../seeds-Ccn0Ru2T.mjs";
|
|
14
|
-
import { _ as RegistryNotConfigured, g as RegistryAmbiguous, h as HealthCheckTimedOut, m as DeployMigrationsFailed, n as FrontendDeployFailed, r as MissingEnvVars, t as BackendDeployFailed, v as RegistryNotFound, y as ProjectNotOwned } from "../engine-
|
|
15
|
-
import { i as rollbackStage, n as RollbackNeedsApp, r as StageNeverDeployed, t as NothingToRollBack } from "../rollback-
|
|
14
|
+
import { _ as RegistryNotConfigured, g as RegistryAmbiguous, h as HealthCheckTimedOut, m as DeployMigrationsFailed, n as FrontendDeployFailed, r as MissingEnvVars, t as BackendDeployFailed, v as RegistryNotFound, y as ProjectNotOwned } from "../engine-CQfdAI92.mjs";
|
|
15
|
+
import { i as rollbackStage, n as RollbackNeedsApp, r as StageNeverDeployed, t as NothingToRollBack } from "../rollback-j8X0RdpU.mjs";
|
|
16
16
|
import { t as ProviderRemoved } from "../provider-CEOKk8NS.mjs";
|
|
17
|
-
import { i as SurfacesUnhealthy, r as SstOutputsUnreadable, t as SstConfigNotFound } from "../sst-
|
|
17
|
+
import { i as SurfacesUnhealthy, r as SstOutputsUnreadable, t as SstConfigNotFound } from "../sst-B2h4rE6j.mjs";
|
|
18
18
|
import { join, resolve } from "node:path";
|
|
19
19
|
import { existsSync } from "node:fs";
|
|
20
20
|
//#region src/sandbox/install.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
2
|
-
import { M as initStageSecrets, X as deployIdentity, Y as applicationName,
|
|
3
|
-
import { $ as SesReceivingUnsupported,
|
|
4
|
-
import { A as originSecretKey, D as ORIGIN_VERIFY_HEADER, Et as mergeLifecycle, It as stageBackups, Lt as deploysWithCompose, Mt as backupExpiries, Pt as backupsPrefix, dt as BACKUPS_URL_KEY, f as constructGlobs, j as processorOriginHost, k as newOriginSecret, t as appEnvKeys, ut as BACKUPS_SERVICE } from "./apps-
|
|
2
|
+
import { C as storedCredentials, M as initStageSecrets, X as deployIdentity, Y as applicationName, bt as gkmHome, c as mxValue, d as createComposeState, f as createEmptyState, k as secretsStoreFor, n as findRootDomain, r as normalizeDnsConfig, t as extractSubdomain } from "./dns-BMtL2ytM.mjs";
|
|
3
|
+
import { $ as SesReceivingUnsupported, G as checkSesConfig, J as inboxBucketId, K as checkSesEmailConfig, L as resolveStageTelemetry, N as assertDeployedStage, Q as InboxNotProvisioned, Rt as isReservedStageKey, St as BucketRegionUnknown, Tt as RecordedBucketUnreachable, U as stageProvider, W as SES_PROVISIONING, X as EmailNotProvisioned, Y as inboxTopicName, Z as EmailSenderUnknown, at as suffixedBucketName, bt as BucketProbeFailed, et as IAM_POLICY_NAME, ft as S3_PROVISIONING, ht as servesOnCdn, it as randomSuffix, mt as s3Region, nt as bucketName, ot as appKey, pt as checkS3Config, q as emailUserName, rt as iamUserName, st as derivedApps, u as getAppBuildOrder, ut as fileServerHost, vt as BucketNameUnavailable, wt as ProvisionedBucketUnreachable, xt as BucketRegionMismatch, yt as BucketOwnedByAnotherProject } from "./workspace-BBa1Ck5j.mjs";
|
|
4
|
+
import { A as originSecretKey, D as ORIGIN_VERIFY_HEADER, Et as mergeLifecycle, It as stageBackups, Lt as deploysWithCompose, Mt as backupExpiries, Pt as backupsPrefix, dt as BACKUPS_URL_KEY, f as constructGlobs, j as processorOriginHost, k as newOriginSecret, t as appEnvKeys, ut as BACKUPS_SERVICE } from "./apps-iHK70h_F.mjs";
|
|
5
5
|
import { o as builtinTarget } from "./define-6poNqm5O.mjs";
|
|
6
|
-
import { Et as NoDomainForStage, Ot as isMainFrontendApp, R as usesTelemetry, kt as resolveHost } from "./compose-
|
|
6
|
+
import { Et as NoDomainForStage, Ot as isMainFrontendApp, R as usesTelemetry, kt as resolveHost } from "./compose-DsFvWwAu.mjs";
|
|
7
7
|
import { s as subscriberRoute } from "./SubscriberGenerator-CfZWX0lT.mjs";
|
|
8
8
|
import { _ as withSandbox, b as withOutput, i as discover } from "./discover-B_PDDaVj.mjs";
|
|
9
9
|
import { findWorkspaceRoot, loadWorkspaceConfig, withLoadedConfig } from "./config.mjs";
|
|
10
|
-
import { a as parseTargetOptions, o as resolveTarget } from "./resolve-
|
|
11
|
-
import { a as PROVIDER_KINDS, c as DevServicesNeedServerTarget, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, l as ExternalServicesNotConfigured, m as reportDevServices, n as assertStageProvidersEnabled, p as externalServices } from "./notes-
|
|
12
|
-
import { T as assertSitePasswords } from "./stack-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { a as identityTags, c as whileKeyIsNew, d as corsRule, f as publicAccessBlock, i as ensureIamUser, l as bucketPolicy, o as issuedJustNow, p as userPolicy, r as ensureAccessKey, s as s3KeySecret, t as TAG_PROJECT, u as canonicalPolicy } from "./iam-
|
|
17
|
-
import { a as findProjectBucket, i as ensureProjectBucket, o as projectBucketName, r as callerAccountId, s as reconcileProjectBucketLifecycle } from "./projectBucket-
|
|
10
|
+
import { a as parseTargetOptions, o as resolveTarget } from "./resolve-Dfind5fY.mjs";
|
|
11
|
+
import { a as PROVIDER_KINDS, c as DevServicesNeedServerTarget, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, l as ExternalServicesNotConfigured, m as reportDevServices, n as assertStageProvidersEnabled, p as externalServices } from "./notes-Dw9BWRJP.mjs";
|
|
12
|
+
import { M as awsClientConfig, N as awsEndpoint, P as awsProvisioningCredentials, T as assertSitePasswords } from "./stack-DI4qbrtn.mjs";
|
|
13
|
+
import { t as LocalSandbox } from "./local-DbxB0Fg4.mjs";
|
|
14
|
+
import { E as eventError, S as createStateStore, v as assertStateOutlivesRun, y as assertStateRoom } from "./sniffer-DgjWtfBW.mjs";
|
|
15
|
+
import { a as subscriptionKey, f as recordTtl, h as settleStackDns, l as dnsCredentials, o as subscriptionResource, v as stageDnsDomains } from "./snsSubscriptions-BLfWAnzg.mjs";
|
|
16
|
+
import { a as identityTags, c as whileKeyIsNew, d as corsRule, f as publicAccessBlock, i as ensureIamUser, l as bucketPolicy, o as issuedJustNow, p as userPolicy, r as ensureAccessKey, s as s3KeySecret, t as TAG_PROJECT, u as canonicalPolicy } from "./iam-Cs2Ph5f2.mjs";
|
|
17
|
+
import { a as findProjectBucket, i as ensureProjectBucket, o as projectBucketName, r as callerAccountId, s as reconcileProjectBucketLifecycle } from "./projectBucket-DHuBZDPJ.mjs";
|
|
18
18
|
import { m as recordDnsResource, s as DeployJournal, u as dnsResourceKey } from "./seeds-Ccn0Ru2T.mjs";
|
|
19
19
|
import { n as assertStageCredentials } from "./credentialSchemas-BzJiK1nQ.mjs";
|
|
20
20
|
import { resolve } from "node:path";
|
|
@@ -1596,17 +1596,6 @@ function bucketConstructs(manifest) {
|
|
|
1596
1596
|
})).sort((a, b) => a.id.localeCompare(b.id));
|
|
1597
1597
|
}
|
|
1598
1598
|
/**
|
|
1599
|
-
* The region the stage's buckets are created in: the entry's, the secrets
|
|
1600
|
-
* store's when it is in AWS, the credential's, `AWS_REGION`.
|
|
1601
|
-
*/
|
|
1602
|
-
function s3Region(ctx, env = process.env) {
|
|
1603
|
-
const store = ctx.workspace.secrets?.store;
|
|
1604
|
-
const storeRegion = store && typeof store === "object" && "region" in store ? store.region : void 0;
|
|
1605
|
-
const region = ctx.config.region ?? storeRegion ?? ctx.credential?.region ?? env.AWS_REGION ?? env.AWS_DEFAULT_REGION;
|
|
1606
|
-
if (!region) throw new S3RegionRequired(ctx.stage);
|
|
1607
|
-
return region;
|
|
1608
|
-
}
|
|
1609
|
-
/**
|
|
1610
1599
|
* The address a file server over `bucket` serves on: the bucket's regional
|
|
1611
1600
|
* virtual-host endpoint, which is what `FileServer.url(key)` appends a key to
|
|
1612
1601
|
* — `https://<bucket>.s3.<region>.amazonaws.com/<key>`. Against an emulator,
|
|
@@ -3843,4 +3832,4 @@ async function load(input, sandbox) {
|
|
|
3843
3832
|
//#endregion
|
|
3844
3833
|
export { UnknownDeployApps as a, defaultCdnClients as c, TargetBuildsNothing as i, backupsUserName as l, NoDeployableApps as n, defaultClients as o, RollbackFailed as r, cdnName as s, deploy as t };
|
|
3845
3834
|
|
|
3846
|
-
//# sourceMappingURL=deploy-
|
|
3835
|
+
//# sourceMappingURL=deploy-CyrHJ5tR.mjs.map
|