@shopify/oxygen-cli 1.8.0 → 1.8.2

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.
@@ -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
- hooks?.onHealthCheckError?.(error);
22
+ if (!calledHealthCheckError) {
23
+ calledHealthCheckError = true;
24
+ hooks?.onHealthCheckError?.(error);
25
+ }
22
26
  throw error;
23
27
  }
24
28
  attempts++;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.8.0",
2
+ "version": "1.8.2",
3
3
  "commands": {
4
4
  "oxygen:deploy": {
5
5
  "id": "oxygen:deploy",
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.0",
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.10.0",
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": "^2.7.3",
45
- "eslint": "^8.45.0",
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.7",
53
+ "vite": "^4.4.8",
51
54
  "vitest": "^0.33.0"
52
55
  },
53
56
  "prettier": "@shopify/prettier-config",