@shopify/cli-hydrogen 9.0.9 → 9.0.11

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,17 @@
1
1
  # skeleton
2
2
 
3
+ ## 2025.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed an issue with the creation of JavaScript projects. ([#2818](https://github.com/Shopify/hydrogen/pull/2818)) by [@seanparsons](https://github.com/seanparsons)
8
+
9
+ ## 2025.1.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Updates the `@shopify/cli`, `@shopify/cli-kit` and `@shopify/plugin-cloudflare` dependencies to 3.77.1. ([#2816](https://github.com/Shopify/hydrogen/pull/2816)) by [@seanparsons](https://github.com/seanparsons)
14
+
3
15
  ## 2025.1.3
4
16
 
5
17
  ### Patch Changes
@@ -2,7 +2,7 @@
2
2
  "name": "skeleton",
3
3
  "private": true,
4
4
  "sideEffects": false,
5
- "version": "2025.1.3",
5
+ "version": "2025.1.5",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "build": "shopify hydrogen build --codegen",
@@ -32,7 +32,7 @@
32
32
  "@remix-run/dev": "^2.16.1",
33
33
  "@remix-run/fs-routes": "^2.16.1",
34
34
  "@remix-run/route-config": "^2.16.1",
35
- "@shopify/cli": "~3.77.0",
35
+ "@shopify/cli": "~3.77.1",
36
36
  "@shopify/hydrogen-codegen": "^0.3.3",
37
37
  "@shopify/mini-oxygen": "^3.1.2",
38
38
  "@shopify/oxygen-workers-types": "^4.1.6",
@@ -1,4 +1,4 @@
1
- import { glob, removeFile, readFile, writeFile } from '@shopify/cli-kit/node/fs';
1
+ import { readFile, writeFile, glob, removeFile } from '@shopify/cli-kit/node/fs';
2
2
  import { outputDebug } from '@shopify/cli-kit/node/output';
3
3
  import { joinPath } from '@shopify/cli-kit/node/path';
4
4
  import { getCodeFormatOptions, formatCode } from '../format-code.js';
@@ -44,6 +44,13 @@ function convertConfigToJS(tsConfig, keepTypes = false) {
44
44
  return jsConfig;
45
45
  }
46
46
  async function transpileProject(projectDir, keepTypes = true) {
47
+ const routesPath = joinPath(projectDir, "app/routes.ts");
48
+ const routesFileContent = await readFile(routesPath);
49
+ const replacedRoutesFileContent = routesFileContent.replace(
50
+ "./layout.tsx",
51
+ "./layout.jsx"
52
+ );
53
+ await writeFile(routesPath, replacedRoutesFileContent);
47
54
  const entries = await glob("**/*.+(ts|tsx)", {
48
55
  absolute: true,
49
56
  cwd: projectDir,
@@ -1748,5 +1748,5 @@
1748
1748
  ]
1749
1749
  }
1750
1750
  },
1751
- "version": "9.0.9"
1751
+ "version": "9.0.11"
1752
1752
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "@shopify:registry": "https://registry.npmjs.org"
6
6
  },
7
- "version": "9.0.9",
7
+ "version": "9.0.11",
8
8
  "license": "MIT",
9
9
  "type": "module",
10
10
  "repository": {
@@ -39,9 +39,9 @@
39
39
  "dependencies": {
40
40
  "@ast-grep/napi": "0.11.0",
41
41
  "@oclif/core": "3.26.5",
42
- "@shopify/cli-kit": "^3.77.0",
42
+ "@shopify/cli-kit": "^3.77.1",
43
43
  "@shopify/oxygen-cli": "4.6.10",
44
- "@shopify/plugin-cloudflare": "^3.77.0",
44
+ "@shopify/plugin-cloudflare": "^3.77.1",
45
45
  "ansi-escapes": "^6.2.0",
46
46
  "chokidar": "3.5.3",
47
47
  "cli-truncate": "^4.0.0",