@shopify/cli 1.0.9 → 2.0.2

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,32 @@
1
1
  # @shopify/cli
2
2
 
3
+ ## 2.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 70d8d50d: Use ngrok from plugin with --tunnel flag
8
+ - c6a9450b: Add support to scaffold function extensions
9
+ - Updated dependencies [c6a9450b]
10
+ - Updated dependencies [70d8d50d]
11
+ - @shopify/cli-kit@2.0.2
12
+
13
+ ## 2.0.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [9cb99f12]
18
+ - Updated dependencies [882e54e6]
19
+ - @shopify/cli-kit@2.0.1
20
+
21
+ ## 1.1.1
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [488c06a]
26
+ - Updated dependencies [f156c37]
27
+ - Updated dependencies [5763a76]
28
+ - @shopify/cli-kit@1.1.1
29
+
3
30
  ## 1.0.9
4
31
 
5
32
  ### Patch Changes
@@ -0,0 +1,13 @@
1
+ import { Command } from '@oclif/core';
2
+ import { session, output } from '@shopify/cli-kit';
3
+
4
+ class Logout extends Command {
5
+ async run() {
6
+ await session.logout();
7
+ output.success("Logged out from Shopify");
8
+ }
9
+ }
10
+ Logout.description = "Logout from Shopify";
11
+
12
+ export { Logout as default };
13
+ //# sourceMappingURL=logout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logout.js","sources":["../../../src/cli/commands/auth/logout.ts"],"sourcesContent":["import {Command} from '@oclif/core'\nimport {output, session} from '@shopify/cli-kit'\n\nexport default class Logout extends Command {\n static description = 'Logout from Shopify'\n\n async run(): Promise<void> {\n await session.logout()\n output.success('Logged out from Shopify')\n }\n}\n"],"names":[],"mappings":";;;AAGA,MAAqB,eAAe,OAAQ,CAAA;AAAA,EAAA,MAGpC,GAAqB,GAAA;AACzB,IAAA,MAAM,QAAQ,MAAO,EAAA,CAAA;AACrB,IAAA,MAAA,CAAO,QAAQ,yBAAyB,CAAA,CAAA;AAAA,GAC1C;AACF,CAAA;AAPA,OACS,WAAc,GAAA,qBAAA;;;;"}
package/dist/index.js CHANGED
@@ -9,6 +9,9 @@ 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
+ if (error$1 instanceof error.AbortSilent) {
13
+ process.exit(1);
14
+ }
12
15
  const bugsnagHandle = async (errorToReport) => {
13
16
  if (!settings.debug) {
14
17
  await new Promise((resolve, reject) => {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
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 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,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,GAAGC,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;;;;"}
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":";;;;AAKA,SAAkB,MAAA,GAAA;AAChB,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,MAAM,EAAC,MAAA,EAAQ,kCAAoC,EAAA,MAAA,EAAQ,MAAK,CAAA,CAAA;AAAA,GAC1E;AAEA,EAAI,GAAA,CAAA,KAAA,CAAA,EAAW,YAAY,GAAG,CAAA,CAC3B,KAAK,KAAK,CAAA,CACV,KAAM,CAAA,CAACA,OAAwC,KAAA;AAC9C,IAAI,IAAAA,OAAA,YAAiBC,MAAS,WAAa,EAAA;AACzC,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA,CAAA;AAAA,KAChB;AACA,IAAM,MAAA,aAAA,GAAgB,OAAO,aAAyC,KAAA;AACpE,MAAI,IAAA,CAAC,SAAS,KAAO,EAAA;AACnB,QAAA,MAAM,IAAI,OAAA,CAAQ,CAAC,OAAA,EAAS,MAAW,KAAA;AACrC,UAAQ,OAAA,CAAA,MAAA,CAAO,aAAe,EAAA,KAAA,CAAA,EAAW,OAAO,CAAA,CAAA;AAAA,SACjD,CAAA,CAAA;AAAA,OACH;AACA,MAAO,OAAA,OAAA,CAAQ,QAAQ,aAAa,CAAA,CAAA;AAAA,KACtC,CAAA;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,SAAA,CAAU,MAAK,CAAA,CAAA;AAAA,KAChB,CAAA,CAAA;AAAA,GACJ,CAAA,CAAA;AACL;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/cli",
3
- "version": "1.0.9",
3
+ "version": "2.0.2",
4
4
  "private": false,
5
5
  "description": "A CLI tool to build for the Shopify platform",
6
6
  "type": "module",
@@ -48,17 +48,18 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@bugsnag/js": "^7.16.2",
51
- "@oclif/core": "1.6.4",
51
+ "@oclif/core": "1.7.0",
52
52
  "@oclif/plugin-help": "^5.1.12",
53
53
  "@oclif/plugin-plugins": "^2.1.0",
54
- "@shopify/cli-kit": "1.0.9"
54
+ "@shopify/cli-kit": "2.0.2",
55
+ "@shopify/plugin-ngrok": "^0.2.3"
55
56
  },
56
57
  "devDependencies": {
57
- "vitest": "0.8.1"
58
+ "vitest": "0.10.0"
58
59
  },
59
60
  "engine-strict": true,
60
61
  "engines": {
61
- "node": "^14.13.1 || ^16.0.0 || ^17.0.0"
62
+ "node": "^14.13.1 || ^16.0.0 || ^17.0.0 || ^18.0.0"
62
63
  },
63
64
  "os": [
64
65
  "darwin",
@@ -69,11 +70,14 @@
69
70
  "bin": "shopify",
70
71
  "commands": "dist/commands",
71
72
  "plugins": [
72
- "@oclif/plugin-help",
73
73
  "@shopify/app",
74
+ "@shopify/theme",
74
75
  "@shopify/cli-hydrogen",
75
- "@oclif/plugin-plugins"
76
+ "@oclif/plugin-help",
77
+ "@oclif/plugin-plugins",
78
+ "@shopify/plugin-ngrok"
76
79
  ],
80
+ "scope": "shopify",
77
81
  "topicSeparator": " ",
78
82
  "topics": {
79
83
  "hydrogen": {
@@ -84,7 +88,13 @@
84
88
  },
85
89
  "app": {
86
90
  "description": "Build Shopify apps"
91
+ },
92
+ "auth": {
93
+ "description": "Auth operations"
87
94
  }
88
- }
95
+ },
96
+ "additionalHelpFlags": [
97
+ "-h"
98
+ ]
89
99
  }
90
100
  }