@shopify/cli-hydrogen 8.4.0 → 8.4.1
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/assets/hydrogen/starter/CHANGELOG.md +7 -0
- package/dist/assets/hydrogen/starter/package.json +3 -3
- package/dist/commands/hydrogen/upgrade.js +1 -0
- package/dist/lib/onboarding/remote.js +0 -11
- package/dist/lib/template-diff.js +4 -13
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "skeleton",
|
|
3
3
|
"private": true,
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "2024.7.
|
|
5
|
+
"version": "2024.7.5",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "shopify hydrogen build --codegen",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@remix-run/react": "^2.10.1",
|
|
18
18
|
"@remix-run/server-runtime": "^2.10.1",
|
|
19
|
-
"@shopify/hydrogen": "2024.7.
|
|
19
|
+
"@shopify/hydrogen": "2024.7.4",
|
|
20
20
|
"@shopify/remix-oxygen": "^2.0.6",
|
|
21
21
|
"graphql": "^16.6.0",
|
|
22
22
|
"graphql-tag": "^2.12.6",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@graphql-codegen/cli": "5.0.2",
|
|
29
29
|
"@remix-run/dev": "^2.10.1",
|
|
30
30
|
"@remix-run/eslint-config": "^2.10.1",
|
|
31
|
-
"@shopify/cli": "3.65.
|
|
31
|
+
"@shopify/cli": "~3.65.3",
|
|
32
32
|
"@shopify/hydrogen-codegen": "^0.3.1",
|
|
33
33
|
"@shopify/mini-oxygen": "^3.0.4",
|
|
34
34
|
"@shopify/oxygen-workers-types": "^4.1.2",
|
|
@@ -187,6 +187,7 @@ function hasOutdatedDependencies({
|
|
|
187
187
|
...release.dependencies,
|
|
188
188
|
...release.devDependencies
|
|
189
189
|
}).some(([name, version]) => {
|
|
190
|
+
if (name === "@shopify/cli") return false;
|
|
190
191
|
const currentDependencyVersion = currentDependencies?.[name];
|
|
191
192
|
if (!currentDependencyVersion) return false;
|
|
192
193
|
const isDependencyOutdated = semver.gt(
|
|
@@ -7,7 +7,6 @@ import { renderTasks, renderInfo } from '@shopify/cli-kit/node/ui';
|
|
|
7
7
|
import { downloadExternalRepo, downloadMonorepoTemplates } from '../template-downloader.js';
|
|
8
8
|
import { applyTemplateDiff } from '../template-diff.js';
|
|
9
9
|
import { getCliCommand } from '../shell.js';
|
|
10
|
-
import { replaceFileContent } from '../file.js';
|
|
11
10
|
import { createAbortHandler, handleProjectLocation, handleLanguage, createInitialCommit, handleDependencies, commitAll, renderProjectReady } from './common.js';
|
|
12
11
|
|
|
13
12
|
const DEMO_STORE_REPO = "shopify/hydrogen-demo-store";
|
|
@@ -30,16 +29,6 @@ async function setupRemoteTemplate(options, controller) {
|
|
|
30
29
|
return applyTemplateDiff(project.directory, sourcePath, skeletonPath);
|
|
31
30
|
}
|
|
32
31
|
await copyFile(sourcePath, project.directory);
|
|
33
|
-
await replaceFileContent(
|
|
34
|
-
joinPath(project.directory, "package.json"),
|
|
35
|
-
false,
|
|
36
|
-
(content) => (
|
|
37
|
-
// Remove the cli plugin dependency from the package.json because it's
|
|
38
|
-
// only used for monorepo development. This line is present in non-diff
|
|
39
|
-
// examples like `express` when scaffolding a new project:
|
|
40
|
-
content.replace(/^\s*"@shopify\/cli-hydrogen": "[^"]+",?\n/m, "")
|
|
41
|
-
)
|
|
42
|
-
);
|
|
43
32
|
}).catch(abort);
|
|
44
33
|
const supportsTranspilation = await fileExists(
|
|
45
34
|
joinPath(downloaded.sourcePath, "tsconfig.json")
|
|
@@ -126,16 +126,10 @@ ${colors.dim(
|
|
|
126
126
|
async copyDiffBuild() {
|
|
127
127
|
const target = joinPath(diffDirectory, "dist");
|
|
128
128
|
await removeFile(target);
|
|
129
|
-
await
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}),
|
|
134
|
-
copyFile(
|
|
135
|
-
joinPath(targetDirectory, ".env"),
|
|
136
|
-
joinPath(diffDirectory, ".env")
|
|
137
|
-
)
|
|
138
|
-
]);
|
|
129
|
+
await cp(joinPath(targetDirectory, "dist"), target, {
|
|
130
|
+
force: true,
|
|
131
|
+
recursive: true
|
|
132
|
+
});
|
|
139
133
|
},
|
|
140
134
|
/**
|
|
141
135
|
* Brings the generated d.ts files back to the original project.
|
|
@@ -183,9 +177,6 @@ async function applyTemplateDiff(targetDirectory, diffDirectory, templateDir) {
|
|
|
183
177
|
await mergePackageJson(diffDirectory, targetDirectory, {
|
|
184
178
|
ignoredKeys: ["h2:diff"],
|
|
185
179
|
onResult: (pkgJson) => {
|
|
186
|
-
if (pkgJson.dependencies) {
|
|
187
|
-
delete pkgJson.dependencies["@shopify/cli-hydrogen"];
|
|
188
|
-
}
|
|
189
180
|
for (const key of ["build", "dev", "preview"]) {
|
|
190
181
|
const scriptLine = pkgJson.scripts?.[key];
|
|
191
182
|
if (pkgJson.scripts?.[key] && typeof scriptLine === "string") {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"@shopify:registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
7
|
-
"version": "8.4.
|
|
7
|
+
"version": "8.4.1",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"scripts": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@ast-grep/napi": "0.11.0",
|
|
36
36
|
"@oclif/core": "3.26.5",
|
|
37
|
-
"@shopify/cli-kit": "3.65.
|
|
37
|
+
"@shopify/cli-kit": "3.65.3",
|
|
38
38
|
"@shopify/oxygen-cli": "4.4.9",
|
|
39
|
-
"@shopify/plugin-cloudflare": "3.65.
|
|
39
|
+
"@shopify/plugin-cloudflare": "3.65.3",
|
|
40
40
|
"ansi-escapes": "^6.2.0",
|
|
41
41
|
"chokidar": "3.5.3",
|
|
42
42
|
"cli-truncate": "^4.0.0",
|