@shopify/cli 3.0.22 → 3.0.25

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 CHANGED
@@ -1,5 +1,31 @@
1
1
  # @shopify/cli
2
2
 
3
+ ## 3.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - a6ea9c8d: Fix shopify upgrade
8
+ - Updated dependencies [a6ea9c8d]
9
+ - Updated dependencies [822d0fd3]
10
+ - Updated dependencies [bf8137c2]
11
+ - Updated dependencies [e650b499]
12
+ - Updated dependencies [3360289d]
13
+ - Updated dependencies [2a666db7]
14
+ - @shopify/cli-kit@3.0.25
15
+
16
+ ## 3.0.24
17
+
18
+ ### Patch Changes
19
+
20
+ - @shopify/cli-kit@3.0.24
21
+
22
+ ## 3.0.23
23
+
24
+ ### Patch Changes
25
+
26
+ - d115df3b: Check that the error has object as a prototype
27
+ - @shopify/cli-kit@3.0.23
28
+
3
29
  ## 3.0.22
4
30
 
5
31
  ### Patch Changes
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ <img src="assets/logo.png" width="150"/>
2
+
3
+ # Shopify CLI
4
+ <a href="http://twitter.com/ShopifyDevs"><img src="https://img.shields.io/twitter/follow/ShopifyDevs?style=flat-square" alt="Twitter Followers"></a>
5
+ <img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License">
6
+ <a href="https://github.com/Shopify/cli/actions/workflows/shopify-cli.yml">![badge](https://github.com/Shopify/cli/actions/workflows/shopify-cli.yml/badge.svg)</a>
7
+
8
+ With the Shopify command line interface (Shopify CLI 3.0), you can:
9
+ - build custom storefronts and manage their hosting
10
+ - initialize, build, dev, and deploy Shopify apps — and scaffold app extensions
11
+
12
+ <p>&nbsp;</p>
13
+
14
+ ### Before you begin ###
15
+
16
+ Install the latest version of [Node.js](https://nodejs.org/en/download/) and [npm](https://docs.npmjs.com/getting-started) (or another package manager of your choice).
17
+
18
+ <p>&nbsp;</p>
19
+
20
+ ## Developing apps with Shopify CLI
21
+
22
+ When you’re building a Shopify app, you can initialize your project using your preferred package manager. A single command will install all the dependencies you need — including Shopify CLI itself.
23
+
24
+ Initialize your project using one of the following commands:
25
+ - `npx @shopify/create-app@latest` (installed by default with Node)
26
+ - `pnpm create @shopify/create-app@latest`
27
+ - `yarn create @shopify/app`
28
+
29
+ Learn more in the docs: [Create an app](https://shopify.dev/apps/getting-started/create)
30
+
31
+ <p>&nbsp;</p>
32
+
33
+ ## Developing Hydrogen custom storefronts with Shopify CLI ##
34
+
35
+ When you’re building a custom storefront, use Hydrogen, Shopify’s React-based framework optimized for headless commerce. Initialize a new Hydrogen app with a fully-featured Demo Store template, or start from scratch with the minimal Hello World template. Shopify Plus stores can deploy their Hydrogen apps to Oxygen, Shopify’s global hosting solution, at no extra cost.
36
+
37
+ Get started using one of the following commands:
38
+ - `npm init @shopify/hydrogen@latest`
39
+ - `npx @shopify/create-hydrogen@latest`
40
+ - `pnpm create @shopify/create-hydrogen@latest`
41
+ - `yarn create @shopify/hydrogen`
42
+
43
+ <p>&nbsp;</p>
44
+
45
+ ## Help 🖐
46
+
47
+ If you encounter issues using the CLI or have feedback you'd like to share with us, below are some options:
48
+
49
+ - [Open a GitHub issue](https://github.com/Shopify/shopify-cli-next/issues) - To report bugs or request new features, open an issue in the Shopify CLI repository.
50
+ - [Shopify Community Forums](https://community.shopify.com/) - Visit our forums to connect with the community and learn more about Shopify CLI development.
51
+
52
+ <p>&nbsp;</p>
53
+
54
+ ## References
55
+
56
+ - [oclif](https://oclif.io/)
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { settings, run, flush } from '@oclif/core';
2
2
  import Bugsnag from '@bugsnag/js';
3
3
  import { output, environment, error } from '@shopify/cli-kit';
4
4
 
5
- var version = "3.0.22";
5
+ var version = "3.0.25";
6
6
 
7
7
  function runCLI() {
8
8
  output.initiateLogging({ filename: "shopify.cli.log" });
@@ -31,11 +31,16 @@ function runCLI() {
31
31
  }
32
32
  const bugsnagHandle = async (errorToReport) => {
33
33
  if (!settings.debug && error.shouldReport(errorToReport)) {
34
- const reportedError = Object.assign(Object.create(errorToReport), {});
35
- if (reportedError.stack)
36
- reportedError.stack = reportedError.stack.replace(new RegExp("file:///", "g"), "/");
34
+ let mappedError;
35
+ if (Object.prototype.isPrototypeOf(errorToReport)) {
36
+ const mappedError2 = Object.assign(Object.create(errorToReport), {});
37
+ if (mappedError2.stack)
38
+ mappedError2.stack = mappedError2.stack.replace(new RegExp("file:///", "g"), "/");
39
+ } else {
40
+ mappedError = errorToReport;
41
+ }
37
42
  await new Promise((resolve, reject) => {
38
- Bugsnag.notify(reportedError, void 0, resolve);
43
+ Bugsnag.notify(mappedError, void 0, resolve);
39
44
  });
40
45
  }
41
46
  return Promise.resolve(errorToReport);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// CLI\nimport {version as cliVersion} from '../package.json'\nimport {run, settings, flush} from '@oclif/core'\nimport Bugsnag from '@bugsnag/js'\nimport {error as kitError, environment, output} from '@shopify/cli-kit'\n\nfunction runCLI() {\n output.initiateLogging({filename: 'shopify.cli.log'})\n if (environment.local.isDebug()) {\n settings.debug = true\n } else {\n Bugsnag.start({\n apiKey: '9e1e6889176fd0c795d5c659225e0fae',\n logger: null,\n appVersion: cliVersion,\n autoTrackSessions: false,\n })\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 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 return kitHandle(error)\n })\n .then(() => {\n process.exit(1)\n })\n })\n}\n\nconst bugsnagHandle = async (errorToReport: Error): Promise<Error> => {\n if (!settings.debug && kitError.shouldReport(errorToReport)) {\n const reportedError = Object.assign(Object.create(errorToReport), {})\n if (reportedError.stack) reportedError.stack = reportedError.stack.replace(new RegExp('file:///', 'g'), '/')\n await new Promise((resolve, reject) => {\n Bugsnag.notify(reportedError, undefined, resolve)\n })\n }\n return Promise.resolve(errorToReport)\n}\n\nexport default runCLI\n"],"names":["cliVersion","error","kitError"],"mappings":";;;;;;AAMA,SAAkB,MAAA,GAAA;AAChB,EAAA,MAAA,CAAO,eAAgB,CAAA,EAAC,QAAU,EAAA,iBAAA,EAAkB,CAAA,CAAA;AACpD,EAAI,IAAA,WAAA,CAAY,KAAM,CAAA,OAAA,EAAW,EAAA;AAC/B,IAAA,QAAA,CAAS,KAAQ,GAAA,IAAA,CAAA;AAAA,GACZ,MAAA;AACL,IAAA,OAAA,CAAQ,KAAM,CAAA;AAAA,MACZ,MAAQ,EAAA,kCAAA;AAAA,MACR,MAAQ,EAAA,IAAA;AAAA,MACR,UAAY,EAAAA,OAAA;AAAA,MACZ,iBAAmB,EAAA,KAAA;AAAA,KACpB,CAAA,CAAA;AAAA,GACH;AAEA,EAAI,GAAA,CAAA,KAAA,CAAA,EAAW,YAAY,GAAG,CAAA,CAC3B,KAAK,KAAK,CAAA,CACV,KAAM,CAAA,CAACC,OAAwC,KAAA;AAC9C,IAAI,IAAAA,OAAA,YAAiBC,MAAS,WAAa,EAAA;AACzC,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA,CAAA;AAAA,KAChB;AACA,IAAA,MAAM,YAAYA,KAAS,CAAA,MAAA,CAAA;AAC3B,IAAA,MAAM,YAAYA,KAAS,CAAA,OAAA,CAAA;AAE3B,IAAO,OAAA,SAAA,CAAUD,OAAK,CACnB,CAAA,IAAA,CAAK,aAAa,CAClB,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,CAAA;AAEA,MAAM,aAAA,GAAgB,OAAO,aAAyC,KAAA;AACpE,EAAA,IAAI,CAAC,QAAS,CAAA,KAAA,IAASC,KAAS,CAAA,YAAA,CAAa,aAAa,CAAG,EAAA;AAC3D,IAAM,MAAA,aAAA,GAAgB,OAAO,MAAO,CAAA,MAAA,CAAO,OAAO,aAAa,CAAA,EAAG,EAAE,CAAA,CAAA;AACpE,IAAA,IAAI,aAAc,CAAA,KAAA;AAAO,MAAc,aAAA,CAAA,KAAA,GAAQ,cAAc,KAAM,CAAA,OAAA,CAAQ,IAAI,MAAO,CAAA,UAAA,EAAY,GAAG,CAAA,EAAG,GAAG,CAAA,CAAA;AAC3G,IAAA,MAAM,IAAI,OAAA,CAAQ,CAAC,OAAA,EAAS,MAAW,KAAA;AACrC,MAAQ,OAAA,CAAA,MAAA,CAAO,aAAe,EAAA,KAAA,CAAA,EAAW,OAAO,CAAA,CAAA;AAAA,KACjD,CAAA,CAAA;AAAA,GACH;AACA,EAAO,OAAA,OAAA,CAAQ,QAAQ,aAAa,CAAA,CAAA;AACtC,CAAA;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// CLI\nimport {version as cliVersion} from '../package.json'\nimport {run, settings, flush} from '@oclif/core'\nimport Bugsnag from '@bugsnag/js'\nimport {error as kitError, environment, output} from '@shopify/cli-kit'\n\nfunction runCLI() {\n output.initiateLogging({filename: 'shopify.cli.log'})\n if (environment.local.isDebug()) {\n settings.debug = true\n } else {\n Bugsnag.start({\n apiKey: '9e1e6889176fd0c795d5c659225e0fae',\n logger: null,\n appVersion: cliVersion,\n autoTrackSessions: false,\n })\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 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 return kitHandle(error)\n })\n .then(() => {\n process.exit(1)\n })\n })\n}\n\nconst bugsnagHandle = async (errorToReport: Error): Promise<Error> => {\n if (!settings.debug && kitError.shouldReport(errorToReport)) {\n let mappedError: Error\n // eslint-disable-next-line no-prototype-builtins\n if (Object.prototype.isPrototypeOf(errorToReport)) {\n const mappedError = Object.assign(Object.create(errorToReport), {})\n if (mappedError.stack) mappedError.stack = mappedError.stack.replace(new RegExp('file:///', 'g'), '/')\n } else {\n mappedError = errorToReport\n }\n await new Promise((resolve, reject) => {\n Bugsnag.notify(mappedError, undefined, resolve)\n })\n }\n return Promise.resolve(errorToReport)\n}\n\nexport default runCLI\n"],"names":["cliVersion","error","kitError"],"mappings":";;;;;;AAMA,SAAkB,MAAA,GAAA;AAChB,EAAA,MAAA,CAAO,eAAgB,CAAA,EAAC,QAAU,EAAA,iBAAA,EAAkB,CAAA,CAAA;AACpD,EAAI,IAAA,WAAA,CAAY,KAAM,CAAA,OAAA,EAAW,EAAA;AAC/B,IAAA,QAAA,CAAS,KAAQ,GAAA,IAAA,CAAA;AAAA,GACZ,MAAA;AACL,IAAA,OAAA,CAAQ,KAAM,CAAA;AAAA,MACZ,MAAQ,EAAA,kCAAA;AAAA,MACR,MAAQ,EAAA,IAAA;AAAA,MACR,UAAY,EAAAA,OAAA;AAAA,MACZ,iBAAmB,EAAA,KAAA;AAAA,KACpB,CAAA,CAAA;AAAA,GACH;AAEA,EAAI,GAAA,CAAA,KAAA,CAAA,EAAW,YAAY,GAAG,CAAA,CAC3B,KAAK,KAAK,CAAA,CACV,KAAM,CAAA,CAACC,OAAwC,KAAA;AAC9C,IAAI,IAAAA,OAAA,YAAiBC,MAAS,WAAa,EAAA;AACzC,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA,CAAA;AAAA,KAChB;AACA,IAAA,MAAM,YAAYA,KAAS,CAAA,MAAA,CAAA;AAC3B,IAAA,MAAM,YAAYA,KAAS,CAAA,OAAA,CAAA;AAE3B,IAAO,OAAA,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5
5
  "description": "A CLI tool to build for the Shopify platform",
6
+ "homepage": "https://github.com/shopify/cli#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/Shopify/cli/issues"
9
+ },
6
10
  "type": "module",
7
11
  "main": "src/index.js",
8
12
  "module": "src/index.js",
@@ -34,8 +38,8 @@
34
38
  "scripts": {
35
39
  "clean": "shx rm -rf dist",
36
40
  "build": "rimraf dist/ && rollup -c",
37
- "prepack": "cross-env NODE_ENV=production yarn run build",
38
- "lint": "prettier -c src/** && eslint 'src/**/*.ts'",
41
+ "prepack": "cross-env NODE_ENV=production yarn run build && cp ../../README.md README.md",
42
+ "lint": "prettier -c src/** && eslint \"src/**/*.ts\"",
39
43
  "lint:fix": "prettier -w src/** && eslint 'src/**/*.ts' --fix",
40
44
  "test": "vitest run",
41
45
  "test:watch": "vitest watch",
@@ -52,7 +56,7 @@
52
56
  "@oclif/plugin-help": "^5.1.12",
53
57
  "@oclif/plugin-plugins": "^2.1.0",
54
58
  "@shopify/plugin-ngrok": "^0.2.9",
55
- "@shopify/cli-kit": "^3.0.22"
59
+ "@shopify/cli-kit": "^3.0.25"
56
60
  },
57
61
  "devDependencies": {
58
62
  "vitest": "^0.15.1"