@shopify/create-app 3.82.1 → 3.83.1

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.
@@ -16,14 +16,12 @@ import {
16
16
  renderTasks,
17
17
  renderTextPrompt,
18
18
  renderWarning
19
- } from "./chunk-75QMAARJ.js";
20
- import "./chunk-2YVW3FGK.js";
19
+ } from "./chunk-EU5PDVVS.js";
20
+ import "./chunk-H3GWNOGA.js";
21
21
  import "./chunk-UMUTXITN.js";
22
22
  import "./chunk-Y2JP6WFP.js";
23
23
  import "./chunk-75LV6AQS.js";
24
- import "./chunk-VMUIREUQ.js";
25
- import "./chunk-CTFDRWUN.js";
26
- import "./chunk-7IK72W75.js";
24
+ import "./chunk-LABBARNJ.js";
27
25
  import "./chunk-G2ZZKGSV.js";
28
26
  import "./chunk-PKR7KJ6P.js";
29
27
  export {
@@ -45,4 +43,4 @@ export {
45
43
  renderTextPrompt,
46
44
  renderWarning
47
45
  };
48
- //# sourceMappingURL=ui-2DQEYOWO.js.map
46
+ //# sourceMappingURL=ui-CS3NGQRA.js.map
@@ -104,5 +104,5 @@
104
104
  "summary": "Create a new app project"
105
105
  }
106
106
  },
107
- "version": "3.82.1"
107
+ "version": "3.83.1"
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/create-app",
3
- "version": "3.82.1",
3
+ "version": "3.83.1",
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.25.5"
48
48
  },
49
49
  "devDependencies": {
50
- "@shopify/cli-kit": "3.82.1",
51
- "@shopify/app": "3.82.1",
50
+ "@shopify/cli-kit": "3.83.1",
51
+ "@shopify/app": "3.83.1",
52
52
  "esbuild-plugin-copy": "^2.1.1",
53
53
  "@vitest/coverage-istanbul": "^3.1.4"
54
54
  },
@@ -86,8 +86,7 @@
86
86
  "clean": "nx clean",
87
87
  "lint": "nx lint",
88
88
  "lint:fix": "nx lint:fix",
89
- "test": "nx run create-app:test",
90
- "test:watch": "nx test:watch",
89
+ "vitest": "vitest",
91
90
  "type-check": "nx type-check"
92
91
  }
93
92
  }
