@shopify/create-app 3.58.2 → 3.59.0

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.
Files changed (74) hide show
  1. package/dist/chunk-3JLUTHGR.js +114 -0
  2. package/dist/chunk-3JNB3A7C.js +14080 -0
  3. package/dist/chunk-4DXNY52K.js +104 -0
  4. package/dist/chunk-4SXWHRL5.js +62 -0
  5. package/dist/chunk-5RH4B5Q7.js +30996 -0
  6. package/dist/chunk-7XQTD3L4.js +213522 -0
  7. package/dist/chunk-ADG25CKO.js +2468 -0
  8. package/dist/chunk-ASLSMEKR.js +18914 -0
  9. package/dist/chunk-BOIUUJSH.js +99 -0
  10. package/dist/chunk-CKY5L2DS.js +37 -0
  11. package/dist/chunk-CPDHSAO5.js +3179 -0
  12. package/dist/chunk-FBB6KUZG.js +821 -0
  13. package/dist/chunk-G6FN5VUE.js +102 -0
  14. package/dist/chunk-GXPKATXW.js +194 -0
  15. package/dist/chunk-H7CRO63U.js +11 -0
  16. package/dist/chunk-JP7Y3CTL.js +72 -0
  17. package/dist/chunk-LKGDG6WW.js +87 -0
  18. package/dist/chunk-M63RTPGR.js +63 -0
  19. package/dist/chunk-ND5WSAZY.js +7817 -0
  20. package/dist/chunk-P4TVG45N.js +900 -0
  21. package/dist/chunk-TMGCRPEZ.js +4283 -0
  22. package/dist/chunk-UVY6LL5H.js +145 -0
  23. package/dist/chunk-VMPTLMJN.js +144 -0
  24. package/dist/chunk-WCNR75S2.js +73 -0
  25. package/dist/chunk-WLJ2CNLG.js +45349 -0
  26. package/dist/chunk-YLEF4RUH.js +144 -0
  27. package/dist/chunk-ZDCQCTOO.js +13764 -0
  28. package/dist/chunk-ZPB26OWQ.js +5605 -0
  29. package/dist/commands/init.d.ts +2 -1
  30. package/dist/commands/init.js +31 -123
  31. package/dist/commands/init.js.map +1 -1
  32. package/dist/commands/init.test.js +123 -0
  33. package/dist/constants-K3R4N3N3.js +19 -0
  34. package/dist/custom-oclif-loader-GA6B7DEF.js +83 -0
  35. package/dist/del-A5YM6R3Y.js +2846 -0
  36. package/dist/devtools-KQM4GF6J.js +3685 -0
  37. package/dist/error-handler-U53E7YKG.js +34 -0
  38. package/dist/hooks/postrun.js +108 -2
  39. package/dist/hooks/prerun.js +77 -2
  40. package/dist/index.js +22 -7
  41. package/dist/lib-76JUGQYQ.js +8 -0
  42. package/dist/local-XVLEGQFE.js +59 -0
  43. package/dist/magic-string.es-6WMSFIAX.js +1291 -0
  44. package/dist/multipart-parser-O2BQODS2.js +359 -0
  45. package/dist/node-package-manager-76YAD3UB.js +68 -0
  46. package/dist/open-B7XFJJCK.js +290 -0
  47. package/dist/out-JZ52TJE3.js +5 -0
  48. package/dist/path-HO4HBKK5.js +28 -0
  49. package/dist/prompts/init.d.ts +4 -3
  50. package/dist/prompts/init.js +23 -118
  51. package/dist/prompts/init.js.map +1 -1
  52. package/dist/prompts/init.test.js +115 -0
  53. package/dist/services/init.d.ts +3 -1
  54. package/dist/services/init.js +25 -139
  55. package/dist/services/init.js.map +1 -1
  56. package/dist/services/init.test.js +18 -0
  57. package/dist/system-XBDENYNR.js +25 -0
  58. package/dist/tsconfig.tsbuildinfo +1 -1
  59. package/dist/ui-ZVCYWXG6.js +49 -0
  60. package/dist/utils/template/cleanup.js +18 -19
  61. package/dist/utils/template/cleanup.test.js +74 -0
  62. package/dist/utils/template/npm.d.ts +2 -1
  63. package/dist/utils/template/npm.js +22 -58
  64. package/dist/utils/template/npm.js.map +1 -1
  65. package/dist/utils/template/npm.test.js +153 -0
  66. package/dist/yoga.wasm +0 -0
  67. package/oclif.manifest.json +1 -1
  68. package/package.json +5 -6
  69. package/dist/constants.d.ts +0 -1
  70. package/dist/constants.js +0 -2
  71. package/dist/constants.js.map +0 -1
  72. package/dist/utils/versions.d.ts +0 -1
  73. package/dist/utils/versions.js +0 -21
  74. package/dist/utils/versions.js.map +0 -1
