@shopify/create-hydrogen 3.0.12 → 3.0.13
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/CHANGELOG.md +9 -0
- package/dist/commands/init.js +2 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @shopify/create-hydrogen
|
|
2
2
|
|
|
3
|
+
## 3.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 604d7d97: Fix some unhandled promises and errors
|
|
8
|
+
- e9850d38: Fix create-hydrogen on Windows
|
|
9
|
+
- Updated dependencies [604d7d97]
|
|
10
|
+
- @shopify/cli-kit@3.0.13
|
|
11
|
+
|
|
3
12
|
## 3.0.12
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/commands/init.js
CHANGED
|
@@ -36,9 +36,9 @@ const init$1 = async (options, prompt = ui.prompt) => {
|
|
|
36
36
|
return { ...options, ...promptOutput, template };
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
var version$1 = "3.0.
|
|
39
|
+
var version$1 = "3.0.13";
|
|
40
40
|
|
|
41
|
-
var version = "3.0.
|
|
41
|
+
var version = "3.0.13";
|
|
42
42
|
|
|
43
43
|
async function init(options) {
|
|
44
44
|
const user = await os.username() ?? "";
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { environment, error } from '@shopify/cli-kit';
|
|
|
4
4
|
function runCreateHydrogen() {
|
|
5
5
|
const initIndex = process.argv.findIndex((arg) => arg.includes("init"));
|
|
6
6
|
if (initIndex === -1) {
|
|
7
|
-
const initIndex2 = process.argv.findIndex((arg) => arg.
|
|
7
|
+
const initIndex2 = process.argv.findIndex((arg) => arg.match(/bin(\/|\\)(create-hydrogen|dev|run)/)) + 1;
|
|
8
8
|
process.argv.splice(initIndex2, 0, "init");
|
|
9
9
|
}
|
|
10
10
|
if (environment.local.isDebug()) {
|
|
@@ -14,7 +14,9 @@ function runCreateHydrogen() {
|
|
|
14
14
|
const kitMapper = error.mapper;
|
|
15
15
|
const kitHandle = error.handler;
|
|
16
16
|
return kitMapper(error$1).then((error2) => {
|
|
17
|
-
kitHandle(error2);
|
|
17
|
+
return kitHandle(error2);
|
|
18
|
+
}).then(() => {
|
|
19
|
+
process.exit(1);
|
|
18
20
|
});
|
|
19
21
|
});
|
|
20
22
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import {run, flush, settings} from '@oclif/core'\nimport {error as kitError, environment} from '@shopify/cli-kit'\n\nfunction runCreateHydrogen() {\n const initIndex = process.argv.findIndex((arg) => arg.includes('init'))\n if (initIndex === -1) {\n const initIndex
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import {run, flush, settings} from '@oclif/core'\nimport {error as kitError, environment} from '@shopify/cli-kit'\n\nfunction runCreateHydrogen() {\n const initIndex = process.argv.findIndex((arg) => arg.includes('init'))\n if (initIndex === -1) {\n const initIndex = process.argv.findIndex((arg) => arg.match(/bin(\\/|\\\\)(create-hydrogen|dev|run)/)) + 1\n process.argv.splice(initIndex, 0, 'init')\n }\n\n if (environment.local.isDebug()) {\n settings.debug = true\n }\n\n // Start the CLI\n run(undefined, import.meta.url)\n .then(flush)\n .catch((error: Error): Promise<void | Error> => {\n const kitMapper = kitError.mapper\n const kitHandle = kitError.handler\n // eslint-disable-next-line promise/no-nesting\n return kitMapper(error)\n .then((error: Error) => {\n return kitHandle(error)\n })\n .then(() => {\n process.exit(1)\n })\n })\n}\n\nexport default runCreateHydrogen\n"],"names":["error","kitError"],"mappings":";;;AAGA,SAA6B,iBAAA,GAAA;AAC3B,EAAM,MAAA,SAAA,GAAY,QAAQ,IAAK,CAAA,SAAA,CAAU,CAAC,GAAQ,KAAA,GAAA,CAAI,QAAS,CAAA,MAAM,CAAC,CAAA,CAAA;AACtE,EAAA,IAAI,cAAc,CAAI,CAAA,EAAA;AACpB,IAAM,MAAA,UAAA,GAAY,OAAQ,CAAA,IAAA,CAAK,SAAU,CAAA,CAAC,QAAQ,GAAI,CAAA,KAAA,CAAM,qCAAqC,CAAC,CAAI,GAAA,CAAA,CAAA;AACtG,IAAA,OAAA,CAAQ,IAAK,CAAA,MAAA,CAAO,UAAW,EAAA,CAAA,EAAG,MAAM,CAAA,CAAA;AAAA,GAC1C;AAEA,EAAI,IAAA,WAAA,CAAY,KAAM,CAAA,OAAA,EAAW,EAAA;AAC/B,IAAA,QAAA,CAAS,KAAQ,GAAA,IAAA,CAAA;AAAA,GACnB;AAGA,EAAI,GAAA,CAAA,KAAA,CAAA,EAAW,YAAY,GAAG,CAAA,CAC3B,KAAK,KAAK,CAAA,CACV,KAAM,CAAA,CAACA,OAAwC,KAAA;AAC9C,IAAA,MAAM,YAAYC,KAAS,CAAA,MAAA,CAAA;AAC3B,IAAA,MAAM,YAAYA,KAAS,CAAA,OAAA,CAAA;AAE3B,IAAA,OAAO,SAAU,CAAAD,OAAK,CACnB,CAAA,IAAA,CAAK,CAAC,MAAiB,KAAA;AACtB,MAAA,OAAO,UAAU,MAAK,CAAA,CAAA;AAAA,KACvB,CACA,CAAA,IAAA,CAAK,MAAM;AACV,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA,CAAA;AAAA,KACf,CAAA,CAAA;AAAA,GACJ,CAAA,CAAA;AACL;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/create-hydrogen",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A CLI tool to create a new Shopify hydrogen app.",
|
|
6
6
|
"type": "module",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@bugsnag/js": "^7.16.7",
|
|
54
54
|
"@oclif/core": "1.9.0",
|
|
55
|
-
"@shopify/cli-kit": "3.0.
|
|
55
|
+
"@shopify/cli-kit": "3.0.13",
|
|
56
56
|
"@types/download": "^8.0.1",
|
|
57
57
|
"download": "^8.0.0"
|
|
58
58
|
},
|