@@ -1,374 +0,0 @@
1
- import {
2
- require_glob
3
- } from "./chunk-ILI5X6PP.js";
4
- import "./chunk-SHWOPMLQ.js";
5
- import {
6
- require_graceful_fs
7
- } from "./chunk-75LV6AQS.js";
8
- import {
9
- require_globby,
10
- require_indent_string,
11
- require_slash
12
- } from "./chunk-VMUIREUQ.js";
13
- import "./chunk-CTFDRWUN.js";
14
- import {
15
- require_is_glob
16
- } from "./chunk-7IK72W75.js";
17
- import {
18
- __commonJS,
19
- __require,
20
- init_cjs_shims
21
- } from "./chunk-PKR7KJ6P.js";
22
-
23
- // ../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js
24
- var require_is_path_cwd = __commonJS({
25
- "../../node_modules/.pnpm/is-path-cwd@2.2.0/node_modules/is-path-cwd/index.js"(exports, module) {
26
- "use strict";
27
- init_cjs_shims();
28
- var path = __require("path");
29
- module.exports = (path_) => {
30
- let cwd = process.cwd();
31
- return path_ = path.resolve(path_), process.platform === "win32" && (cwd = cwd.toLowerCase(), path_ = path_.toLowerCase()), path_ === cwd;
32
- };
33
- }
34
- });
35
-
36
- // ../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js
37
- var require_is_path_inside = __commonJS({
38
- "../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(exports, module) {
39
- "use strict";
40
- init_cjs_shims();
41
- var path = __require("path");
42
- module.exports = (childPath, parentPath) => {
43
- let relation = path.relative(parentPath, childPath);
44
- return !!(relation && relation !== ".." && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath));
45
- };
46
- }
47
- });
48
-
49
- // ../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js
50
- var require_rimraf = __commonJS({
51
- "../../node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module) {
52
- init_cjs_shims();
53
- var assert = __require("assert"), path = __require("path"), fs = __require("fs"), glob;
54
- try {
55
- glob = require_glob();
56
- } catch {
57
- }
58
- var defaultGlobOpts = {
59
- nosort: !0,
60
- silent: !0
61
- }, timeout = 0, isWindows = process.platform === "win32", defaults = (options) => {
62
- if ([
63
- "unlink",
64
- "chmod",
65
- "stat",
66
- "lstat",
67
- "rmdir",
68
- "readdir"
69
- ].forEach((m) => {
70
- options[m] = options[m] || fs[m], m = m + "Sync", options[m] = options[m] || fs[m];
71
- }), options.maxBusyTries = options.maxBusyTries || 3, options.emfileWait = options.emfileWait || 1e3, options.glob === !1 && (options.disableGlob = !0), options.disableGlob !== !0 && glob === void 0)
72
- throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");
73
- options.disableGlob = options.disableGlob || !1, options.glob = options.glob || defaultGlobOpts;
74
- }, rimraf = (p, options, cb) => {
75
- typeof options == "function" && (cb = options, options = {}), assert(p, "rimraf: missing path"), assert.equal(typeof p, "string", "rimraf: path should be a string"), assert.equal(typeof cb, "function", "rimraf: callback function required"), assert(options, "rimraf: invalid options argument provided"), assert.equal(typeof options, "object", "rimraf: options should be object"), defaults(options);
76
- let busyTries = 0, errState = null, n = 0, next = (er) => {
77
- errState = errState || er, --n === 0 && cb(errState);
78
- }, afterGlob = (er, results) => {
79
- if (er)
80
- return cb(er);
81
- if (n = results.length, n === 0)
82
- return cb();
83
- results.forEach((p2) => {
84
- let CB = (er2) => {
85
- if (er2) {
86
- if ((er2.code === "EBUSY" || er2.code === "ENOTEMPTY" || er2.code === "EPERM") && busyTries < options.maxBusyTries)
87
- return busyTries++, setTimeout(() => rimraf_(p2, options, CB), busyTries * 100);
88
- if (er2.code === "EMFILE" && timeout < options.emfileWait)
89
- return setTimeout(() => rimraf_(p2, options, CB), timeout++);
90
- er2.code === "ENOENT" && (er2 = null);
91
- }
92
- timeout = 0, next(er2);
93
- };
94
- rimraf_(p2, options, CB);
95
- });
96
- };
97
- if (options.disableGlob || !glob.hasMagic(p))
98
- return afterGlob(null, [p]);
99
- options.lstat(p, (er, stat) => {
100
- if (!er)
101
- return afterGlob(null, [p]);
102
- glob(p, options.glob, afterGlob);
103
- });
104
- }, rimraf_ = (p, options, cb) => {
105
- assert(p), assert(options), assert(typeof cb == "function"), options.lstat(p, (er, st) => {
106
- if (er && er.code === "ENOENT")
107
- return cb(null);
108
- if (er && er.code === "EPERM" && isWindows && fixWinEPERM(p, options, er, cb), st && st.isDirectory())
109
- return rmdir(p, options, er, cb);
110
- options.unlink(p, (er2) => {
111
- if (er2) {
112
- if (er2.code === "ENOENT")
113
- return cb(null);
114
- if (er2.code === "EPERM")
115
- return isWindows ? fixWinEPERM(p, options, er2, cb) : rmdir(p, options, er2, cb);
116
- if (er2.code === "EISDIR")
117
- return rmdir(p, options, er2, cb);
118
- }
119
- return cb(er2);
120
- });
121
- });
122
- }, fixWinEPERM = (p, options, er, cb) => {
123
- assert(p), assert(options), assert(typeof cb == "function"), options.chmod(p, 438, (er2) => {
124
- er2 ? cb(er2.code === "ENOENT" ? null : er) : options.stat(p, (er3, stats) => {
125
- er3 ? cb(er3.code === "ENOENT" ? null : er) : stats.isDirectory() ? rmdir(p, options, er, cb) : options.unlink(p, cb);
126
- });
127
- });
128
- }, fixWinEPERMSync = (p, options, er) => {
129
- assert(p), assert(options);
130
- try {
131
- options.chmodSync(p, 438);
132
- } catch (er2) {
133
- if (er2.code === "ENOENT")
134
- return;
135
- throw er;
136
- }
137
- let stats;
138
- try {
139
- stats = options.statSync(p);
140
- } catch (er3) {
141
- if (er3.code === "ENOENT")
142
- return;
143
- throw er;
144
- }
145
- stats.isDirectory() ? rmdirSync(p, options, er) : options.unlinkSync(p);
146
- }, rmdir = (p, options, originalEr, cb) => {
147
- assert(p), assert(options), assert(typeof cb == "function"), options.rmdir(p, (er) => {
148
- er && (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") ? rmkids(p, options, cb) : er && er.code === "ENOTDIR" ? cb(originalEr) : cb(er);
149
- });
150
- }, rmkids = (p, options, cb) => {
151
- assert(p), assert(options), assert(typeof cb == "function"), options.readdir(p, (er, files) => {
152
- if (er)
153
- return cb(er);
154
- let n = files.length;
155
- if (n === 0)
156
- return options.rmdir(p, cb);
157
- let errState;
158
- files.forEach((f) => {
159
- rimraf(path.join(p, f), options, (er2) => {
160
- if (!errState) {
161
- if (er2)
162
- return cb(errState = er2);
163
- --n === 0 && options.rmdir(p, cb);
164
- }
165
- });
166
- });
167
- });
168
- }, rimrafSync = (p, options) => {
169
- options = options || {}, defaults(options), assert(p, "rimraf: missing path"), assert.equal(typeof p, "string", "rimraf: path should be a string"), assert(options, "rimraf: missing options"), assert.equal(typeof options, "object", "rimraf: options should be object");
170
- let results;
171
- if (options.disableGlob || !glob.hasMagic(p))
172
- results = [p];
173
- else
174
- try {
175
- options.lstatSync(p), results = [p];
176
- } catch {
177
- results = glob.sync(p, options.glob);
178
- }
179
- if (results.length)
180
- for (let i = 0; i < results.length; i++) {
181
- let p2 = results[i], st;
182
- try {
183
- st = options.lstatSync(p2);
184
- } catch (er) {
185
- if (er.code === "ENOENT")
186
- return;
187
- er.code === "EPERM" && isWindows && fixWinEPERMSync(p2, options, er);
188
- }
189
- try {
190
- st && st.isDirectory() ? rmdirSync(p2, options, null) : options.unlinkSync(p2);
191
- } catch (er) {
192
- if (er.code === "ENOENT")
193
- return;
194
- if (er.code === "EPERM")
195
- return isWindows ? fixWinEPERMSync(p2, options, er) : rmdirSync(p2, options, er);
196
- if (er.code !== "EISDIR")
197
- throw er;
198
- rmdirSync(p2, options, er);
199
- }
200
- }
201
- }, rmdirSync = (p, options, originalEr) => {
202
- assert(p), assert(options);
203
- try {
204
- options.rmdirSync(p);
205
- } catch (er) {
206
- if (er.code === "ENOENT")
207
- return;
208
- if (er.code === "ENOTDIR")
209
- throw originalEr;
210
- (er.code === "ENOTEMPTY" || er.code === "EEXIST" || er.code === "EPERM") && rmkidsSync(p, options);
211
- }
212
- }, rmkidsSync = (p, options) => {
213
- assert(p), assert(options), options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
214
- let retries = isWindows ? 100 : 1, i = 0;
215
- do {
216
- let threw = !0;
217
- try {
218
- let ret = options.rmdirSync(p, options);
219
- return threw = !1, ret;
220
- } finally {
221
- if (++i < retries && threw)
222
- continue;
223
- }
224
- } while (!0);
225
- };
226
- module.exports = rimraf;
227
- rimraf.sync = rimrafSync;
228
- }
229
- });
230
-
231
- // ../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js
232
- var require_clean_stack = __commonJS({
233
- "../../node_modules/.pnpm/clean-stack@2.2.0/node_modules/clean-stack/index.js"(exports, module) {
234
- "use strict";
235
- init_cjs_shims();
236
- var os = __require("os"), extractPathRegex = /\s+at.*(?:\(|\s)(.*)\)?/, pathRegex = /^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/, homeDir = typeof os.homedir > "u" ? "" : os.homedir();
237
- module.exports = (stack, options) => (options = Object.assign({ pretty: !1 }, options), stack.replace(/\\/g, "/").split(`
238
- `).filter((line) => {
239
- let pathMatches = line.match(extractPathRegex);
240
- if (pathMatches === null || !pathMatches[1])
241
- return !0;
242
- let match = pathMatches[1];
243
- return match.includes(".app/Contents/Resources/electron.asar") || match.includes(".app/Contents/Resources/default_app.asar") ? !1 : !pathRegex.test(match);
244
- }).filter((line) => line.trim() !== "").map((line) => options.pretty ? line.replace(extractPathRegex, (m, p1) => m.replace(p1, p1.replace(homeDir, "~"))) : line).join(`
245
- `));
246
- }
247
- });
248
-
249
- // ../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js
250
- var require_aggregate_error = __commonJS({
251
- "../../node_modules/.pnpm/aggregate-error@3.1.0/node_modules/aggregate-error/index.js"(exports, module) {
252
- "use strict";
253
- init_cjs_shims();
254
- var indentString = require_indent_string(), cleanStack = require_clean_stack(), cleanInternalStack = (stack) => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ""), AggregateError = class extends Error {
255
- constructor(errors) {
256
- if (!Array.isArray(errors))
257
- throw new TypeError(`Expected input to be an Array, got ${typeof errors}`);
258
- errors = [...errors].map((error) => error instanceof Error ? error : error !== null && typeof error == "object" ? Object.assign(new Error(error.message), error) : new Error(error));
259
- let message = errors.map((error) => typeof error.stack == "string" ? cleanInternalStack(cleanStack(error.stack)) : String(error)).join(`
260
- `);
261
- message = `
262
- ` + indentString(message, 4), super(message), this.name = "AggregateError", Object.defineProperty(this, "_errors", { value: errors });
263
- }
264
- *[Symbol.iterator]() {
265
- for (let error of this._errors)
266
- yield error;
267
- }
268
- };
269
- module.exports = AggregateError;
270
- }
271
- });
272
-
273
- // ../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js
274
- var require_p_map = __commonJS({
275
- "../../node_modules/.pnpm/p-map@4.0.0/node_modules/p-map/index.js"(exports, module) {
276
- "use strict";
277
- init_cjs_shims();
278
- var AggregateError = require_aggregate_error();
279
- module.exports = async (iterable, mapper, {
280
- concurrency = 1 / 0,
281
- stopOnError = !0
282
- } = {}) => new Promise((resolve, reject) => {
283
- if (typeof mapper != "function")
284
- throw new TypeError("Mapper function is required");
285
- if (!((Number.isSafeInteger(concurrency) || concurrency === 1 / 0) && concurrency >= 1))
286
- throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${concurrency}\` (${typeof concurrency})`);
287
- let result = [], errors = [], iterator = iterable[Symbol.iterator](), isRejected = !1, isIterableDone = !1, resolvingCount = 0, currentIndex = 0, next = () => {
288
- if (isRejected)
289
- return;
290
- let nextItem = iterator.next(), index = currentIndex;
291
- if (currentIndex++, nextItem.done) {
292
- isIterableDone = !0, resolvingCount === 0 && (!stopOnError && errors.length !== 0 ? reject(new AggregateError(errors)) : resolve(result));
293
- return;
294
- }
295
- resolvingCount++, (async () => {
296
- try {
297
- let element = await nextItem.value;
298
- result[index] = await mapper(element, index), resolvingCount--, next();
299
- } catch (error) {
300
- stopOnError ? (isRejected = !0, reject(error)) : (errors.push(error), resolvingCount--, next());
301
- }
302
- })();
303
- };
304
- for (let i = 0; i < concurrency && (next(), !isIterableDone); i++)
305
- ;
306
- });
307
- }
308
- });
309
-
310
- // ../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js
311
- var require_del = __commonJS({
312
- "../../node_modules/.pnpm/del@6.1.1/node_modules/del/index.js"(exports, module) {
313
- init_cjs_shims();
314
- var { promisify } = __require("util"), path = __require("path"), globby = require_globby(), isGlob = require_is_glob(), slash = require_slash(), gracefulFs = require_graceful_fs(), isPathCwd = require_is_path_cwd(), isPathInside = require_is_path_inside(), rimraf = require_rimraf(), pMap = require_p_map(), rimrafP = promisify(rimraf), rimrafOptions = {
315
- glob: !1,
316
- unlink: gracefulFs.unlink,
317
- unlinkSync: gracefulFs.unlinkSync,
318
- chmod: gracefulFs.chmod,
319
- chmodSync: gracefulFs.chmodSync,
320
- stat: gracefulFs.stat,
321
- statSync: gracefulFs.statSync,
322
- lstat: gracefulFs.lstat,
323
- lstatSync: gracefulFs.lstatSync,
324
- rmdir: gracefulFs.rmdir,
325
- rmdirSync: gracefulFs.rmdirSync,
326
- readdir: gracefulFs.readdir,
327
- readdirSync: gracefulFs.readdirSync
328
- };
329
- function safeCheck(file, cwd) {
330
- if (isPathCwd(file))
331
- throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.");
332
- if (!isPathInside(file, cwd))
333
- throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.");
334
- }
335
- function normalizePatterns(patterns) {
336
- return patterns = Array.isArray(patterns) ? patterns : [patterns], patterns = patterns.map((pattern) => process.platform === "win32" && isGlob(pattern) === !1 ? slash(pattern) : pattern), patterns;
337
- }
338
- module.exports = async (patterns, { force, dryRun, cwd = process.cwd(), onProgress = () => {
339
- }, ...options } = {}) => {
340
- options = {
341
- expandDirectories: !1,
342
- onlyFiles: !1,
343
- followSymbolicLinks: !1,
344
- cwd,
345
- ...options
346
- }, patterns = normalizePatterns(patterns);
347
- let files = (await globby(patterns, options)).sort((a, b) => b.localeCompare(a));
348
- files.length === 0 && onProgress({
349
- totalCount: 0,
350
- deletedCount: 0,
351
- percent: 1
352
- });
353
- let deletedCount = 0, removedFiles = await pMap(files, async (file) => (file = path.resolve(cwd, file), force || safeCheck(file, cwd), dryRun || await rimrafP(file, rimrafOptions), deletedCount += 1, onProgress({
354
- totalCount: files.length,
355
- deletedCount,
356
- percent: deletedCount / files.length
357
- }), file), options);
358
- return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
359
- };
360
- module.exports.sync = (patterns, { force, dryRun, cwd = process.cwd(), ...options } = {}) => {
361
- options = {
362
- expandDirectories: !1,
363
- onlyFiles: !1,
364
- followSymbolicLinks: !1,
365
- cwd,
366
- ...options
367
- }, patterns = normalizePatterns(patterns);
368
- let removedFiles = globby.sync(patterns, options).sort((a, b) => b.localeCompare(a)).map((file) => (file = path.resolve(cwd, file), force || safeCheck(file, cwd), dryRun || rimraf.sync(file, rimrafOptions), file));
369
- return removedFiles.sort((a, b) => a.localeCompare(b)), removedFiles;
370
- };
371
- }
372
- });
373
- export default require_del();
374
- //# sourceMappingURL=del-MOZRBB7Y.js.map
@@ -1,11 +0,0 @@
1
- import {
2
- require_lib
3
- } from "./chunk-2YVW3FGK.js";
4
- import "./chunk-UMUTXITN.js";
5
- import "./chunk-VMUIREUQ.js";
6
- import "./chunk-CTFDRWUN.js";
7
- import "./chunk-7IK72W75.js";
8
- import "./chunk-G2ZZKGSV.js";
9
- import "./chunk-PKR7KJ6P.js";
10
- export default require_lib();
11
- //# sourceMappingURL=lib-UJ7YNLH4.js.map