@@ -0,0 +1,34 @@
1
+ import {
2
+ addBugsnagMetadata,
3
+ cleanStackFrameFilePath,
4
+ errorHandler,
5
+ registerCleanBugsnagErrorsFromWithinPlugins,
6
+ sendErrorToBugsnag
7
+ } from "./chunk-CPDHSAO5.js";
8
+ import "./chunk-LKGDG6WW.js";
9
+ import "./chunk-ASLSMEKR.js";
10
+ import "./chunk-5RH4B5Q7.js";
11
+ import "./chunk-H7CRO63U.js";
12
+ import "./chunk-TMGCRPEZ.js";
13
+ import "./chunk-BOIUUJSH.js";
14
+ import "./chunk-JP7Y3CTL.js";
15
+ import "./chunk-ZDCQCTOO.js";
16
+ import "./chunk-WLJ2CNLG.js";
17
+ import "./chunk-FBB6KUZG.js";
18
+ import "./chunk-YLEF4RUH.js";
19
+ import "./chunk-G6FN5VUE.js";
20
+ import "./chunk-UVY6LL5H.js";
21
+ import "./chunk-7XQTD3L4.js";
22
+ import "./chunk-P4TVG45N.js";
23
+ import "./chunk-ZPB26OWQ.js";
24
+ import "./chunk-WCNR75S2.js";
25
+ import "./chunk-3JLUTHGR.js";
26
+ import "./chunk-GXPKATXW.js";
27
+ import "./chunk-M63RTPGR.js";
28
+ export {
29
+ addBugsnagMetadata,
30
+ cleanStackFrameFilePath,
31
+ errorHandler,
32
+ registerCleanBugsnagErrorsFromWithinPlugins,
33
+ sendErrorToBugsnag
34
+ };
@@ -1,2 +1,108 @@
1
- export { hook as default } from '@shopify/cli-kit/node/hooks/postrun';
2
- //# sourceMappingURL=postrun.js.map
1
+ import {
2
+ reportAnalyticsEvent
3
+ } from "../chunk-ASLSMEKR.js";
4
+ import "../chunk-5RH4B5Q7.js";
5
+ import "../chunk-H7CRO63U.js";
6
+ import "../chunk-TMGCRPEZ.js";
7
+ import "../chunk-BOIUUJSH.js";
8
+ import "../chunk-JP7Y3CTL.js";
9
+ import "../chunk-ZDCQCTOO.js";
10
+ import {
11
+ addSensitiveMetadata,
12
+ getAllSensitiveMetadata,
13
+ outputDebug,
14
+ renderWarning
15
+ } from "../chunk-WLJ2CNLG.js";
16
+ import "../chunk-FBB6KUZG.js";
17
+ import "../chunk-YLEF4RUH.js";
18
+ import "../chunk-G6FN5VUE.js";
19
+ import "../chunk-UVY6LL5H.js";
20
+ import "../chunk-7XQTD3L4.js";
21
+ import "../chunk-P4TVG45N.js";
22
+ import "../chunk-ZPB26OWQ.js";
23
+ import "../chunk-WCNR75S2.js";
24
+ import "../chunk-3JLUTHGR.js";
25
+ import "../chunk-GXPKATXW.js";
26
+ import {
27
+ init_cjs_shims
28
+ } from "../chunk-M63RTPGR.js";
29
+
30
+ // src/hooks/postrun.ts
31
+ init_cjs_shims();
32
+
33
+ // ../cli-kit/src/public/node/hooks/postrun.ts
34
+ init_cjs_shims();
35
+
36
+ // ../cli-kit/src/public/node/hooks/deprecations.ts
37
+ init_cjs_shims();
38
+
39
+ // ../cli-kit/src/private/node/context/deprecations-store.ts
40
+ init_cjs_shims();
41
+ var globalWithDeprecationsStore = {
42
+ ...globalThis,
43
+ deprecationsStore: {
44
+ nextDeprecationDate: void 0
45
+ }
46
+ };
47
+ function getNextDeprecationDate() {
48
+ return globalWithDeprecationsStore.deprecationsStore.nextDeprecationDate;
49
+ }
50
+
51
+ // ../cli-kit/src/public/node/hooks/deprecations.ts
52
+ var postrun = (Command) => {
53
+ const nextDeprecationDate = getNextDeprecationDate();
54
+ if (nextDeprecationDate) {
55
+ const forThemes = Command?.id?.includes("theme");
56
+ renderUpgradeWarning(nextDeprecationDate, forThemes);
57
+ }
58
+ };
59
+ function renderUpgradeWarning(upgradeByDate, forThemes) {
60
+ const dateFormat = new Intl.DateTimeFormat("default", {
61
+ year: "numeric",
62
+ month: "long",
63
+ day: "numeric"
64
+ });
65
+ const formattedDate = dateFormat.format(upgradeByDate);
66
+ const headline = `Upgrade to the latest CLI version by ${formattedDate}.`;
67
+ const body = "This command requires an upgrade to continue working as intended.";
68
+ const upgradeLink = {
69
+ link: {
70
+ label: "upgrade Shopify CLI",
71
+ url: forThemes ? `https://shopify.dev/docs/themes/tools/cli#upgrade-shopify-cli` : `https://shopify.dev/docs/apps/tools/cli#upgrade-shopify-cli`
72
+ }
73
+ };
74
+ const nextSteps = [["Run", { command: "upgrade" }, "to", upgradeLink]];
75
+ renderWarning({
76
+ headline,
77
+ body,
78
+ nextSteps
79
+ });
80
+ }
81
+
82
+ // ../cli-kit/src/public/node/hooks/postrun.ts
83
+ var hook = async ({ config, Command }) => {
84
+ await detectStopCommand(Command);
85
+ await reportAnalyticsEvent({ config, exitMode: "ok" });
86
+ postrun(Command);
87
+ const command = Command?.id?.replace(/:/g, " ");
88
+ outputDebug(`Completed command ${command}`);
89
+ };
90
+ async function detectStopCommand(commandClass) {
91
+ const currentTime = (/* @__PURE__ */ new Date()).getTime();
92
+ if (commandClass && Object.prototype.hasOwnProperty.call(commandClass, "analyticsStopCommand")) {
93
+ const stopCommand = commandClass.analyticsStopCommand();
94
+ if (stopCommand) {
95
+ const { commandStartOptions } = getAllSensitiveMetadata();
96
+ await addSensitiveMetadata(() => ({
97
+ commandStartOptions: {
98
+ ...commandStartOptions,
99
+ startTime: currentTime,
100
+ startCommand: stopCommand
101
+ }
102
+ }));
103
+ }
104
+ }
105
+ }
106
+ export {
107
+ hook as default
108
+ };
@@ -1,2 +1,77 @@
1
- export { hook as default } from '@shopify/cli-kit/node/hooks/prerun';
2
- //# sourceMappingURL=prerun.js.map
1
+ import {
2
+ startAnalytics
3
+ } from "../chunk-BOIUUJSH.js";
4
+ import "../chunk-JP7Y3CTL.js";
5
+ import "../chunk-ZDCQCTOO.js";
6
+ import {
7
+ outputDebug
8
+ } from "../chunk-WLJ2CNLG.js";
9
+ import "../chunk-FBB6KUZG.js";
10
+ import "../chunk-YLEF4RUH.js";
11
+ import "../chunk-G6FN5VUE.js";
12
+ import {
13
+ initDemoRecorder
14
+ } from "../chunk-UVY6LL5H.js";
15
+ import "../chunk-7XQTD3L4.js";
16
+ import "../chunk-P4TVG45N.js";
17
+ import "../chunk-ZPB26OWQ.js";
18
+ import "../chunk-WCNR75S2.js";
19
+ import "../chunk-3JLUTHGR.js";
20
+ import "../chunk-GXPKATXW.js";
21
+ import {
22
+ init_cjs_shims
23
+ } from "../chunk-M63RTPGR.js";
24
+
25
+ // src/hooks/prerun.ts
26
+ init_cjs_shims();
27
+
28
+ // ../cli-kit/src/public/node/hooks/prerun.ts
29
+ init_cjs_shims();
30
+ var hook = async (options) => {
31
+ initDemoRecorder();
32
+ const commandContent = parseCommandContent({
33
+ id: options.Command.id,
34
+ aliases: options.Command.aliases,
35
+ pluginAlias: options.Command.plugin?.alias
36
+ });
37
+ const args = options.argv;
38
+ outputDebug(`Running command ${commandContent.command}`);
39
+ await startAnalytics({ commandContent, args, commandClass: options.Command });
40
+ };
41
+ function parseCommandContent(cmdInfo) {
42
+ let commandContent = parseCreateCommand(cmdInfo.pluginAlias);
43
+ if (!commandContent) {
44
+ commandContent = parseNormalCommand(cmdInfo.id, cmdInfo.aliases);
45
+ }
46
+ return commandContent;
47
+ }
48
+ function parseNormalCommand(id, aliases) {
49
+ return {
50
+ command: id.replace(/:/g, " "),
51
+ topic: parseTopic(id),
52
+ alias: findAlias(aliases)
53
+ };
54
+ }
55
+ function parseCreateCommand(pluginAlias) {
56
+ if (!pluginAlias || !pluginAlias.startsWith("@shopify/create-")) {
57
+ return void 0;
58
+ }
59
+ return { command: pluginAlias.substring(pluginAlias.indexOf("/") + 1) };
60
+ }
61
+ function parseTopic(cmd) {
62
+ if (cmd.lastIndexOf(":") === -1) {
63
+ return;
64
+ }
65
+ return cmd.slice(0, cmd.lastIndexOf(":")).replace(/:/g, " ");
66
+ }
67
+ function findAlias(aliases) {
68
+ const existingAlias = aliases.find(
69
+ (alias) => alias.split(":").every((aliasToken) => process.argv.includes(aliasToken))
70
+ );
71
+ if (existingAlias) {
72
+ return existingAlias.replace(/:/g, " ");
73
+ }
74
+ }
75
+ export {
76
+ hook as default
77
+ };
package/dist/index.js CHANGED
@@ -1,9 +1,24 @@
1
- import { runCreateCLI } from '@shopify/cli-kit/node/cli';
1
+ import {
2
+ runCreateCLI
3
+ } from "./chunk-4DXNY52K.js";
4
+ import "./chunk-UVY6LL5H.js";
5
+ import "./chunk-7XQTD3L4.js";
6
+ import "./chunk-P4TVG45N.js";
7
+ import "./chunk-ZPB26OWQ.js";
8
+ import "./chunk-WCNR75S2.js";
9
+ import {
10
+ init_cjs_shims
11
+ } from "./chunk-M63RTPGR.js";
12
+
13
+ // src/index.ts
14
+ init_cjs_shims();
2
15
  async function runCreateAppCLI(development) {
3
- await runCreateCLI({
4
- moduleURL: import.meta.url,
5
- development,
6
- });
16
+ await runCreateCLI({
17
+ moduleURL: import.meta.url,
18
+ development
19
+ });
7
20
  }
