@prisma/composer 0.6.0-dev.14 → 0.6.0-dev.15
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/{app-config-CFsSXEVj-B242oUnm.d.mts → app-config-aIrriqVU-D6lJHzh2.d.mts} +42 -17
- package/dist/app-config-aIrriqVU-D6lJHzh2.d.mts.map +1 -0
- package/dist/bin.mjs +950 -12
- package/dist/bin.mjs.map +1 -1
- package/dist/config-CL7Jbve2.d.mts +1 -0
- package/dist/config.d.mts +3 -3
- package/dist/container-transport-DKmKg5JQ-CoY4XPma.mjs +30 -0
- package/dist/container-transport-DKmKg5JQ-CoY4XPma.mjs.map +1 -0
- package/dist/control.d.mts +3 -216
- package/dist/control.mjs +1 -69
- package/dist/deploy-CL7Jbve2.d.mts +1 -0
- package/dist/deploy.d.mts +2 -2
- package/dist/deploy.mjs +1 -1
- package/dist/{deployment-summary-r47O6kFr-CcMYVOn5.mjs → deployment-summary-DswOl_9E-C03NJ98H.mjs} +2 -2
- package/dist/{deployment-summary-r47O6kFr-CcMYVOn5.mjs.map → deployment-summary-DswOl_9E-C03NJ98H.mjs.map} +1 -1
- package/dist/{dist-C5rZnr4n.mjs → dist-C0dNEgS-.mjs} +2 -2
- package/dist/{dist-C5rZnr4n.mjs.map → dist-C0dNEgS-.mjs.map} +1 -1
- package/dist/{errors-0e8IVwzi.mjs → errors-DkXcnjPx.mjs} +3 -2
- package/dist/{errors-0e8IVwzi.mjs.map → errors-DkXcnjPx.mjs.map} +1 -1
- package/dist/{execute-deploy-destroy-IT4vGkMc-oO8yjHPH.mjs → execute-deploy-destroy-DfVJUICu-AMM8CwgV.mjs} +30 -19
- package/dist/execute-deploy-destroy-DfVJUICu-AMM8CwgV.mjs.map +1 -0
- package/dist/{execute-deploy-destroy-IT4vGkMc-YM1Cv6cu.mjs → execute-deploy-destroy-DfVJUICu-quUQ08T8.mjs} +29 -19
- package/dist/execute-deploy-destroy-DfVJUICu-quUQ08T8.mjs.map +1 -0
- package/dist/{execute-dev-DLYyduEM-88uyvrbj.mjs → execute-dev-BMTFWfFc-B1whS-Rr.mjs} +25 -23
- package/dist/{execute-dev-DLYyduEM-88uyvrbj.mjs.map → execute-dev-BMTFWfFc-B1whS-Rr.mjs.map} +1 -1
- package/dist/{execute-dev-DLYyduEM-BuUGTm0g.mjs → execute-dev-BMTFWfFc-BoKbcFVF.mjs} +29 -20
- package/dist/{execute-dev-DLYyduEM-BuUGTm0g.mjs.map → execute-dev-BMTFWfFc-BoKbcFVF.mjs.map} +1 -1
- package/dist/{execute-log-VIOL4DBz-DBPH8By4.mjs → execute-log-Cay9hlKW-B0tmRtrY.mjs} +11 -7
- package/dist/execute-log-Cay9hlKW-B0tmRtrY.mjs.map +1 -0
- package/dist/{execute-log-VIOL4DBz-DKodBrxS.mjs → execute-log-Cay9hlKW-DrMeVOXq.mjs} +9 -7
- package/dist/execute-log-Cay9hlKW-DrMeVOXq.mjs.map +1 -0
- package/dist/family-DkH0si4D-Uov_MuHV.d.mts +27 -0
- package/dist/family-DkH0si4D-Uov_MuHV.d.mts.map +1 -0
- package/dist/family.d.mts +53 -0
- package/dist/family.d.mts.map +1 -0
- package/dist/family.mjs +839 -0
- package/dist/family.mjs.map +1 -0
- package/dist/{graph-BJgUfGB0-kvgFzT4q.mjs → graph-BJgUfGB0-7fmubS_y.mjs} +2 -2
- package/dist/{graph-BJgUfGB0-kvgFzT4q.mjs.map → graph-BJgUfGB0-7fmubS_y.mjs.map} +1 -1
- package/dist/{graph-types-N6brq1zY-1VMNwtkJ.d.mts → graph-DqklX5Sf-CdNH3lA7.d.mts} +17 -2
- package/dist/graph-DqklX5Sf-CdNH3lA7.d.mts.map +1 -0
- package/dist/{index-DryPyF9U.d.mts → index-DuF5iI3i.d.mts} +2 -3
- package/dist/index-DuF5iI3i.d.mts.map +1 -0
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +2 -2
- package/dist/{local-target-DnA2E8IN.mjs → local-target-D3u_wuNF.mjs} +2 -2
- package/dist/{local-target-DnA2E8IN.mjs.map → local-target-D3u_wuNF.mjs.map} +1 -1
- package/dist/{local-target-DuSyWeYc.mjs → local-target-H0IWu_FM.mjs} +2 -2
- package/dist/{local-target-DuSyWeYc.mjs.map → local-target-H0IWu_FM.mjs.map} +1 -1
- package/dist/local-target.d.mts +1 -1
- package/dist/local-target.mjs +1 -1
- package/dist/log-DRnnWupy-9jbzL64M.d.mts +324 -0
- package/dist/log-DRnnWupy-9jbzL64M.d.mts.map +1 -0
- package/dist/{result-CzGChwbZ.mjs → log-DfT2hHqi-CDp9nfI5.mjs} +85 -90
- package/dist/log-DfT2hHqi-CDp9nfI5.mjs.map +1 -0
- package/dist/{nextjs-DLyeRR7M-DZODs9tk.d.mts → nextjs-DLyeRR7M-BfUbLXwr.d.mts} +3 -3
- package/dist/{nextjs-DLyeRR7M-DZODs9tk.d.mts.map → nextjs-DLyeRR7M-BfUbLXwr.d.mts.map} +1 -1
- package/dist/nextjs-control.d.mts +4 -4
- package/dist/nextjs.d.mts +1 -1
- package/dist/node-control.d.mts +3 -3
- package/dist/node.d.mts +2 -2
- package/dist/{pipeline-D3QoVzAB-D_ufjg3N.mjs → pipeline-AoW8zq4I-C6Qe0VaZ.mjs} +161 -42
- package/dist/{pipeline-D3QoVzAB-D_ufjg3N.mjs.map → pipeline-AoW8zq4I-C6Qe0VaZ.mjs.map} +1 -1
- package/dist/{pipeline-D3QoVzAB-Ci2aJ2mE.mjs → pipeline-AoW8zq4I-DM74ygtH.mjs} +164 -43
- package/dist/pipeline-AoW8zq4I-DM74ygtH.mjs.map +1 -0
- package/dist/report.d.mts +2 -2
- package/dist/report.mjs +1 -1
- package/dist/report.mjs.map +1 -1
- package/dist/{shared-CCaR42wo-BvegvmA_.mjs → result-B4XjxVK6.mjs} +127 -8
- package/dist/result-B4XjxVK6.mjs.map +1 -0
- package/dist/{result-CFqJKiqg.mjs → result-wonf1deB.mjs} +4 -18
- package/dist/result-wonf1deB.mjs.map +1 -0
- package/dist/run-alchemy-D44OZlyB-DA7s331N.mjs +93 -0
- package/dist/run-alchemy-D44OZlyB-DA7s331N.mjs.map +1 -0
- package/dist/run-alchemy-D44OZlyB-DeDTFsB6.mjs +93 -0
- package/dist/run-alchemy-D44OZlyB-DeDTFsB6.mjs.map +1 -0
- package/dist/service-rpc.d.mts +2 -2
- package/dist/service-rpc.mjs +2 -2
- package/dist/testing.d.mts +54 -2
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +150 -1
- package/dist/testing.mjs.map +1 -1
- package/package.json +12 -11
- package/src/exports/family.ts +14 -0
- package/src/exports/testing.ts +1 -0
- package/dist/app-config-CFsSXEVj-B242oUnm.d.mts.map +0 -1
- package/dist/cli-B3sWzFlb-CxEIzKsQ.mjs +0 -401
- package/dist/cli-B3sWzFlb-CxEIzKsQ.mjs.map +0 -1
- package/dist/config-ku5b_2YD.d.mts +0 -1
- package/dist/container-transport-DKmKg5JQ-BMRhx5w-.mjs +0 -75
- package/dist/container-transport-DKmKg5JQ-BMRhx5w-.mjs.map +0 -1
- package/dist/control.d.mts.map +0 -1
- package/dist/control.mjs.map +0 -1
- package/dist/deploy-ku5b_2YD.d.mts +0 -1
- package/dist/execute-deploy-destroy-IT4vGkMc-YM1Cv6cu.mjs.map +0 -1
- package/dist/execute-deploy-destroy-IT4vGkMc-oO8yjHPH.mjs.map +0 -1
- package/dist/execute-log-VIOL4DBz-DBPH8By4.mjs.map +0 -1
- package/dist/execute-log-VIOL4DBz-DKodBrxS.mjs.map +0 -1
- package/dist/graph-DqklX5Sf-BNS2aO1j.d.mts +0 -18
- package/dist/graph-DqklX5Sf-BNS2aO1j.d.mts.map +0 -1
- package/dist/graph-types-N6brq1zY-1VMNwtkJ.d.mts.map +0 -1
- package/dist/index-DryPyF9U.d.mts.map +0 -1
- package/dist/pipeline-D3QoVzAB-Ci2aJ2mE.mjs.map +0 -1
- package/dist/render-error-DsPN5qfr-CkVGj9uP.mjs +0 -30
- package/dist/render-error-DsPN5qfr-CkVGj9uP.mjs.map +0 -1
- package/dist/result-CFqJKiqg.mjs.map +0 -1
- package/dist/result-CzGChwbZ.mjs.map +0 -1
- package/dist/run-alchemy-hghRtddF-CQHOzlrW.mjs +0 -48
- package/dist/run-alchemy-hghRtddF-CQHOzlrW.mjs.map +0 -1
- package/dist/shared-CCaR42wo-BvegvmA_.mjs.map +0 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
1
|
+
import { t as CliStructuredError } from "./errors-DkXcnjPx.mjs";
|
|
2
|
+
import { t as containerEnv } from "./container-transport-DKmKg5JQ-DKWs0ubK.mjs";
|
|
3
|
+
import { t as DEV_DIR } from "./app-config-joXc-BKm-CdcXqNMD.mjs";
|
|
4
|
+
import { d as toStructured } from "./log-DfT2hHqi-CDp9nfI5.mjs";
|
|
5
|
+
import { n as ok, t as notOk } from "./result-wonf1deB.mjs";
|
|
6
|
+
import { n as alchemyInvocation, r as spawnAlchemy } from "./run-alchemy-D44OZlyB-DeDTFsB6.mjs";
|
|
7
|
+
import { n as resolveLocalTargets } from "./local-target-D3u_wuNF.mjs";
|
|
8
|
+
import { n as runPipeline } from "./pipeline-AoW8zq4I-DM74ygtH.mjs";
|
|
9
|
+
import { t as withEmulatorRetry } from "./emulator-retry-DGonap4g-S8BNrXFD.mjs";
|
|
6
10
|
import * as fs from "node:fs";
|
|
7
11
|
import * as path from "node:path";
|
|
8
12
|
import { join, relative, resolve, sep } from "node:path";
|
|
@@ -1561,7 +1565,7 @@ var esm_default = {
|
|
|
1561
1565
|
FSWatcher
|
|
1562
1566
|
};
|
|
1563
1567
|
//#endregion
|
|
1564
|
-
//#region ../../0-framework/3-tooling/cli/dist/execute-dev-
|
|
1568
|
+
//#region ../../0-framework/3-tooling/cli/dist/execute-dev-BMTFWfFc.mjs
|
|
1565
1569
|
/**
|
|
1566
1570
|
* Local-dev spec § 6 `generate-dev-stack.ts`: like generate-stack.ts but at
|
|
1567
1571
|
* `.prisma-composer/dev/alchemy.run.ts`, always Alchemy stage `dev`, using
|
|
@@ -1768,7 +1772,8 @@ async function executeDev(input, deps, cwd) {
|
|
|
1768
1772
|
try {
|
|
1769
1773
|
const pipelineDeps = {
|
|
1770
1774
|
runAssembler: deps.runAssembler,
|
|
1771
|
-
config: deps.config
|
|
1775
|
+
config: deps.config,
|
|
1776
|
+
configPath: deps.configPath
|
|
1772
1777
|
};
|
|
1773
1778
|
pipeline = await runPipeline(input.entry, input.name, cwd, pipelineDeps);
|
|
1774
1779
|
const { config, graph, name } = pipeline;
|
|
@@ -1821,7 +1826,7 @@ async function executeDev(input, deps, cwd) {
|
|
|
1821
1826
|
throw error;
|
|
1822
1827
|
}
|
|
1823
1828
|
const reproduceCommand = `alchemy deploy ${DEV_STACK_RELATIVE_PATH} --yes --stage dev`;
|
|
1824
|
-
const converge = () => {
|
|
1829
|
+
const converge = async () => {
|
|
1825
1830
|
let stackPath;
|
|
1826
1831
|
try {
|
|
1827
1832
|
stackPath = writeDevStackFile({
|
|
@@ -1834,15 +1839,15 @@ async function executeDev(input, deps, cwd) {
|
|
|
1834
1839
|
} catch (error) {
|
|
1835
1840
|
throw toStructured("DEV.STACK_WRITE_FAILED", error);
|
|
1836
1841
|
}
|
|
1837
|
-
let
|
|
1842
|
+
let outcome;
|
|
1838
1843
|
try {
|
|
1839
|
-
|
|
1844
|
+
outcome = await (deps.alchemy ?? spawnAlchemy)(alchemyInvocation({
|
|
1840
1845
|
command: "deploy",
|
|
1841
1846
|
stackFileRelativePath: DEV_STACK_RELATIVE_PATH,
|
|
1842
1847
|
cwd,
|
|
1843
1848
|
stage: "dev",
|
|
1844
1849
|
containerEnv: containerEnv(containers)
|
|
1845
|
-
});
|
|
1850
|
+
}));
|
|
1846
1851
|
} catch (error) {
|
|
1847
1852
|
if (CliStructuredError.is(error)) throw error;
|
|
1848
1853
|
throw new CliStructuredError("DEV.CONVERGE_FAILED", failureMessage(error), {
|
|
@@ -1856,21 +1861,23 @@ async function executeDev(input, deps, cwd) {
|
|
|
1856
1861
|
});
|
|
1857
1862
|
}
|
|
1858
1863
|
return {
|
|
1859
|
-
|
|
1864
|
+
outcome,
|
|
1860
1865
|
stackPath
|
|
1861
1866
|
};
|
|
1862
1867
|
};
|
|
1863
1868
|
let first;
|
|
1864
1869
|
try {
|
|
1865
|
-
first = converge();
|
|
1870
|
+
first = await converge();
|
|
1866
1871
|
} catch (error) {
|
|
1867
1872
|
if (CliStructuredError.is(error)) return notOk(error);
|
|
1868
1873
|
throw error;
|
|
1869
1874
|
}
|
|
1870
|
-
|
|
1871
|
-
|
|
1875
|
+
const firstStatus = first.outcome.signal !== null ? null : first.outcome.exitCode ?? 1;
|
|
1876
|
+
if (firstStatus !== 0) return notOk(new CliStructuredError("DEV.CONVERGE_FAILED", first.outcome.signal !== null ? `alchemy deploy was interrupted by ${first.outcome.signal}.` : `alchemy deploy exited with status ${String(firstStatus)}.`, { meta: {
|
|
1877
|
+
...first.outcome.signal !== null ? { signal: first.outcome.signal } : { exitCode: firstStatus },
|
|
1872
1878
|
diagnostics: {
|
|
1873
|
-
exitCode:
|
|
1879
|
+
exitCode: firstStatus ?? void 0,
|
|
1880
|
+
...first.outcome.signal !== null ? { signal: first.outcome.signal } : {},
|
|
1874
1881
|
stackFilePath: first.stackPath,
|
|
1875
1882
|
reproduceCommand,
|
|
1876
1883
|
cwd
|
|
@@ -1918,7 +1925,8 @@ async function executeDev(input, deps, cwd) {
|
|
|
1918
1925
|
});
|
|
1919
1926
|
const watchDeps = {
|
|
1920
1927
|
runAssembler: deps.runAssembler,
|
|
1921
|
-
config: deps.config
|
|
1928
|
+
config: deps.config,
|
|
1929
|
+
configPath: deps.configPath
|
|
1922
1930
|
};
|
|
1923
1931
|
watch = startWatch(targets, () => {
|
|
1924
1932
|
(async () => {
|
|
@@ -1931,13 +1939,14 @@ async function executeDev(input, deps, cwd) {
|
|
|
1931
1939
|
name: rePipeline.name,
|
|
1932
1940
|
assembled: rePipeline.assembled
|
|
1933
1941
|
});
|
|
1934
|
-
|
|
1942
|
+
const outcome = await (deps.alchemy ?? spawnAlchemy)(alchemyInvocation({
|
|
1935
1943
|
command: "deploy",
|
|
1936
1944
|
stackFileRelativePath: DEV_STACK_RELATIVE_PATH,
|
|
1937
1945
|
cwd,
|
|
1938
1946
|
stage: "dev",
|
|
1939
1947
|
containerEnv: containerEnv(containers)
|
|
1940
|
-
})
|
|
1948
|
+
}));
|
|
1949
|
+
if (outcome.signal !== null || outcome.exitCode !== 0) {
|
|
1941
1950
|
emit({
|
|
1942
1951
|
kind: "converge-failed",
|
|
1943
1952
|
stackFilePath: stackPath,
|
|
@@ -2003,4 +2012,4 @@ async function executeDev(input, deps, cwd) {
|
|
|
2003
2012
|
//#endregion
|
|
2004
2013
|
export { executeDev };
|
|
2005
2014
|
|
|
2006
|
-
//# sourceMappingURL=execute-dev-
|
|
2015
|
+
//# sourceMappingURL=execute-dev-BMTFWfFc-BoKbcFVF.mjs.map
|