@shopify/create-app 3.69.4 → 3.71.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 (31) hide show
  1. package/dist/{chunk-Q3BCFN7X.js → chunk-33RXIX54.js} +15 -20
  2. package/dist/{chunk-4XZVKK5N.js → chunk-4ZKJC2JB.js} +3 -3
  3. package/dist/{chunk-L7M22NDW.js → chunk-6WYZ3SZB.js} +2 -2
  4. package/dist/{chunk-2A7GNM7F.js → chunk-7F4XFNYI.js} +2 -2
  5. package/dist/{chunk-AZIUHI45.js → chunk-CQGOPQQH.js} +5 -5
  6. package/dist/{chunk-CZRFEKLZ.js → chunk-JPPYUT6M.js} +23535 -23336
  7. package/dist/{chunk-MX4RJDBM.js → chunk-KYB6A4PE.js} +1 -2
  8. package/dist/{chunk-A7RFWXE2.js → chunk-PATNPZAL.js} +14 -11
  9. package/dist/{chunk-BB4M6AYQ.js → chunk-PGUENKZG.js} +28 -212
  10. package/dist/{chunk-ZYFGLOXH.js → chunk-PUMOQDXS.js} +258 -57
  11. package/dist/{chunk-PNN7RS7Y.js → chunk-X36SPRUS.js} +100 -11
  12. package/dist/{custom-oclif-loader-53O4TZIJ.js → custom-oclif-loader-OP5VH4KR.js} +9 -11
  13. package/dist/{del-42HQA7PR.js → del-2FOJ63S7.js} +4 -4
  14. package/dist/{error-handler-WHWFBH7O.js → error-handler-WKRKCPUQ.js} +11 -13
  15. package/dist/hooks/postrun.js +9 -11
  16. package/dist/hooks/prerun.js +9 -13
  17. package/dist/index.js +149240 -145769
  18. package/dist/index.test.js +120 -65
  19. package/dist/{lib-H5ZGVBFQ.js → lib-EGJUAXU5.js} +5 -5
  20. package/dist/{local-RKKDDHC7.js → local-IPRKH7YW.js} +9 -9
  21. package/dist/{node-package-manager-MZVZACMV.js → node-package-manager-CPX2FDHZ.js} +8 -10
  22. package/dist/{out-ZDSLKX4N.js → out-MHEKZJWS.js} +2 -2
  23. package/dist/{path-G6AAF6UV.js → path-EGU2FCFY.js} +2 -3
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/dist/{ui-5ZHMFGW7.js → ui-AAFX7Q72.js} +7 -9
  26. package/oclif.manifest.json +1 -1
  27. package/package.json +3 -3
  28. package/dist/chunk-BB6N2XSA.js +0 -112
  29. package/dist/chunk-G6AY2JW5.js +0 -115
  30. package/dist/constants-GVJLI6RE.js +0 -24
  31. package/dist/system-HEFPAS7V.js +0 -27
@@ -17,18 +17,16 @@ import {
17
17
  renderText,
18
18
  renderTextPrompt,
19
19
  renderWarning
20
- } from "./chunk-CZRFEKLZ.js";
21
- import "./chunk-AZIUHI45.js";
20
+ } from "./chunk-JPPYUT6M.js";
21
+ import "./chunk-CQGOPQQH.js";
22
22
  import "./chunk-SNOECVP4.js";
23
- import "./chunk-UBB7JKND.js";
24
23
  import "./chunk-522OB3EU.js";
24
+ import "./chunk-X36SPRUS.js";
25
25
  import "./chunk-XVNW332R.js";
26
- import "./chunk-L7M22NDW.js";
27
- import "./chunk-MX4RJDBM.js";
26
+ import "./chunk-6WYZ3SZB.js";
27
+ import "./chunk-KYB6A4PE.js";
28
28
  import "./chunk-NB4NLOEJ.js";
29
- import "./chunk-G6AY2JW5.js";
30
- import "./chunk-BB6N2XSA.js";
31
- import "./chunk-PNN7RS7Y.js";
29
+ import "./chunk-UBB7JKND.js";
32
30
  import "./chunk-POZ5MGPT.js";
33
31
  export {
34
32
  handleCtrlC,
@@ -50,4 +48,4 @@ export {
50
48
  renderTextPrompt,
51
49
  renderWarning
52
50
  };
53
- //# sourceMappingURL=ui-5ZHMFGW7.js.map
51
+ //# sourceMappingURL=ui-AAFX7Q72.js.map
@@ -104,5 +104,5 @@
104
104
  "summary": "Create a new app project"
105
105
  }
