@shopify/oxygen-cli 1.8.0 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ async function healthCheck(options) {
|
|
8
8
|
outputInfo("Performing health check on the deployment...", logger);
|
9
9
|
let attempts = 0;
|
10
10
|
let delay = 0;
|
11
|
+
let calledHealthCheckError = false;
|
11
12
|
const startTime = Date.now();
|
12
13
|
const handleInterval = async () => {
|
13
14
|
if (attempts < 10) {
|
@@ -18,7 +19,10 @@ async function healthCheck(options) {
|
|
18
19
|
const elapsedTime = (Date.now() - startTime) / 1e3;
|
19
20
|
if (elapsedTime + delay / 1e3 > config.healthCheckMaxDuration) {
|
20
21
|
const error = new HealthCheckError("Unable to verify deployment health.");
|
21
|
-
|
22
|
+
if (!calledHealthCheckError) {
|
23
|
+
calledHealthCheckError = true;
|
24
|
+
hooks?.onHealthCheckError?.(error);
|
25
|
+
}
|
22
26
|
throw error;
|
23
27
|
}
|
24
28
|
attempts++;
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
"@shopify:registry": "https://registry.npmjs.org"
|
6
6
|
},
|
7
7
|
"license": "MIT",
|
8
|
-
"version": "1.8.
|
8
|
+
"version": "1.8.2",
|
9
9
|
"type": "module",
|
10
10
|
"scripts": {
|
11
11
|
"build": "tsup --clean --config ./tsup.config.ts && oclif manifest",
|
@@ -26,12 +26,15 @@
|
|
26
26
|
"engines": {
|
27
27
|
"node": ">=14.17.0"
|
28
28
|
},
|
29
|
+
"exports": {
|
30
|
+
"./deploy": "./dist/deploy/index.js"
|
31
|
+
},
|
29
32
|
"files": [
|
30
33
|
"dist",
|
31
34
|
"/oclif.manifest.json"
|
32
35
|
],
|
33
36
|
"dependencies": {
|
34
|
-
"@oclif/core": "2.
|
37
|
+
"@oclif/core": "2.11.5",
|
35
38
|
"@shopify/cli-kit": "^3.48.0",
|
36
39
|
"async": "^3.2.4"
|
37
40
|
},
|
@@ -41,13 +44,13 @@
|
|
41
44
|
"@shopify/prettier-config": "^1.1.2",
|
42
45
|
"@types/async": "^3.2.18",
|
43
46
|
"@types/node": "^20.4.5",
|
44
|
-
"@types/prettier": "^
|
45
|
-
"eslint": "^8.
|
47
|
+
"@types/prettier": "^3.0.0",
|
48
|
+
"eslint": "^8.46.0",
|
46
49
|
"node-fetch": "^3.3.2",
|
47
50
|
"oclif": "^3",
|
48
51
|
"tsup": "^7.1.0",
|
49
52
|
"typescript": "^5.1.3",
|
50
|
-
"vite": "^4.4.
|
53
|
+
"vite": "^4.4.8",
|
51
54
|
"vitest": "^0.33.0"
|
52
55
|
},
|
53
56
|
"prettier": "@shopify/prettier-config",
|