@alwaysmeticulous/cli 2.248.5 → 2.248.6
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/commands/upload-assets-and-execute-test-run-in-cloud/upload-assets-and-execute-test-run-in-cloud.command.d.ts +7 -2
- package/dist/commands/upload-assets-and-execute-test-run-in-cloud/upload-assets-and-execute-test-run-in-cloud.command.js +17 -7
- package/dist/commands/upload-assets-and-execute-test-run-in-cloud/upload-assets-and-execute-test-run-in-cloud.command.js.map +1 -1
- package/package.json +3 -3
|
@@ -7,9 +7,14 @@ export declare const uploadAssetsAndExecuteTestRunInCloudCommand: import("yargs"
|
|
|
7
7
|
readonly string: true;
|
|
8
8
|
};
|
|
9
9
|
readonly appDirectory: {
|
|
10
|
-
readonly demandOption:
|
|
10
|
+
readonly demandOption: false;
|
|
11
|
+
readonly string: true;
|
|
12
|
+
readonly description: "The directory containing the application's static assets. Either this or --appZip must be provided.";
|
|
13
|
+
};
|
|
14
|
+
readonly appZip: {
|
|
15
|
+
readonly demandOption: false;
|
|
11
16
|
readonly string: true;
|
|
12
|
-
readonly description: "The
|
|
17
|
+
readonly description: "The zip file containing the application's static assets. Either this or --appDirectory must be provided.";
|
|
13
18
|
};
|
|
14
19
|
readonly rewrites: {
|
|
15
20
|
readonly string: true;
|
|
@@ -30,9 +30,13 @@ const Sentry = __importStar(require("@sentry/node"));
|
|
|
30
30
|
const command_builder_1 = require("../../command-utils/command-builder");
|
|
31
31
|
const common_options_1 = require("../../command-utils/common-options");
|
|
32
32
|
const out_of_date_client_error_1 = require("../../utils/out-of-date-client-error");
|
|
33
|
-
const handler = async ({ apiToken, commitSha: commitSha_, appDirectory, rewrites, waitForBase, }) => {
|
|
33
|
+
const handler = async ({ apiToken, commitSha: commitSha_, appDirectory, appZip, rewrites, waitForBase, }) => {
|
|
34
34
|
const logger = (0, common_1.initLogger)();
|
|
35
35
|
const commitSha = await (0, common_1.getCommitSha)(commitSha_);
|
|
36
|
+
if (!appDirectory && !appZip) {
|
|
37
|
+
logger.error("No app directory or app zip provided, you must provide one with --appDirectory or --appZip");
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
36
40
|
if (!commitSha) {
|
|
37
41
|
logger.error("No commit sha found, you must be in a git repository or provide one with --commitSha");
|
|
38
42
|
process.exit(1);
|
|
@@ -41,14 +45,15 @@ const handler = async ({ apiToken, commitSha: commitSha_, appDirectory, rewrites
|
|
|
41
45
|
Sentry.captureMessage("Received upload assets request", {
|
|
42
46
|
level: "debug",
|
|
43
47
|
extra: {
|
|
44
|
-
commitSha: commitSha
|
|
45
|
-
}
|
|
48
|
+
commitSha: commitSha,
|
|
49
|
+
},
|
|
46
50
|
});
|
|
47
51
|
try {
|
|
48
52
|
await (0, remote_replay_launcher_1.uploadAssetsAndTriggerTestRun)({
|
|
49
53
|
apiToken,
|
|
50
54
|
commitSha,
|
|
51
55
|
appDirectory,
|
|
56
|
+
appZip,
|
|
52
57
|
rewrites: parseRewrites(rewrites),
|
|
53
58
|
waitForBase,
|
|
54
59
|
});
|
|
@@ -98,15 +103,20 @@ exports.uploadAssetsAndExecuteTestRunInCloudCommand = (0, command_builder_1.buil
|
|
|
98
103
|
apiToken: common_options_1.OPTIONS.apiToken,
|
|
99
104
|
commitSha: common_options_1.OPTIONS.commitSha,
|
|
100
105
|
appDirectory: {
|
|
101
|
-
demandOption:
|
|
106
|
+
demandOption: false,
|
|
107
|
+
string: true,
|
|
108
|
+
description: "The directory containing the application's static assets. Either this or --appZip must be provided.",
|
|
109
|
+
},
|
|
110
|
+
appZip: {
|
|
111
|
+
demandOption: false,
|
|
102
112
|
string: true,
|
|
103
|
-
description: "The
|
|
113
|
+
description: "The zip file containing the application's static assets. Either this or --appDirectory must be provided.",
|
|
104
114
|
},
|
|
105
115
|
rewrites: {
|
|
106
116
|
string: true,
|
|
107
117
|
default: "[]",
|
|
108
|
-
description: "URL rewrite rules. This string should be a valid JSON array in the format described at https://github.com/vercel/serve-handler?tab=readme-ov-file#rewrites-array."
|
|
109
|
-
|
|
118
|
+
description: "URL rewrite rules. This string should be a valid JSON array in the format described at https://github.com/vercel/serve-handler?tab=readme-ov-file#rewrites-array." +
|
|
119
|
+
' Note: if no rules are passed, or an empty list is passed, we default to the rewrite rule \'{ source: "**", destination: "/index.html" }\'.',
|
|
110
120
|
},
|
|
111
121
|
waitForBase: {
|
|
112
122
|
demandOption: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-assets-and-execute-test-run-in-cloud.command.js","sourceRoot":"","sources":["../../../src/commands/upload-assets-and-execute-test-run-in-cloud/upload-assets-and-execute-test-run-in-cloud.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAAoE;AACpE,qFAAyF;AACzF,qDAAuC;AACvC,yEAAmE;AACnE,uEAA6D;AAC7D,mFAG8C;
|
|
1
|
+
{"version":3,"file":"upload-assets-and-execute-test-run-in-cloud.command.js","sourceRoot":"","sources":["../../../src/commands/upload-assets-and-execute-test-run-in-cloud/upload-assets-and-execute-test-run-in-cloud.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qDAAoE;AACpE,qFAAyF;AACzF,qDAAuC;AACvC,yEAAmE;AACnE,uEAA6D;AAC7D,mFAG8C;AAW9C,MAAM,OAAO,GAAwC,KAAK,EAAE,EAC1D,QAAQ,EACR,SAAS,EAAE,UAAU,EACrB,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,WAAW,GACZ,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAC;IAC5B,MAAM,SAAS,GAAG,MAAM,IAAA,qBAAY,EAAC,UAAU,CAAC,CAAC;IAEjD,IAAI,CAAC,YAAY,IAAI,CAAC,MAAM,EAAE;QAC5B,MAAM,CAAC,KAAK,CACV,4FAA4F,CAC7F,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;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
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/cli",
|
|
3
|
-
"version": "2.248.
|
|
3
|
+
"version": "2.248.6",
|
|
4
4
|
"description": "The Meticulous CLI",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@alwaysmeticulous/common": "^2.248.0",
|
|
35
35
|
"@alwaysmeticulous/downloading-helpers": "^2.248.5",
|
|
36
36
|
"@alwaysmeticulous/record": "^2.248.0",
|
|
37
|
-
"@alwaysmeticulous/remote-replay-launcher": "^2.248.
|
|
37
|
+
"@alwaysmeticulous/remote-replay-launcher": "^2.248.6",
|
|
38
38
|
"@alwaysmeticulous/replay-debugger-ui": "^2.248.0",
|
|
39
39
|
"@alwaysmeticulous/replay-orchestrator-launcher": "^2.248.5",
|
|
40
40
|
"@alwaysmeticulous/sdk-bundles-api": "^2.248.0",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"jest": {
|
|
74
74
|
"preset": "../../jest.config.js"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "0cc02ac7afbc0f255b70456d725c66ff5d1c23ce"
|
|
77
77
|
}
|