@shopify/cli 0.31.3 → 0.33.3
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 +22 -0
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @shopify/cli
|
|
2
2
|
|
|
3
|
+
## 0.33.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @shopify/cli-kit@0.33.3
|
|
9
|
+
|
|
10
|
+
## 0.33.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Version 0.33.2
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @shopify/cli-kit@0.33.2
|
|
17
|
+
|
|
18
|
+
## 0.33.1
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [e1b7b31]
|
|
23
|
+
- @shopify/cli-kit@0.33.1
|
|
24
|
+
|
|
3
25
|
## 0.31.3
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -10,12 +10,19 @@ function runCLI() {
|
|
|
10
10
|
}
|
|
11
11
|
run(void 0, import.meta.url).then(flush).catch((error$1) => {
|
|
12
12
|
const bugsnagHandle = new Promise((resolve) => {
|
|
13
|
-
|
|
13
|
+
if (!settings.debug) {
|
|
14
|
+
Bugsnag.notify(error$1, void 0, resolve);
|
|
15
|
+
}
|
|
14
16
|
resolve(error$1);
|
|
15
17
|
});
|
|
16
18
|
const oclifHandle = Errors.handle;
|
|
17
19
|
const kitHandle = error.handler;
|
|
18
|
-
return bugsnagHandle.then(
|
|
20
|
+
return bugsnagHandle.then((error2) => {
|
|
21
|
+
if (settings.debug) {
|
|
22
|
+
oclifHandle(error2);
|
|
23
|
+
}
|
|
24
|
+
kitHandle(error2);
|
|
25
|
+
});
|
|
19
26
|
});
|
|
20
27
|
}
|
|
21
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, Errors} 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 const bugsnagHandle = new Promise<Error>((resolve) => {\n Bugsnag.notify(error, undefined, resolve)\n resolve(error)\n })\n const oclifHandle = Errors.handle\n const kitHandle = kitError.handler\n // eslint-disable-next-line promise/no-nesting\n return bugsnagHandle.then(
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// CLI\nimport {run, settings, flush, Errors} 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 const bugsnagHandle = new Promise<Error>((resolve) => {\n if (!settings.debug) {\n Bugsnag.notify(error, undefined, resolve)\n }\n resolve(error)\n })\n const oclifHandle = Errors.handle\n const kitHandle = kitError.handler\n // eslint-disable-next-line promise/no-nesting\n return bugsnagHandle.then((error: Error) => {\n if (settings.debug) {\n oclifHandle(error)\n }\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,MAAM,aAAa,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK;AACnD,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE;AAC3B,QAAQ,OAAO,CAAC,MAAM,CAACA,OAAK,EAAE,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;AAC/C,OAAO;AACP,MAAM,OAAO,CAACA,OAAK,CAAC,CAAC;AACrB,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC;AACtC,IAAI,MAAM,SAAS,GAAGC,KAAQ,CAAC,OAAO,CAAC;AACvC,IAAI,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK;AAC1C,MAAM,IAAI,QAAQ,CAAC,KAAK,EAAE;AAC1B,QAAQ,WAAW,CAAC,MAAM,CAAC,CAAC;AAC5B,OAAO;AACP,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": "0.
|
|
3
|
+
"version": "0.33.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A CLI tool to build for the Shopify platform",
|
|
6
6
|
"type": "module",
|
|
@@ -33,24 +33,27 @@
|
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"clean": "shx rm -rf dist",
|
|
36
|
-
"build": "rollup -c",
|
|
36
|
+
"build": "rimraf dist/ && rollup -c",
|
|
37
37
|
"prepack": "cross-env NODE_ENV=production yarn run build",
|
|
38
|
-
"lint": "prettier -c src/** && eslint src/**/*.ts",
|
|
39
|
-
"lint:fix": "prettier -w src/** && eslint src/**/*.ts --fix",
|
|
38
|
+
"lint": "prettier -c src/** && eslint 'src/**/*.ts'",
|
|
39
|
+
"lint:fix": "prettier -w src/** && eslint 'src/**/*.ts' --fix",
|
|
40
40
|
"test": "vitest run",
|
|
41
41
|
"test:watch": "vitest watch",
|
|
42
42
|
"tsc": "tsc --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"eslintConfig": {
|
|
45
45
|
"extends": [
|
|
46
|
-
"
|
|
46
|
+
"../../.eslintrc.cjs"
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@bugsnag/js": "^7.
|
|
50
|
+
"@bugsnag/js": "^7.16.2",
|
|
51
51
|
"@oclif/core": "1.3.6",
|
|
52
52
|
"@oclif/plugin-help": "^5.1.11",
|
|
53
|
-
"@shopify/cli-kit": "0.
|
|
53
|
+
"@shopify/cli-kit": "0.33.3"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"vitest": "0.7.9"
|
|
54
57
|
},
|
|
55
58
|
"engine-strict": true,
|
|
56
59
|
"engines": {
|