@shopify/cli-hydrogen 12.0.1 → 12.0.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.
@@ -1,5 +1,12 @@
1
1
  # skeleton
2
2
 
3
+ ## 2026.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`23431c956193420bce3442e9e5cc711dc95cc497`](https://github.com/Shopify/hydrogen/commit/23431c956193420bce3442e9e5cc711dc95cc497)]:
8
+ - @shopify/hydrogen@2026.4.4
9
+
3
10
  ## 2026.4.3
4
11
 
5
12
  ### Patch Changes
@@ -2,7 +2,7 @@
2
2
  "name": "skeleton",
3
3
  "private": true,
4
4
  "sideEffects": false,
5
- "version": "2026.4.3",
5
+ "version": "2026.4.4",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "build": "shopify hydrogen build --codegen",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "prettier": "@shopify/prettier-config",
16
16
  "dependencies": {
17
- "@shopify/hydrogen": "2026.4.3",
17
+ "@shopify/hydrogen": "2026.4.4",
18
18
  "graphql": "^16.10.0",
19
19
  "graphql-tag": "^2.12.6",
20
20
  "isbot": "^5.1.22",
@@ -1,14 +1,30 @@
1
1
  import { createRequire } from 'node:module';
2
2
  import { pathToFileURL } from 'node:url';
3
+ import { AbortError } from '@shopify/cli-kit/node/error';
3
4
  import { findUpAndReadPackageJson } from '@shopify/cli-kit/node/node-package-manager';
4
5
  import { joinPath, dirname } from '@shopify/cli-kit/node/path';
5
6
 
6
7
  const require2 = createRequire(import.meta.url);
7
8
  async function importVite(root) {
8
- const vitePath = require2.resolve(
9
- "vite",
10
- process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [root] }
11
- );
9
+ let vitePath;
10
+ try {
11
+ vitePath = require2.resolve(
12
+ "vite",
13
+ process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [root] }
14
+ );
15
+ } catch (error) {
16
+ if (error instanceof Error && error.code === "MODULE_NOT_FOUND") {
17
+ throw new AbortError(
18
+ "Could not find the 'vite' package in your project.",
19
+ "Hydrogen uses Vite to run this command.",
20
+ [
21
+ "Run this command from the root directory of your Hydrogen app.",
22
+ "Install your project dependencies (for example, by running `npm install`) and try again."
23
+ ]
24
+ );
25
+ }
26
+ throw error;
27
+ }
12
28
  const vitePackageJson = await findUpAndReadPackageJson(vitePath);
13
29
  let viteNodeIndexFile = vitePackageJson.content.exports?.["."];
14
30
  if (typeof viteNodeIndexFile !== "string") {
@@ -1675,5 +1675,5 @@
1675
1675
  ]
1676
1676
  }
1677
1677
  },
1678
- "version": "12.0.1"
1678
+ "version": "12.0.2"
1679
1679
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "@shopify:registry": "https://registry.npmjs.org"
6
6
  },
7
- "version": "12.0.1",
7
+ "version": "12.0.2",
8
8
  "license": "MIT",
9
9
  "type": "module",
10
10
  "repository": {