@shopify/cli 1.0.6 → 1.1.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/CHANGELOG.md +24 -0
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @shopify/cli
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [488c06a]
|
|
8
|
+
- Updated dependencies [f156c37]
|
|
9
|
+
- Updated dependencies [5763a76]
|
|
10
|
+
- @shopify/cli-kit@1.1.1
|
|
11
|
+
|
|
12
|
+
## 1.0.9
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [df1c523]
|
|
17
|
+
- @shopify/cli-kit@1.0.9
|
|
18
|
+
|
|
19
|
+
## 1.0.8
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 8e2c3d3: Improve the error handling to not treat invalid commands as bug errors
|
|
24
|
+
- Updated dependencies [8e2c3d3]
|
|
25
|
+
- @shopify/cli-kit@1.0.8
|
|
26
|
+
|
|
3
27
|
## 1.0.6
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { settings, run, flush
|
|
1
|
+
import { settings, run, flush } from '@oclif/core';
|
|
2
2
|
import Bugsnag from '@bugsnag/js';
|
|
3
3
|
import { environment, error } from '@shopify/cli-kit';
|
|
4
4
|
|
|
@@ -9,18 +9,20 @@ function runCLI() {
|
|
|
9
9
|
Bugsnag.start({ apiKey: "9e1e6889176fd0c795d5c659225e0fae", logger: null });
|
|
10
10
|
}
|
|
11
11
|
run(void 0, import.meta.url).then(flush).catch((error$1) => {
|
|
12
|
-
|
|
12
|
+
if (error$1 instanceof error.AbortSilent) {
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
const bugsnagHandle = async (errorToReport) => {
|
|
13
16
|
if (!settings.debug) {
|
|
14
|
-
|
|
17
|
+
await new Promise((resolve, reject) => {
|
|
18
|
+
Bugsnag.notify(errorToReport, void 0, resolve);
|
|
19
|
+
});
|
|
15
20
|
}
|
|
16
|
-
resolve(
|
|
17
|
-
}
|
|
18
|
-
const
|
|
21
|
+
return Promise.resolve(errorToReport);
|
|
22
|
+
};
|
|
23
|
+
const kitMapper = error.mapper;
|
|
19
24
|
const kitHandle = error.handler;
|
|
20
|
-
return bugsnagHandle.then((error2) => {
|
|
21
|
-
if (settings.debug) {
|
|
22
|
-
oclifHandle(error2);
|
|
23
|
-
}
|
|
25
|
+
return kitMapper(error$1).then(bugsnagHandle).then((error2) => {
|
|
24
26
|
kitHandle(error2);
|
|
25
27
|
});
|
|
26
28
|
});
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// CLI\nimport {run, settings, flush
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// CLI\nimport {run, settings, flush} from '@oclif/core'\nimport Bugsnag from '@bugsnag/js'\nimport {error as kitError, environment} from '@shopify/cli-kit'\n\nfunction runCLI() {\n if (environment.local.isDebug()) {\n settings.debug = true\n } else {\n Bugsnag.start({apiKey: '9e1e6889176fd0c795d5c659225e0fae', logger: null})\n }\n\n run(undefined, import.meta.url)\n .then(flush)\n .catch((error: Error): Promise<void | Error> => {\n if (error instanceof kitError.AbortSilent) {\n process.exit(1)\n }\n const bugsnagHandle = async (errorToReport: Error): Promise<Error> => {\n if (!settings.debug) {\n await new Promise((resolve, reject) => {\n Bugsnag.notify(errorToReport, undefined, resolve)\n })\n }\n return Promise.resolve(errorToReport)\n }\n const kitMapper = kitError.mapper\n const kitHandle = kitError.handler\n // eslint-disable-next-line promise/no-nesting\n return kitMapper(error)\n .then(bugsnagHandle)\n .then((error: Error) => {\n kitHandle(error)\n })\n })\n}\n\nexport default runCLI\n"],"names":["error","kitError"],"mappings":";;;;AAGA,SAAS,MAAM,GAAG;AAClB,EAAE,IAAI,WAAW,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE;AACnC,IAAI,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC;AAC1B,GAAG,MAAM;AACT,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,kCAAkC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAChF,GAAG;AACH,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAACA,OAAK,KAAK;AAC5D,IAAI,IAAIA,OAAK,YAAYC,KAAQ,CAAC,WAAW,EAAE;AAC/C,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtB,KAAK;AACL,IAAI,MAAM,aAAa,GAAG,OAAO,aAAa,KAAK;AACnD,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE;AAC3B,QAAQ,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;AAC/C,UAAU,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;AACzD,SAAS,CAAC,CAAC;AACX,OAAO;AACP,MAAM,OAAO,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;AAC5C,KAAK,CAAC;AACN,IAAI,MAAM,SAAS,GAAGA,KAAQ,CAAC,MAAM,CAAC;AACtC,IAAI,MAAM,SAAS,GAAGA,KAAQ,CAAC,OAAO,CAAC;AACvC,IAAI,OAAO,SAAS,CAACD,OAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK;AACjE,MAAM,SAAS,CAAC,MAAM,CAAC,CAAC;AACxB,KAAK,CAAC,CAAC;AACP,GAAG,CAAC,CAAC;AACL;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A CLI tool to build for the Shopify platform",
|
|
6
6
|
"type": "module",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@oclif/core": "1.6.4",
|
|
52
52
|
"@oclif/plugin-help": "^5.1.12",
|
|
53
53
|
"@oclif/plugin-plugins": "^2.1.0",
|
|
54
|
-
"@shopify/cli-kit": "1.
|
|
54
|
+
"@shopify/cli-kit": "1.1.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"vitest": "0.
|
|
57
|
+
"vitest": "0.9.4"
|
|
58
58
|
},
|
|
59
59
|
"engine-strict": true,
|
|
60
60
|
"engines": {
|
|
@@ -69,9 +69,10 @@
|
|
|
69
69
|
"bin": "shopify",
|
|
70
70
|
"commands": "dist/commands",
|
|
71
71
|
"plugins": [
|
|
72
|
-
"@oclif/plugin-help",
|
|
73
72
|
"@shopify/app",
|
|
73
|
+
"@shopify/theme",
|
|
74
74
|
"@shopify/cli-hydrogen",
|
|
75
|
+
"@oclif/plugin-help",
|
|
75
76
|
"@oclif/plugin-plugins"
|
|
76
77
|
],
|
|
77
78
|
"topicSeparator": " ",
|