veryfront 0.1.1171 → 0.1.1172
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/esm/cli/commands/deploy/command-help.d.ts.map +1 -1
- package/esm/cli/commands/deploy/command-help.js +4 -3
- package/esm/cli/commands/deploy/command.d.ts +6 -5
- package/esm/cli/commands/deploy/command.d.ts.map +1 -1
- package/esm/cli/commands/deploy/command.js +8 -5
- package/esm/cli/shared/deployment-provenance.d.ts.map +1 -1
- package/esm/cli/shared/deployment-provenance.js +3 -1
- package/esm/deno.js +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-help.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/deploy/command-help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"command-help.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/deploy/command-help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,UAAU,EAAE,WA0CxB,CAAC"}
|
|
@@ -6,7 +6,7 @@ export const deployHelp = {
|
|
|
6
6
|
options: [
|
|
7
7
|
{
|
|
8
8
|
flag: "-b, --branch <name>",
|
|
9
|
-
description: "Branch to release from (default: main)",
|
|
9
|
+
description: "Branch to release from (default: latest verified push, otherwise main)",
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
flag: "-e, --env, --environment <name>",
|
|
@@ -35,8 +35,9 @@ export const deployHelp = {
|
|
|
35
35
|
notes: [
|
|
36
36
|
"Requires VERYFRONT_API_TOKEN or an authenticated Veryfront login",
|
|
37
37
|
"Creates or links a project when veryfront.json is not present",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
38
|
+
"Promotes the latest verified push when --branch is omitted",
|
|
39
|
+
"Pushes main before the first deploy when no verified push exists",
|
|
40
|
+
"Creates a new release from the resolved branch",
|
|
40
41
|
"Verifies the target environment points to the created deployment before succeeding",
|
|
41
42
|
],
|
|
42
43
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Deploy command - Create a release and deploy to an environment
|
|
3
3
|
*
|
|
4
|
-
* Creates a new release from the specified branch
|
|
5
|
-
*
|
|
4
|
+
* Creates a new release from the specified branch, the latest verified push,
|
|
5
|
+
* or main when the project has not been pushed yet, then deploys it to the
|
|
6
|
+
* target environment (default: production).
|
|
6
7
|
*
|
|
7
8
|
* @module cli/commands/deploy
|
|
8
9
|
*/
|
|
@@ -15,7 +16,7 @@ import { type ReleaseAssetManifestResponse } from "../../../src/release-assets/i
|
|
|
15
16
|
*/
|
|
16
17
|
export declare const getDeployArgsSchema: () => import("../../../src/internal-agents/schema.js").Schema<import("../../../src/extensions/schema/schema-validator.js").InferShape<{
|
|
17
18
|
projectDir: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
18
|
-
branch: import("../../../src/internal-agents/schema.js").Schema<string>;
|
|
19
|
+
branch: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
19
20
|
env: import("../../../src/internal-agents/schema.js").Schema<string>;
|
|
20
21
|
releaseName: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
21
22
|
dryRun: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
@@ -28,7 +29,7 @@ export declare const getDeployArgsSchema: () => import("../../../src/internal-ag
|
|
|
28
29
|
}>>;
|
|
29
30
|
export declare const DeployArgsSchema: import("../../../src/internal-agents/schema.js").Schema<import("../../../src/extensions/schema/schema-validator.js").InferShape<{
|
|
30
31
|
projectDir: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
31
|
-
branch: import("../../../src/internal-agents/schema.js").Schema<string>;
|
|
32
|
+
branch: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
32
33
|
env: import("../../../src/internal-agents/schema.js").Schema<string>;
|
|
33
34
|
releaseName: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
34
35
|
dryRun: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
@@ -57,7 +58,7 @@ export type DeployOptions = Omit<ParsedDeployOptions, "skipSourcePush"> & {
|
|
|
57
58
|
*/
|
|
58
59
|
export declare const parseDeployArgs: (args: import("../../shared/types.js").ParsedArgs) => import("../../shared/args.js").SafeParseResult<import("../../../src/extensions/schema/schema-validator.js").InferShape<{
|
|
59
60
|
projectDir: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
60
|
-
branch: import("../../../src/internal-agents/schema.js").Schema<string>;
|
|
61
|
+
branch: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
61
62
|
env: import("../../../src/internal-agents/schema.js").Schema<string>;
|
|
62
63
|
releaseName: import("../../../src/internal-agents/schema.js").Schema<string | undefined>;
|
|
63
64
|
dryRun: import("../../../src/internal-agents/schema.js").Schema<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/deploy/command.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/deploy/command.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAI3E,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,wBAAwB,CAAC;AAiBhC,OAAO,EAIL,KAAK,aAAa,EAMnB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,KAAK,4BAA4B,EAAgB,MAAM,sCAAsC,CAAC;AAIvG;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;IAO5B,uFAA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AC/C,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IACP,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACf,GACL,OAAO,CAAC,4BAA4B,CAAC,CAmCvC;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAoQxF"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Deploy command - Create a release and deploy to an environment
|
|
3
3
|
*
|
|
4
|
-
* Creates a new release from the specified branch
|
|
5
|
-
*
|
|
4
|
+
* Creates a new release from the specified branch, the latest verified push,
|
|
5
|
+
* or main when the project has not been pushed yet, then deploys it to the
|
|
6
|
+
* target environment (default: production).
|
|
6
7
|
*
|
|
7
8
|
* @module cli/commands/deploy
|
|
8
9
|
*/
|
|
@@ -29,7 +30,7 @@ import { isWithinDirectory, normalizePath } from "../../../src/utils/index.js";
|
|
|
29
30
|
*/
|
|
30
31
|
export const getDeployArgsSchema = defineSchema((v) => v.object({
|
|
31
32
|
projectDir: v.string().optional(),
|
|
32
|
-
branch: v.string().min(1).
|
|
33
|
+
branch: v.string().min(1).optional(),
|
|
33
34
|
env: v.string().min(1).default("production"),
|
|
34
35
|
releaseName: v.string().min(1).optional(),
|
|
35
36
|
dryRun: v.boolean().default(false),
|
|
@@ -711,7 +712,7 @@ export async function waitForReleaseAssetManifest(client, projectSlug, releaseId
|
|
|
711
712
|
* Create a release and deploy to an environment
|
|
712
713
|
*/
|
|
713
714
|
export async function deployCommand(options) {
|
|
714
|
-
const { projectDir = cwd(), branch, env, releaseName, dryRun, quiet, skipSourcePush, assetManifestPollIntervalMs, assetManifestTimeoutMs, environmentPollIntervalMs, environmentTimeoutMs, } = options;
|
|
715
|
+
const { projectDir = cwd(), branch: requestedBranch, env, releaseName, dryRun, quiet, skipSourcePush, assetManifestPollIntervalMs, assetManifestTimeoutMs, environmentPollIntervalMs, environmentTimeoutMs, } = options;
|
|
715
716
|
if (isJsonMode() && !options.suppressJsonOutput) {
|
|
716
717
|
return deployCommandJson(options);
|
|
717
718
|
}
|
|
@@ -737,6 +738,7 @@ export async function deployCommand(options) {
|
|
|
737
738
|
};
|
|
738
739
|
const environmentConfig = await runWithProgress(getEnvironmentConfig);
|
|
739
740
|
const receipt = await runWithProgress(() => readPushReceipt(projectDir));
|
|
741
|
+
const branch = requestedBranch ?? receipt?.branch ?? "main";
|
|
740
742
|
const setup = await runWithProgress(() => ensureProjectLinkedForDeploy(projectDir, environmentConfig, receipt, dryRun, quiet));
|
|
741
743
|
let { config, client, project } = setup;
|
|
742
744
|
const bootstrapPush = needsBootstrapPush(receipt, skipSourcePush);
|
|
@@ -913,11 +915,12 @@ export async function deployCommand(options) {
|
|
|
913
915
|
return result;
|
|
914
916
|
}
|
|
915
917
|
async function deployCommandJson(options) {
|
|
916
|
-
const { projectDir = cwd(), branch, env, releaseName, dryRun, skipSourcePush, assetManifestPollIntervalMs, assetManifestTimeoutMs, environmentPollIntervalMs, environmentTimeoutMs, } = options;
|
|
918
|
+
const { projectDir = cwd(), branch: requestedBranch, env, releaseName, dryRun, skipSourcePush, assetManifestPollIntervalMs, assetManifestTimeoutMs, environmentPollIntervalMs, environmentTimeoutMs, } = options;
|
|
917
919
|
try {
|
|
918
920
|
streamJsonLine({ type: "step", name: "resolve-config", status: "started" });
|
|
919
921
|
const environmentConfig = getEnvironmentConfig();
|
|
920
922
|
const receipt = await readPushReceipt(projectDir);
|
|
923
|
+
const branch = requestedBranch ?? receipt?.branch ?? "main";
|
|
921
924
|
const setup = await ensureProjectLinkedForDeploy(projectDir, environmentConfig, receipt, dryRun, true);
|
|
922
925
|
let { config, client, project } = setup;
|
|
923
926
|
const bootstrapPush = needsBootstrapPush(receipt, skipSourcePush);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment-provenance.d.ts","sourceRoot":"","sources":["../../../src/cli/shared/deployment-provenance.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,QAAA,MAAM,eAAe,EAAG,CAAU,CAAC;AAGnC,eAAO,MAAM,0BAA0B,iCAA6C,CAAC;AAIrF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,eAAe,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,sBAAsB;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAuED,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAQ9E;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MA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Q,CAAC,EAAE,MAAM,CAAA;CAAE,GACzE,OAAO,CAAC,WAAW,CAAC,CAgBtB;AAED,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAWrF;AAED,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAKxE;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,sBAAsB,GAC/B,MAAM,GAAG,IAAI,CA0Bf"}
|
|
@@ -207,7 +207,9 @@ export function validatePushReceipt(receipt, expected) {
|
|
|
207
207
|
throw new Error("The latest push targeted a different project. Run veryfront push again.");
|
|
208
208
|
}
|
|
209
209
|
if (receipt.branch !== expected.branch) {
|
|
210
|
-
throw new Error(
|
|
210
|
+
throw new Error(`The latest push is for branch "${receipt.branch}", but deploy targets "${expected.branch}". ` +
|
|
211
|
+
`Run veryfront deploy --branch ${receipt.branch} to deploy the latest push, ` +
|
|
212
|
+
`or veryfront push --branch ${expected.branch} to preview ${expected.branch} first.`);
|
|
211
213
|
}
|
|
212
214
|
if (expected.commitSha && receipt.commitSha !== expected.commitSha.toLowerCase()) {
|
|
213
215
|
throw new Error(receipt.commitSha
|
package/esm/deno.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1172",
|
|
4
4
|
"description": "The simplest way to build AI-powered apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -344,10 +344,10 @@
|
|
|
344
344
|
"@types/react": "19.2.14",
|
|
345
345
|
"@types/react-dom": "19.2.3",
|
|
346
346
|
"ws": "8.21.0",
|
|
347
|
-
"@veryfront/ext-bundler-esbuild": "0.1.
|
|
348
|
-
"@veryfront/ext-content-mdx": "0.1.
|
|
349
|
-
"@veryfront/ext-css-tailwind": "0.1.
|
|
350
|
-
"@veryfront/ext-parser-babel": "0.1.
|
|
347
|
+
"@veryfront/ext-bundler-esbuild": "0.1.1172",
|
|
348
|
+
"@veryfront/ext-content-mdx": "0.1.1172",
|
|
349
|
+
"@veryfront/ext-css-tailwind": "0.1.1172",
|
|
350
|
+
"@veryfront/ext-parser-babel": "0.1.1172"
|
|
351
351
|
},
|
|
352
352
|
"devDependencies": {
|
|
353
353
|
"@types/node": "20.9.0"
|