@prisma/compute-sdk 0.31.0 → 0.33.0
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/artifact-stage.d.ts +19 -0
- package/dist/artifact-stage.d.ts.map +1 -1
- package/dist/artifact-stage.js +24 -10
- package/dist/artifact-stage.js.map +1 -1
- package/dist/astro-build.d.ts.map +1 -1
- package/dist/astro-build.js +1 -0
- package/dist/astro-build.js.map +1 -1
- package/dist/config/index.d.ts +3 -2
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +3 -2
- package/dist/config/index.js.map +1 -1
- package/dist/config/json-schema.d.ts +229 -0
- package/dist/config/json-schema.d.ts.map +1 -0
- package/dist/config/json-schema.js +128 -0
- package/dist/config/json-schema.js.map +1 -0
- package/dist/config/load.d.ts +2 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +26 -4
- package/dist/config/load.js.map +1 -1
- package/dist/config/normalize.d.ts +4 -0
- package/dist/config/normalize.d.ts.map +1 -1
- package/dist/config/normalize.js +9 -4
- package/dist/config/normalize.js.map +1 -1
- package/dist/config/serialize.d.ts +15 -0
- package/dist/config/serialize.d.ts.map +1 -1
- package/dist/config/serialize.js +14 -0
- package/dist/config/serialize.js.map +1 -1
- package/dist/configured-artifact-trace.d.ts +15 -0
- package/dist/configured-artifact-trace.d.ts.map +1 -0
- package/dist/configured-artifact-trace.js +58 -0
- package/dist/configured-artifact-trace.js.map +1 -0
- package/dist/configured-artifact.d.ts +1 -0
- package/dist/configured-artifact.d.ts.map +1 -1
- package/dist/configured-artifact.js +10 -0
- package/dist/configured-artifact.js.map +1 -1
- package/package.json +1 -1
- package/src/artifact-stage.ts +38 -18
- package/src/astro-build.ts +1 -0
- package/src/config/index.ts +9 -1
- package/src/config/json-schema.ts +147 -0
- package/src/config/load.ts +38 -7
- package/src/config/normalize.ts +9 -4
- package/src/config/serialize.ts +27 -0
- package/src/configured-artifact-trace.ts +98 -0
- package/src/configured-artifact.ts +11 -0
package/dist/artifact-stage.d.ts
CHANGED
|
@@ -14,6 +14,23 @@ export declare function stageStandaloneArtifact(options: {
|
|
|
14
14
|
appPath: string;
|
|
15
15
|
signal?: AbortSignal;
|
|
16
16
|
}): Promise<void>;
|
|
17
|
+
/** Options shared by the symlink-materializing copy walk. */
|
|
18
|
+
export interface MaterializeOptions {
|
|
19
|
+
/** Root of the standalone output being copied (for fallback resolution). */
|
|
20
|
+
standaloneRoot?: string;
|
|
21
|
+
/** The app directory; symlink targets here are materialized. */
|
|
22
|
+
appRoot: string;
|
|
23
|
+
/** The workspace/source root; targets in its node_modules are materialized. */
|
|
24
|
+
sourceRoot: string;
|
|
25
|
+
/**
|
|
26
|
+
* Roots a symlink may resolve into. Defaults to the app root and workspace
|
|
27
|
+
* node_modules, matching standalone framework artifacts.
|
|
28
|
+
*/
|
|
29
|
+
allowedSymlinkTargetRoots?: readonly string[];
|
|
30
|
+
/** Ignore a missing source path instead of throwing. Useful for trace lists. */
|
|
31
|
+
ignoreMissingSource?: boolean;
|
|
32
|
+
signal?: AbortSignal;
|
|
33
|
+
}
|
|
17
34
|
/**
|
|
18
35
|
* pnpm and bun (isolated linker) both keep packages in a virtual store with a
|
|
19
36
|
* shared symlink farm (`.pnpm/node_modules`, `.bun/node_modules`). Hoist the
|
|
@@ -21,4 +38,6 @@ export declare function stageStandaloneArtifact(options: {
|
|
|
21
38
|
* works after symlinks are materialized.
|
|
22
39
|
*/
|
|
23
40
|
export declare function hoistIsolatedStoreDependencies(nodeModulesDir: string, signal?: AbortSignal): Promise<void>;
|
|
41
|
+
export declare function copyPathMaterializingSymlinks(sourcePath: string, destinationPath: string, options: MaterializeOptions): Promise<void>;
|
|
42
|
+
export declare function isPathWithin(rootPath: string, candidatePath: string): boolean;
|
|
24
43
|
//# sourceMappingURL=artifact-stage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-stage.d.ts","sourceRoot":"","sources":["../src/artifact-stage.ts"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE;IACrD,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBhB;
|
|
1
|
+
{"version":3,"file":"artifact-stage.d.ts","sourceRoot":"","sources":["../src/artifact-stage.ts"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE;IACrD,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBhB;AAED,6DAA6D;AAC7D,MAAM,WAAW,kBAAkB;IACjC,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,yBAAyB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,gFAAgF;IAChF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAsB,8BAA8B,CAClD,cAAc,EAAE,MAAM,EACtB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAWf;AA+DD,wBAAsB,6BAA6B,CACjD,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CA2Cf;AA2DD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAQ7E"}
|
package/dist/artifact-stage.js
CHANGED
|
@@ -69,9 +69,17 @@ function storeMaterializeOptions(storeNodeModulesDir, nodeModulesDir, signal) {
|
|
|
69
69
|
signal,
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
async function copyPathMaterializingSymlinks(sourcePath, destinationPath, options) {
|
|
72
|
+
export async function copyPathMaterializingSymlinks(sourcePath, destinationPath, options) {
|
|
73
73
|
options.signal?.throwIfAborted();
|
|
74
|
-
const sourceStat = await lstat(sourcePath)
|
|
74
|
+
const sourceStat = await lstat(sourcePath).catch((error) => {
|
|
75
|
+
if (options.ignoreMissingSource && isENOENT(error)) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
throw error;
|
|
79
|
+
});
|
|
80
|
+
if (!sourceStat) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
75
83
|
if (sourceStat.isSymbolicLink()) {
|
|
76
84
|
const resolvedTarget = await resolveSymlinkTarget(sourcePath, options);
|
|
77
85
|
if (resolvedTarget === null) {
|
|
@@ -99,13 +107,17 @@ async function resolveSymlinkTarget(symlinkPath, options) {
|
|
|
99
107
|
const linkTarget = await readlink(symlinkPath);
|
|
100
108
|
const resolvedTarget = path.resolve(path.dirname(symlinkPath), linkTarget);
|
|
101
109
|
if (await pathExists(resolvedTarget, options.signal)) {
|
|
102
|
-
|
|
103
|
-
|
|
110
|
+
const allowedRoots = options.allowedSymlinkTargetRoots ?? [
|
|
111
|
+
options.appRoot,
|
|
112
|
+
path.join(options.sourceRoot, "node_modules"),
|
|
113
|
+
];
|
|
114
|
+
if (!allowedRoots.some((root) => isPathWithin(root, resolvedTarget))) {
|
|
104
115
|
throw new Error(`Build artifact symlink escapes the app directory: ${resolvedTarget}`);
|
|
105
116
|
}
|
|
106
117
|
return resolvedTarget;
|
|
107
118
|
}
|
|
108
|
-
if (
|
|
119
|
+
if (options.standaloneRoot &&
|
|
120
|
+
isPathWithin(options.standaloneRoot, resolvedTarget)) {
|
|
109
121
|
const fallbackTarget = path.join(options.appRoot, path.relative(options.standaloneRoot, resolvedTarget));
|
|
110
122
|
if (await pathExists(fallbackTarget, options.signal)) {
|
|
111
123
|
return fallbackTarget;
|
|
@@ -118,7 +130,7 @@ async function resolveSymlinkTarget(symlinkPath, options) {
|
|
|
118
130
|
if (isPnpmHoistLink(symlinkPath)) {
|
|
119
131
|
return null;
|
|
120
132
|
}
|
|
121
|
-
throw new Error(`
|
|
133
|
+
throw new Error(`Build artifact symlink target is missing: ${symlinkPath} -> ${linkTarget} (resolved to ${resolvedTarget})`);
|
|
122
134
|
}
|
|
123
135
|
function isPnpmHoistLink(symlinkPath) {
|
|
124
136
|
const parts = path.dirname(symlinkPath).split(path.sep);
|
|
@@ -129,16 +141,13 @@ function isPnpmHoistLink(symlinkPath) {
|
|
|
129
141
|
}
|
|
130
142
|
return false;
|
|
131
143
|
}
|
|
132
|
-
function isPathWithin(rootPath, candidatePath) {
|
|
144
|
+
export function isPathWithin(rootPath, candidatePath) {
|
|
133
145
|
const relativePath = path.relative(rootPath, candidatePath);
|
|
134
146
|
return (relativePath === "" ||
|
|
135
147
|
(!relativePath.startsWith(`..${path.sep}`) &&
|
|
136
148
|
relativePath !== ".." &&
|
|
137
149
|
!path.isAbsolute(relativePath)));
|
|
138
150
|
}
|
|
139
|
-
function isPathWithinWorkspaceDependency(sourceRoot, candidatePath) {
|
|
140
|
-
return isPathWithin(path.join(sourceRoot, "node_modules"), candidatePath);
|
|
141
|
-
}
|
|
142
151
|
async function readEntries(directory, signal) {
|
|
143
152
|
signal?.throwIfAborted();
|
|
144
153
|
return readdir(directory, { withFileTypes: true });
|
|
@@ -153,6 +162,11 @@ async function pathExists(targetPath, signal) {
|
|
|
153
162
|
return false;
|
|
154
163
|
}
|
|
155
164
|
}
|
|
165
|
+
function isENOENT(error) {
|
|
166
|
+
return (error instanceof Error &&
|
|
167
|
+
"code" in error &&
|
|
168
|
+
error.code === "ENOENT");
|
|
169
|
+
}
|
|
156
170
|
async function directoryExists(targetPath, signal) {
|
|
157
171
|
signal?.throwIfAborted();
|
|
158
172
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-stage.js","sourceRoot":"","sources":["../src/artifact-stage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,IAAI,GACL,MAAM,kBAAkB,CAAC;AAC1B,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,OAK7C;IACC,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC3D,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,UAAU,GAAG,MAAM,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAEpE,MAAM,6BAA6B,CAAC,cAAc,EAAE,YAAY,EAAE;QAChE,cAAc;QACd,OAAO;QACP,UAAU;QACV,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAC;IACH,MAAM,8BAA8B,CAClC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,cAAc,CAAC,EACvC,OAAO,CAAC,MAAM,CACf,CAAC;AACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"artifact-stage.js","sourceRoot":"","sources":["../src/artifact-stage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,IAAI,GAC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B,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAUrD;;;GAGG;AACH,qBAAa,UAAW,YAAW,aAAa;;gBAKlC,OAAO,EAAE;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,EAAE,CAAC,EAAE,cAAc,CAAC;KACrB;IAMK,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAOhD,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"astro-build.d.ts","sourceRoot":"","sources":["../src/astro-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAOxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAUrD;;;GAGG;AACH,qBAAa,UAAW,YAAW,aAAa;;gBAKlC,OAAO,EAAE;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,aAAa,CAAC,EAAE,aAAa,CAAC;QAC9B,EAAE,CAAC,EAAE,cAAc,CAAC;KACrB;IAMK,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAOhD,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;CAsC5D"}
|
package/dist/astro-build.js
CHANGED
|
@@ -55,6 +55,7 @@ export class AstroBuild {
|
|
|
55
55
|
missingEntrypointMessage: settings.entrypoint
|
|
56
56
|
? undefined
|
|
57
57
|
: 'Astro build did not produce a standalone server entrypoint. Install @astrojs/node and configure it with adapter: node({ mode: "standalone" }) in your astro.config file.',
|
|
58
|
+
traceDependencies: true,
|
|
58
59
|
signal,
|
|
59
60
|
});
|
|
60
61
|
}
|
package/dist/astro-build.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astro-build.js","sourceRoot":"","sources":["../src/astro-build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE/E,OAAO,EACL,oBAAoB,EACpB,WAAW,EACX,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAGnE,MAAM,sBAAsB,GAAG;IAC7B,iBAAiB;IACjB,kBAAkB;IAClB,kBAAkB;IAClB,iBAAiB;IACjB,kBAAkB;CACnB,CAAC;AAEF;;;GAGG;AACH,MAAM,OAAO,UAAU;IACZ,QAAQ,CAAS;IACjB,cAAc,CAAiB;IAC/B,GAAG,CAAkB;IAE9B,YAAY,OAIX;QACC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;QAChC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;QAC5C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,EAAE,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,MAAoB;QACjC,OAAO,CACL,CAAC,MAAM,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,sBAAsB,EAAE,MAAM,CAAC,CAAC;YAClE,CAAC,MAAM,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC,CAC/D,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAAoB;QAChC,MAAM,EAAE,cAAc,EAAE,CAAC;QACzB,MAAM,QAAQ,GACZ,IAAI,CAAC,cAAc;YACnB,CAAC,MAAM,oBAAoB,CAAC;gBAC1B,OA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AC,CAAC,SAAS;gBACX,CAAC,CAAC,0KAA0K;YAC9K,iBAAiB,EAAE,IAAI;YACvB,MAAM;SACP,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
* project/branch resolution, prompts, flag precedence — stay with consumers.
|
|
8
8
|
*/
|
|
9
9
|
export { ASTRO_CONFIG_FILENAMES, CONFIG_BACKED_BUILD_TYPES, type ConfigBackedBuildType, defaultHttpPortForBuildType, ENTRYPOINT_BUILD_TYPES, FRAMEWORK_KEYS, FRAMEWORKS, type FrameworkBuildType, type FrameworkDescriptor, frameworkByKey, frameworkFromAlias, isConfigBackedBuildType, LOCAL_DEV_BUILD_TYPES, NEXT_CONFIG_FILENAMES, NUXT_CONFIG_FILENAMES, } from "./frameworks.ts";
|
|
10
|
-
export {
|
|
10
|
+
export { COMPUTE_CONFIG_JSON_SCHEMA, COMPUTE_CONFIG_JSON_SCHEMA_URL, } from "./json-schema.ts";
|
|
11
|
+
export { COMPUTE_CONFIG_FILENAME, COMPUTE_CONFIG_FILENAMES, COMPUTE_CONFIG_JSON_FILENAME, ComputeConfigAmbiguousError, type ComputeConfigError, ComputeConfigLoadError, findComputeConfigCandidates, findComputeConfigDir, loadComputeConfig, } from "./load.ts";
|
|
11
12
|
export { ComputeConfigInvalidError, type ComputeConfigTargetError, ComputeConfigTargetRequiredError, ComputeConfigTargetUnknownError, type ComputeDeployTarget, type ComputeDeployTargetBuild, computeTargetAppDir, inferComputeTargetFromCwd, type LoadedComputeConfig, normalizeComputeConfig, selectComputeDeployTarget, } from "./normalize.ts";
|
|
12
|
-
export { serializeComputeConfig } from "./serialize.ts";
|
|
13
|
+
export { serializeComputeConfig, serializeComputeConfigJson, } from "./serialize.ts";
|
|
13
14
|
export { resolveSourceRoot, sourceRootLineage } from "./source-root.ts";
|
|
14
15
|
export { COMPUTE_FRAMEWORKS, COMPUTE_REGIONS, type ComputeAppConfig, type ComputeBuildConfig, type ComputeConfig, type ComputeConfigDefaults, type ComputeEnvConfig, type ComputeFramework, type ComputeRegion, defineComputeConfig, } from "./types.ts";
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,cAAc,EACd,UAAU,EACV,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,KAAK,kBAAkB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,yBAAyB,EACzB,KAAK,wBAAwB,EAC7B,gCAAgC,EAChC,+BAA+B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,cAAc,EACd,UAAU,EACV,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,4BAA4B,EAC5B,2BAA2B,EAC3B,KAAK,kBAAkB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,yBAAyB,EACzB,KAAK,wBAAwB,EAC7B,gCAAgC,EAChC,+BAA+B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,mBAAmB,GACpB,MAAM,YAAY,CAAC"}
|
package/dist/config/index.js
CHANGED
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
* project/branch resolution, prompts, flag precedence — stay with consumers.
|
|
8
8
|
*/
|
|
9
9
|
export { ASTRO_CONFIG_FILENAMES, CONFIG_BACKED_BUILD_TYPES, defaultHttpPortForBuildType, ENTRYPOINT_BUILD_TYPES, FRAMEWORK_KEYS, FRAMEWORKS, frameworkByKey, frameworkFromAlias, isConfigBackedBuildType, LOCAL_DEV_BUILD_TYPES, NEXT_CONFIG_FILENAMES, NUXT_CONFIG_FILENAMES, } from "./frameworks.js";
|
|
10
|
-
export {
|
|
10
|
+
export { COMPUTE_CONFIG_JSON_SCHEMA, COMPUTE_CONFIG_JSON_SCHEMA_URL, } from "./json-schema.js";
|
|
11
|
+
export { COMPUTE_CONFIG_FILENAME, COMPUTE_CONFIG_FILENAMES, COMPUTE_CONFIG_JSON_FILENAME, ComputeConfigAmbiguousError, ComputeConfigLoadError, findComputeConfigCandidates, findComputeConfigDir, loadComputeConfig, } from "./load.js";
|
|
11
12
|
export { ComputeConfigInvalidError, ComputeConfigTargetRequiredError, ComputeConfigTargetUnknownError, computeTargetAppDir, inferComputeTargetFromCwd, normalizeComputeConfig, selectComputeDeployTarget, } from "./normalize.js";
|
|
12
|
-
export { serializeComputeConfig } from "./serialize.js";
|
|
13
|
+
export { serializeComputeConfig, serializeComputeConfigJson, } from "./serialize.js";
|
|
13
14
|
export { resolveSourceRoot, sourceRootLineage } from "./source-root.js";
|
|
14
15
|
export { COMPUTE_FRAMEWORKS, COMPUTE_REGIONS, defineComputeConfig, } from "./types.js";
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
package/dist/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EAEzB,2BAA2B,EAC3B,sBAAsB,EACtB,cAAc,EACd,UAAU,EAGV,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAE3B,sBAAsB,EACtB,2BAA2B,EAC3B,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,yBAAyB,EAEzB,gCAAgC,EAChC,+BAA+B,EAG/B,mBAAmB,EACnB,yBAAyB,EAEzB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EAEzB,2BAA2B,EAC3B,sBAAsB,EACtB,cAAc,EACd,UAAU,EAGV,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,4BAA4B,EAC5B,2BAA2B,EAE3B,sBAAsB,EACtB,2BAA2B,EAC3B,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,yBAAyB,EAEzB,gCAAgC,EAChC,+BAA+B,EAG/B,mBAAmB,EACnB,yBAAyB,EAEzB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,kBAAkB,EAClB,eAAe,EAQf,mBAAmB,GACpB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSON Schema for `prisma.compute.json`, built from the same constants as the
|
|
3
|
+
* runtime validator so enums and key sets cannot drift.
|
|
4
|
+
*
|
|
5
|
+
* The schema exists for editor assistance ($schema autocomplete/validation)
|
|
6
|
+
* and static tooling. It encodes structure, enums, and ranges; cross-field
|
|
7
|
+
* rules (e.g. the custom framework requiring build output settings) stay in
|
|
8
|
+
* `normalizeComputeConfig`, which remains the authority for every format.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Intended publish location of the compute config JSON Schema. The URL does
|
|
12
|
+
* not resolve yet, so serializers omit `$schema` by default; once the schema
|
|
13
|
+
* is hosted here, pass this constant to `serializeComputeConfigJson` to emit
|
|
14
|
+
* it in generated configs.
|
|
15
|
+
*/
|
|
16
|
+
export declare const COMPUTE_CONFIG_JSON_SCHEMA_URL = "https://schemas.prisma.io/compute.schema.json";
|
|
17
|
+
/**
|
|
18
|
+
* The compute config JSON Schema document (draft-07 for the broadest editor
|
|
19
|
+
* support). Publish this at `COMPUTE_CONFIG_JSON_SCHEMA_URL`.
|
|
20
|
+
*/
|
|
21
|
+
export declare const COMPUTE_CONFIG_JSON_SCHEMA: {
|
|
22
|
+
readonly $schema: "http://json-schema.org/draft-07/schema#";
|
|
23
|
+
readonly $id: "https://schemas.prisma.io/compute.schema.json";
|
|
24
|
+
readonly title: "Prisma Compute config";
|
|
25
|
+
readonly description: "Static serialization of the Prisma Compute config. Define app for a single-app repository or apps for a multi-app repository.";
|
|
26
|
+
readonly type: "object";
|
|
27
|
+
readonly additionalProperties: false;
|
|
28
|
+
readonly properties: {
|
|
29
|
+
readonly $schema: {
|
|
30
|
+
readonly type: "string";
|
|
31
|
+
};
|
|
32
|
+
readonly region: {
|
|
33
|
+
readonly description: "Default region used when creating new apps. Existing apps keep their current region.";
|
|
34
|
+
readonly enum: readonly ["us-east-1", "us-west-1", "eu-west-3", "eu-central-1", "ap-northeast-1", "ap-southeast-1"];
|
|
35
|
+
};
|
|
36
|
+
readonly app: {
|
|
37
|
+
readonly type: "object";
|
|
38
|
+
readonly additionalProperties: false;
|
|
39
|
+
readonly properties: {
|
|
40
|
+
readonly name: {
|
|
41
|
+
readonly description: "Deployed app name. Defaults to inference.";
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly minLength: 1;
|
|
44
|
+
};
|
|
45
|
+
readonly region: {
|
|
46
|
+
readonly description: "App region override. Defaults to the project region.";
|
|
47
|
+
readonly enum: readonly ["us-east-1", "us-west-1", "eu-west-3", "eu-central-1", "ap-northeast-1", "ap-southeast-1"];
|
|
48
|
+
};
|
|
49
|
+
readonly root: {
|
|
50
|
+
readonly description: "App directory relative to the config file. Defaults to the config file directory.";
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
readonly minLength: 1;
|
|
53
|
+
};
|
|
54
|
+
readonly framework: {
|
|
55
|
+
readonly description: "Framework to deploy. Defaults to detection from the app directory.";
|
|
56
|
+
readonly enum: readonly ["nextjs", "nuxt", "astro", "hono", "nestjs", "tanstack-start", "custom", "bun"];
|
|
57
|
+
};
|
|
58
|
+
readonly entry: {
|
|
59
|
+
readonly description: "Entrypoint path for Bun (and Hono) deploys, relative to the app root.";
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
readonly minLength: 1;
|
|
62
|
+
};
|
|
63
|
+
readonly httpPort: {
|
|
64
|
+
readonly description: "HTTP port the deployed app listens on. Defaults to the framework default.";
|
|
65
|
+
readonly type: "integer";
|
|
66
|
+
readonly minimum: 1;
|
|
67
|
+
readonly maximum: 65535;
|
|
68
|
+
};
|
|
69
|
+
readonly env: {
|
|
70
|
+
readonly description: "Environment variables for the deploy. A string is shorthand for a dotenv file path.";
|
|
71
|
+
readonly oneOf: readonly [{
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly minLength: 1;
|
|
74
|
+
}, {
|
|
75
|
+
readonly type: "object";
|
|
76
|
+
readonly additionalProperties: false;
|
|
77
|
+
readonly properties: {
|
|
78
|
+
readonly file: {
|
|
79
|
+
readonly description: "Dotenv file path(s) resolved relative to the config file directory.";
|
|
80
|
+
readonly oneOf: readonly [{
|
|
81
|
+
readonly type: "string";
|
|
82
|
+
readonly minLength: 1;
|
|
83
|
+
}, {
|
|
84
|
+
readonly type: "array";
|
|
85
|
+
readonly items: {
|
|
86
|
+
readonly type: "string";
|
|
87
|
+
readonly minLength: 1;
|
|
88
|
+
};
|
|
89
|
+
}];
|
|
90
|
+
};
|
|
91
|
+
readonly vars: {
|
|
92
|
+
readonly description: "Inline environment variable assignments. This file is committed — keep secrets in platform branch config.";
|
|
93
|
+
readonly type: "object";
|
|
94
|
+
readonly additionalProperties: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly minLength: 1;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}];
|
|
101
|
+
};
|
|
102
|
+
readonly build: {
|
|
103
|
+
readonly description: "Build settings. When present, these own the app's build configuration.";
|
|
104
|
+
readonly type: "object";
|
|
105
|
+
readonly additionalProperties: false;
|
|
106
|
+
readonly properties: {
|
|
107
|
+
readonly command: {
|
|
108
|
+
readonly description: "Build command run in the app root. null skips the build step.";
|
|
109
|
+
readonly type: readonly ["string", "null"];
|
|
110
|
+
};
|
|
111
|
+
readonly outputDirectory: {
|
|
112
|
+
readonly description: "Framework output path relative to the app root, e.g. \".next/standalone\".";
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly minLength: 1;
|
|
115
|
+
};
|
|
116
|
+
readonly entrypoint: {
|
|
117
|
+
readonly description: "Entrypoint for the built artifact, relative to outputDirectory when one is set.";
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly minLength: 1;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
readonly apps: {
|
|
126
|
+
readonly description: "Apps keyed by deploy target name.";
|
|
127
|
+
readonly type: "object";
|
|
128
|
+
readonly minProperties: 1;
|
|
129
|
+
readonly additionalProperties: {
|
|
130
|
+
readonly type: "object";
|
|
131
|
+
readonly additionalProperties: false;
|
|
132
|
+
readonly properties: {
|
|
133
|
+
readonly name: {
|
|
134
|
+
readonly description: "Deployed app name. Defaults to inference.";
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly minLength: 1;
|
|
137
|
+
};
|
|
138
|
+
readonly region: {
|
|
139
|
+
readonly description: "App region override. Defaults to the project region.";
|
|
140
|
+
readonly enum: readonly ["us-east-1", "us-west-1", "eu-west-3", "eu-central-1", "ap-northeast-1", "ap-southeast-1"];
|
|
141
|
+
};
|
|
142
|
+
readonly root: {
|
|
143
|
+
readonly description: "App directory relative to the config file. Defaults to the config file directory.";
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly minLength: 1;
|
|
146
|
+
};
|
|
147
|
+
readonly framework: {
|
|
148
|
+
readonly description: "Framework to deploy. Defaults to detection from the app directory.";
|
|
149
|
+
readonly enum: readonly ["nextjs", "nuxt", "astro", "hono", "nestjs", "tanstack-start", "custom", "bun"];
|
|
150
|
+
};
|
|
151
|
+
readonly entry: {
|
|
152
|
+
readonly description: "Entrypoint path for Bun (and Hono) deploys, relative to the app root.";
|
|
153
|
+
readonly type: "string";
|
|
154
|
+
readonly minLength: 1;
|
|
155
|
+
};
|
|
156
|
+
readonly httpPort: {
|
|
157
|
+
readonly description: "HTTP port the deployed app listens on. Defaults to the framework default.";
|
|
158
|
+
readonly type: "integer";
|
|
159
|
+
readonly minimum: 1;
|
|
160
|
+
readonly maximum: 65535;
|
|
161
|
+
};
|
|
162
|
+
readonly env: {
|
|
163
|
+
readonly description: "Environment variables for the deploy. A string is shorthand for a dotenv file path.";
|
|
164
|
+
readonly oneOf: readonly [{
|
|
165
|
+
readonly type: "string";
|
|
166
|
+
readonly minLength: 1;
|
|
167
|
+
}, {
|
|
168
|
+
readonly type: "object";
|
|
169
|
+
readonly additionalProperties: false;
|
|
170
|
+
readonly properties: {
|
|
171
|
+
readonly file: {
|
|
172
|
+
readonly description: "Dotenv file path(s) resolved relative to the config file directory.";
|
|
173
|
+
readonly oneOf: readonly [{
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
readonly minLength: 1;
|
|
176
|
+
}, {
|
|
177
|
+
readonly type: "array";
|
|
178
|
+
readonly items: {
|
|
179
|
+
readonly type: "string";
|
|
180
|
+
readonly minLength: 1;
|
|
181
|
+
};
|
|
182
|
+
}];
|
|
183
|
+
};
|
|
184
|
+
readonly vars: {
|
|
185
|
+
readonly description: "Inline environment variable assignments. This file is committed — keep secrets in platform branch config.";
|
|
186
|
+
readonly type: "object";
|
|
187
|
+
readonly additionalProperties: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
readonly minLength: 1;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
}];
|
|
194
|
+
};
|
|
195
|
+
readonly build: {
|
|
196
|
+
readonly description: "Build settings. When present, these own the app's build configuration.";
|
|
197
|
+
readonly type: "object";
|
|
198
|
+
readonly additionalProperties: false;
|
|
199
|
+
readonly properties: {
|
|
200
|
+
readonly command: {
|
|
201
|
+
readonly description: "Build command run in the app root. null skips the build step.";
|
|
202
|
+
readonly type: readonly ["string", "null"];
|
|
203
|
+
};
|
|
204
|
+
readonly outputDirectory: {
|
|
205
|
+
readonly description: "Framework output path relative to the app root, e.g. \".next/standalone\".";
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
readonly minLength: 1;
|
|
208
|
+
};
|
|
209
|
+
readonly entrypoint: {
|
|
210
|
+
readonly description: "Entrypoint for the built artifact, relative to outputDirectory when one is set.";
|
|
211
|
+
readonly type: "string";
|
|
212
|
+
readonly minLength: 1;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
readonly propertyNames: {
|
|
219
|
+
readonly minLength: 1;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
readonly oneOf: readonly [{
|
|
224
|
+
readonly required: readonly ["app"];
|
|
225
|
+
}, {
|
|
226
|
+
readonly required: readonly ["apps"];
|
|
227
|
+
}];
|
|
228
|
+
};
|
|
229
|
+
//# sourceMappingURL=json-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../src/config/json-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,kDACM,CAAC;AAkGlD;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyB7B,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSON Schema for `prisma.compute.json`, built from the same constants as the
|
|
3
|
+
* runtime validator so enums and key sets cannot drift.
|
|
4
|
+
*
|
|
5
|
+
* The schema exists for editor assistance ($schema autocomplete/validation)
|
|
6
|
+
* and static tooling. It encodes structure, enums, and ranges; cross-field
|
|
7
|
+
* rules (e.g. the custom framework requiring build output settings) stay in
|
|
8
|
+
* `normalizeComputeConfig`, which remains the authority for every format.
|
|
9
|
+
*/
|
|
10
|
+
import { COMPUTE_FRAMEWORKS, COMPUTE_REGIONS } from "./types.js";
|
|
11
|
+
/**
|
|
12
|
+
* Intended publish location of the compute config JSON Schema. The URL does
|
|
13
|
+
* not resolve yet, so serializers omit `$schema` by default; once the schema
|
|
14
|
+
* is hosted here, pass this constant to `serializeComputeConfigJson` to emit
|
|
15
|
+
* it in generated configs.
|
|
16
|
+
*/
|
|
17
|
+
export const COMPUTE_CONFIG_JSON_SCHEMA_URL = "https://schemas.prisma.io/compute.schema.json";
|
|
18
|
+
const ENV_SCHEMA = {
|
|
19
|
+
description: "Environment variables for the deploy. A string is shorthand for a dotenv file path.",
|
|
20
|
+
oneOf: [
|
|
21
|
+
{ type: "string", minLength: 1 },
|
|
22
|
+
{
|
|
23
|
+
type: "object",
|
|
24
|
+
additionalProperties: false,
|
|
25
|
+
properties: {
|
|
26
|
+
file: {
|
|
27
|
+
description: "Dotenv file path(s) resolved relative to the config file directory.",
|
|
28
|
+
oneOf: [
|
|
29
|
+
{ type: "string", minLength: 1 },
|
|
30
|
+
{ type: "array", items: { type: "string", minLength: 1 } },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
vars: {
|
|
34
|
+
description: "Inline environment variable assignments. This file is committed — keep secrets in platform branch config.",
|
|
35
|
+
type: "object",
|
|
36
|
+
additionalProperties: { type: "string", minLength: 1 },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
};
|
|
42
|
+
const BUILD_SCHEMA = {
|
|
43
|
+
description: "Build settings. When present, these own the app's build configuration.",
|
|
44
|
+
type: "object",
|
|
45
|
+
additionalProperties: false,
|
|
46
|
+
properties: {
|
|
47
|
+
command: {
|
|
48
|
+
description: "Build command run in the app root. null skips the build step.",
|
|
49
|
+
type: ["string", "null"],
|
|
50
|
+
},
|
|
51
|
+
outputDirectory: {
|
|
52
|
+
description: 'Framework output path relative to the app root, e.g. ".next/standalone".',
|
|
53
|
+
type: "string",
|
|
54
|
+
minLength: 1,
|
|
55
|
+
},
|
|
56
|
+
entrypoint: {
|
|
57
|
+
description: "Entrypoint for the built artifact, relative to outputDirectory when one is set.",
|
|
58
|
+
type: "string",
|
|
59
|
+
minLength: 1,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
const APP_SCHEMA = {
|
|
64
|
+
type: "object",
|
|
65
|
+
additionalProperties: false,
|
|
66
|
+
properties: {
|
|
67
|
+
name: {
|
|
68
|
+
description: "Deployed app name. Defaults to inference.",
|
|
69
|
+
type: "string",
|
|
70
|
+
minLength: 1,
|
|
71
|
+
},
|
|
72
|
+
region: {
|
|
73
|
+
description: "App region override. Defaults to the project region.",
|
|
74
|
+
enum: COMPUTE_REGIONS,
|
|
75
|
+
},
|
|
76
|
+
root: {
|
|
77
|
+
description: "App directory relative to the config file. Defaults to the config file directory.",
|
|
78
|
+
type: "string",
|
|
79
|
+
minLength: 1,
|
|
80
|
+
},
|
|
81
|
+
framework: {
|
|
82
|
+
description: "Framework to deploy. Defaults to detection from the app directory.",
|
|
83
|
+
enum: COMPUTE_FRAMEWORKS,
|
|
84
|
+
},
|
|
85
|
+
entry: {
|
|
86
|
+
description: "Entrypoint path for Bun (and Hono) deploys, relative to the app root.",
|
|
87
|
+
type: "string",
|
|
88
|
+
minLength: 1,
|
|
89
|
+
},
|
|
90
|
+
httpPort: {
|
|
91
|
+
description: "HTTP port the deployed app listens on. Defaults to the framework default.",
|
|
92
|
+
type: "integer",
|
|
93
|
+
minimum: 1,
|
|
94
|
+
maximum: 65535,
|
|
95
|
+
},
|
|
96
|
+
env: ENV_SCHEMA,
|
|
97
|
+
build: BUILD_SCHEMA,
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* The compute config JSON Schema document (draft-07 for the broadest editor
|
|
102
|
+
* support). Publish this at `COMPUTE_CONFIG_JSON_SCHEMA_URL`.
|
|
103
|
+
*/
|
|
104
|
+
export const COMPUTE_CONFIG_JSON_SCHEMA = {
|
|
105
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
106
|
+
$id: COMPUTE_CONFIG_JSON_SCHEMA_URL,
|
|
107
|
+
title: "Prisma Compute config",
|
|
108
|
+
description: "Static serialization of the Prisma Compute config. Define app for a single-app repository or apps for a multi-app repository.",
|
|
109
|
+
type: "object",
|
|
110
|
+
additionalProperties: false,
|
|
111
|
+
properties: {
|
|
112
|
+
$schema: { type: "string" },
|
|
113
|
+
region: {
|
|
114
|
+
description: "Default region used when creating new apps. Existing apps keep their current region.",
|
|
115
|
+
enum: COMPUTE_REGIONS,
|
|
116
|
+
},
|
|
117
|
+
app: APP_SCHEMA,
|
|
118
|
+
apps: {
|
|
119
|
+
description: "Apps keyed by deploy target name.",
|
|
120
|
+
type: "object",
|
|
121
|
+
minProperties: 1,
|
|
122
|
+
additionalProperties: APP_SCHEMA,
|
|
123
|
+
propertyNames: { minLength: 1 },
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
oneOf: [{ required: ["app"] }, { required: ["apps"] }],
|
|
127
|
+
};
|
|
128
|
+
//# sourceMappingURL=json-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../../src/config/json-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,8BAA8B,GACzC,+CAA+C,CAAC;AAElD,MAAM,UAAU,GAAG;IACjB,WAAW,EACT,qFAAqF;IACvF,KAAK,EAAE;QACL,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;QAChC;YACE,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,WAAW,EACT,qEAAqE;oBACvE,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;wBAChC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE;qBAC3D;iBACF;gBACD,IAAI,EAAE;oBACJ,WAAW,EACT,2GAA2G;oBAC7G,IAAI,EAAE,QAAQ;oBACd,oBAAoB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;iBACvD;aACF;SACF;KACF;CACO,CAAC;AAEX,MAAM,YAAY,GAAG;IACnB,WAAW,EACT,wEAAwE;IAC1E,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,OAAO,EAAE;YACP,WAAW,EACT,+DAA+D;YACjE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM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,sFAAsF;YACxF,IAAI,EAAE,eAAe;SACtB;QACD,GAAG,EAAE,UAAU;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mCAAmC;YAChD,IAAI,EAAE,QAAQ;YACd,aAAa,EAAE,CAAC;YAChB,oBAAoB,EAAE,UAAU;YAChC,aAAa,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;SAChC;KACF;IACD,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;CAC9C,CAAC"}
|
package/dist/config/load.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Result } from "better-result";
|
|
2
2
|
import { type ComputeConfigInvalidError, type LoadedComputeConfig } from "./normalize.ts";
|
|
3
3
|
export declare const COMPUTE_CONFIG_FILENAME = "prisma.compute.ts";
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const COMPUTE_CONFIG_JSON_FILENAME = "prisma.compute.json";
|
|
5
|
+
export declare const COMPUTE_CONFIG_FILENAMES: readonly ["prisma.compute.ts", "prisma.compute.mts", "prisma.compute.js", "prisma.compute.mjs", "prisma.compute.cjs", "prisma.compute.json"];
|
|
5
6
|
declare const ComputeConfigAmbiguousError_base: import("better-result").TaggedErrorClass<"ComputeConfigAmbiguousError", {
|
|
6
7
|
message: string;
|
|
7
8
|
configPaths: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../src/config/load.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAe,MAAM,eAAe,CAAC;AAGpD,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EAEzB,MAAM,gBAAgB,CAAC;AAGxB,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../src/config/load.ts"],"names":[],"mappings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