106
106
  },
107
- "version": "3.69.4"
107
+ "version": "3.71.0"
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/create-app",
3
- "version": "3.69.4",
3
+ "version": "3.71.0",
4
4
  "private": false,
5
5
  "description": "A CLI tool to create a new Shopify app.",
6
6
  "keywords": [
@@ -47,8 +47,8 @@
47
47
  "esbuild": "0.19.8"
48
48
  },
49
49
  "devDependencies": {
50
- "@shopify/cli-kit": "3.69.4",
51
- "@shopify/app": "3.69.4",
50
+ "@shopify/cli-kit": "3.71.0",
51
+ "@shopify/app": "3.71.0",
52
52
  "@types/node": "18.19.3",
53
53
  "esbuild-plugin-copy": "^2.1.1",
54
54
  "@vitest/coverage-istanbul": "^1.6.0"
@@ -1,112 +0,0 @@
1
- import {
2
- basename,
3
- dirname,
4
- extname,
5
- isAbsolute,
6
- join,
7
- normalize,
8
- relative,
9
- resolve
10
- } from "./chunk-PNN7RS7Y.js";
11
- import {
12
- __commonJS,
13
- __require,
14
- __toESM,
15
- init_cjs_shims
16
- } from "./chunk-POZ5MGPT.js";
17
-
18
- // ../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js
19
- var require_commondir = __commonJS({
20
- "../../node_modules/.pnpm/commondir@1.0.1/node_modules/commondir/index.js"(exports, module) {
21
- init_cjs_shims();
22
- var path = __require("path");
23
- module.exports = function(basedir, relfiles) {
24
- if (relfiles)
25
- var files = relfiles.map(function(r) {
26
- return path.resolve(basedir, r);
27
- });
28
- else
29
- var files = basedir;
30
- var res = files.slice(1).reduce(function(ps, file) {
31
- if (!file.match(/^([A-Za-z]:)?\/|\\/))
32
- throw new Error("relative path without a basedir");
33
- for (var xs = file.split(/\/+|\\+/), i = 0; ps[i] === xs[i] && i < Math.min(ps.length, xs.length); i++)
34
- ;
35
- return ps.slice(0, i);
36
- }, files[0].split(/\/+|\\+/));
37
- return res.length > 1 ? res.join("/") : "/";
38
- };
39
- }
40
- });
41
-
42
- // ../cli-kit/dist/public/node/path.js
43
- init_cjs_shims();
44
- var import_commondir = __toESM(require_commondir(), 1);
45
- import { fileURLToPath } from "url";
46
- function joinPath(...paths) {
47
- return join(...paths);
48
- }
49
- function normalizePath(path) {
50
- return normalize(path);
51
- }
52
- function resolvePath(...paths) {
53
- return resolve(...paths);
54
- }
55
- function relativePath(from, to) {
56
- return relative(from, to);
57
- }
58
- function isAbsolutePath(path) {
59
- return isAbsolute(path);
60
- }
61
- function dirname2(path) {
62
- return dirname(path);
63
- }
64
- function basename2(path, ext) {
65
- return basename(path, ext);
66
- }
67
- function extname2(path) {
68
- return extname(path);
69
- }
70
- function relativizePath(path, dir = cwd()) {
71
- let result = (0, import_commondir.default)([path, dir]), relativePath2 = relative(dir, path), relativeComponents = relativePath2.split("/").filter((component) => component === "..").length;
72
- return result === "/" || relativePath2 === "" || relativeComponents > 2 ? path : relativePath2;
73
- }
74
- function isSubpath(mainPath, subpath) {
75
- let relativePath2 = relative(mainPath, subpath);
76
- return !relativePath2.startsWith("..") && !isAbsolutePath(relativePath2);
77
- }
78
- function moduleDirectory(moduleURL) {
79
- return dirname2(fileURLToPath(moduleURL));
80
- }
81
- function cwd() {
82
- return normalize(process.env.INIT_CWD ? process.env.INIT_CWD : process.cwd());
83
- }
84
- function sniffForPath(argv = process.argv) {
85
- let pathFlagIndex = argv.indexOf("--path");
86
- if (pathFlagIndex === -1)
87
- return argv.find((arg) => arg.startsWith("--path="))?.split("=")[1];
88
- let pathFlag = argv[pathFlagIndex + 1];
89
- if (!(!pathFlag || pathFlag.startsWith("-")))
90
- return pathFlag;
91
- }
92
- function sniffForJson(argv = process.argv) {
93
- return argv.indexOf("--json") !== -1;
94
- }
95
-
96
- export {
97
- joinPath,
98
- normalizePath,
99
- resolvePath,
100
- relativePath,
101
- isAbsolutePath,
102
- dirname2 as dirname,
103
- basename2 as basename,
104
- extname2 as extname,
105
- relativizePath,
106
- isSubpath,
107
- moduleDirectory,
108
- cwd,
109
- sniffForPath,
110
- sniffForJson
111
- };
112
- //# sourceMappingURL=chunk-BB6N2XSA.js.map
@@ -1,115 +0,0 @@
1
- import {
2
- joinPath
3
- } from "./chunk-BB6N2XSA.js";
4
- import {
5
- init_cjs_shims
6
- } from "./chunk-POZ5MGPT.js";
7
-
8
- // ../cli-kit/dist/private/node/constants.js
9
- init_cjs_shims();
10
-
11
- // ../../node_modules/.pnpm/env-paths@3.0.0/node_modules/env-paths/index.js
12
- init_cjs_shims();
13
- import path from "node:path";
14
- import os from "node:os";
15
- import process2 from "node:process";
16
- var homedir = os.homedir(), tmpdir = os.tmpdir(), { env } = process2, macos = (name) => {
17
- let library = path.join(homedir, "Library");
18
- return {
19
- data: path.join(library, "Application Support", name),
20
- config: path.join(library, "Preferences", name),
21
- cache: path.join(library, "Caches", name),
22
- log: path.join(library, "Logs", name),
23
- temp: path.join(tmpdir, name)
24
- };
25
- }, windows = (name) => {
26
- let appData = env.APPDATA || path.join(homedir, "AppData", "Roaming"), localAppData = env.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
27
- return {
28
- // Data/config/cache/log are invented by me as Windows isn't opinionated about this
29
- data: path.join(localAppData, name, "Data"),
30
- config: path.join(appData, name, "Config"),
31
- cache: path.join(localAppData, name, "Cache"),
32
- log: path.join(localAppData, name, "Log"),
33
- temp: path.join(tmpdir, name)
34
- };
35
- }, linux = (name) => {
36
- let username = path.basename(homedir);
37
- return {
38
- data: path.join(env.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
39
- config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
40
- cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
41
- // https://wiki.debian.org/XDGBaseDirectorySpecification#state
42
- log: path.join(env.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
43
- temp: path.join(tmpdir, username, name)
44
- };
45
- };
46
- function envPaths(name, { suffix = "nodejs" } = {}) {
47
- if (typeof name != "string")
48
- throw new TypeError(`Expected a string, got ${typeof name}`);
49
- return suffix && (name += `-${suffix}`), process2.platform === "darwin" ? macos(name) : process2.platform === "win32" ? windows(name) : linux(name);
50
- }
51
-
52
- // ../cli-kit/dist/private/node/constants.js
53
- var identifier = "shopify-cli", cacheFolder = () => process.env.XDG_CACHE_HOME ? process.env.XDG_CACHE_HOME : envPaths(identifier).cache, logsFolder = () => envPaths(identifier).log, environmentVariables = {
54
- alwaysLogAnalytics: "SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",
55
- alwaysLogMetrics: "SHOPIFY_CLI_ALWAYS_LOG_METRICS",
56
- deviceAuth: "SHOPIFY_CLI_DEVICE_AUTH",
57
- enableCliRedirect: "SHOPIFY_CLI_ENABLE_CLI_REDIRECT",
58
- env: "SHOPIFY_CLI_ENV",
59
- firstPartyDev: "SHOPIFY_CLI_1P_DEV",
60
- noAnalytics: "SHOPIFY_CLI_NO_ANALYTICS",
61
- partnersToken: "SHOPIFY_CLI_PARTNERS_TOKEN",
62
- runAsUser: "SHOPIFY_RUN_AS_USER",
63
- serviceEnv: "SHOPIFY_SERVICE_ENV",
64
- skipCliRedirect: "SHOPIFY_CLI_SKIP_CLI_REDIRECT",
65
- spinInstance: "SPIN_INSTANCE",
66
- themeToken: "SHOPIFY_CLI_THEME_TOKEN",
67
- unitTest: "SHOPIFY_UNIT_TEST",
68
- verbose: "SHOPIFY_FLAG_VERBOSE",
69
- noThemeBundling: "SHOPIFY_CLI_NO_THEME_BUNDLING",
70
- bundledThemeCLI: "SHOPIFY_CLI_BUNDLED_THEME_CLI",
71
- // Variables to detect if the CLI is running in a cloud environment
72
- codespaces: "CODESPACES",
73
- codespaceName: "CODESPACE_NAME",
74
- codespacePortForwardingDomain: "GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN",
75
- gitpod: "GITPOD_WORKSPACE_URL",
76
- cloudShell: "CLOUD_SHELL",
77
- spin: "SPIN",
78
- spinAppPort: "SERVER_PORT",
79
- spinAppHost: "SPIN_APP_HOST",
80
- organization: "SHOPIFY_CLI_ORGANIZATION",
81
- identityToken: "SHOPIFY_CLI_IDENTITY_TOKEN",
82
- refreshToken: "SHOPIFY_CLI_REFRESH_TOKEN",
83
- otelURL: "SHOPIFY_CLI_OTEL_EXPORTER_OTLP_ENDPOINT",
84
- themeKitAccessDomain: "SHOPIFY_CLI_THEME_KIT_ACCESS_DOMAIN"
85
- }, defaultThemeKitAccessDomain = "theme-kit-access.shopifyapps.com", systemEnvironmentVariables = {
86
- backendPort: "BACKEND_PORT"
87
- }, pathConstants = {
88
- executables: {
89
- dev: "/opt/dev/bin/dev"
90
- },
91
- directories: {
92
- cache: {
93
- path: () => cacheFolder(),
94
- vendor: {
95
- path: () => joinPath(cacheFolder(), "vendor"),
96
- binaries: () => joinPath(cacheFolder(), "vendor", "binaries")
97
- }
98
- }
99
- }
100
- }, sessionConstants = {
101
- expirationTimeMarginInMinutes: 4
102
- }, bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae", reportingRateLimit = { limit: 300, timeout: { days: 1 } };
103
-
104
- export {
105
- envPaths,
106
- logsFolder,
107
- environmentVariables,
108
- defaultThemeKitAccessDomain,
109
- systemEnvironmentVariables,
110
- pathConstants,
111
- sessionConstants,
112
- bugsnagApiKey,
113
- reportingRateLimit
114
- };
115
- //# sourceMappingURL=chunk-G6AY2JW5.js.map
@@ -1,24 +0,0 @@
1
- import {
2
- bugsnagApiKey,
3
- defaultThemeKitAccessDomain,
4
- environmentVariables,
5
- logsFolder,
6
- pathConstants,
7
- reportingRateLimit,
8
- sessionConstants,
9
- systemEnvironmentVariables
10
- } from "./chunk-G6AY2JW5.js";
11
- import "./chunk-BB6N2XSA.js";
12
- import "./chunk-PNN7RS7Y.js";
13
- import "./chunk-POZ5MGPT.js";
14
- export {
15
- bugsnagApiKey,
16
- defaultThemeKitAccessDomain,
17
- environmentVariables,
18
- logsFolder,
19
- pathConstants,
20
- reportingRateLimit,
21
- sessionConstants,
22
- systemEnvironmentVariables
23
- };
24
- //# sourceMappingURL=constants-GVJLI6RE.js.map
@@ -1,27 +0,0 @@
1
- import {
2
- captureOutput,
3
- exec,
4
- openURL,
5
- sleep,
6
- terminalSupportsPrompting
7
- } from "./chunk-CZRFEKLZ.js";
8
- import "./chunk-AZIUHI45.js";
9
- import "./chunk-SNOECVP4.js";
10
- import "./chunk-UBB7JKND.js";
11
- import "./chunk-522OB3EU.js";
12
- import "./chunk-XVNW332R.js";
13
- import "./chunk-L7M22NDW.js";
14
- import "./chunk-MX4RJDBM.js";
15
- import "./chunk-NB4NLOEJ.js";
16
- import "./chunk-G6AY2JW5.js";
17
- import "./chunk-BB6N2XSA.js";
18
- import "./chunk-PNN7RS7Y.js";
19
- import "./chunk-POZ5MGPT.js";
20
- export {
21
- captureOutput,
22
- exec,
23
- openURL,
24
- sleep,
25
- terminalSupportsPrompting
26
- };
27
- //# sourceMappingURL=system-HEFPAS7V.js.map