8
- export default runCreateAppCLI;
9
- //# sourceMappingURL=index.js.map
21
+ var src_default = runCreateAppCLI;
22
+ export {
23
+ src_default as default
24
+ };
@@ -0,0 +1,8 @@
1
+ import {
2
+ require_lib
3
+ } from "./chunk-7XQTD3L4.js";
4
+ import "./chunk-P4TVG45N.js";
5
+ import "./chunk-ZPB26OWQ.js";
6
+ import "./chunk-WCNR75S2.js";
7
+ import "./chunk-M63RTPGR.js";
8
+ export default require_lib();
@@ -0,0 +1,59 @@
1
+ import {
2
+ alwaysLogAnalytics,
3
+ alwaysLogMetrics,
4
+ analyticsDisabled,
5
+ ciPlatform,
6
+ cloudEnvironment,
7
+ codespacePortForwardingDomain,
8
+ codespaceURL,
9
+ firstPartyDev,
10
+ gitpodURL,
11
+ hasGit,
12
+ homeDirectory,
13
+ isCloudEnvironment,
14
+ isDevelopment,
15
+ isShopify,
16
+ isTerminalInteractive,
17
+ isUnitTest,
18
+ isVerbose,
19
+ macAddress,
20
+ opentelemetryDomain,
21
+ useDeviceAuth,
22
+ useEmbeddedThemeCLI,
23
+ useThemebundling
24
+ } from "./chunk-WLJ2CNLG.js";
25
+ import "./chunk-FBB6KUZG.js";
26
+ import "./chunk-YLEF4RUH.js";
27
+ import "./chunk-G6FN5VUE.js";
28
+ import "./chunk-UVY6LL5H.js";
29
+ import "./chunk-7XQTD3L4.js";
30
+ import "./chunk-P4TVG45N.js";
31
+ import "./chunk-ZPB26OWQ.js";
32
+ import "./chunk-WCNR75S2.js";
33
+ import "./chunk-3JLUTHGR.js";
34
+ import "./chunk-GXPKATXW.js";
35
+ import "./chunk-M63RTPGR.js";
36
+ export {
37
+ alwaysLogAnalytics,
38
+ alwaysLogMetrics,
39
+ analyticsDisabled,
40
+ ciPlatform,
41
+ cloudEnvironment,
42
+ codespacePortForwardingDomain,
43
+ codespaceURL,
44
+ firstPartyDev,
45
+ gitpodURL,
46
+ hasGit,
47
+ homeDirectory,
48
+ isCloudEnvironment,
49
+ isDevelopment,
50
+ isShopify,
51
+ isTerminalInteractive,
52
+ isUnitTest,
53
+ isVerbose,
54
+ macAddress,
55
+ opentelemetryDomain,
56
+ useDeviceAuth,
57
+ useEmbeddedThemeCLI,
58
+ useThemebundling
59
+ };