@shopify/create-app 3.60.0 → 3.61.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.
- package/dist/{chunk-2EVDXDJS.js → chunk-5NBS5LAW.js} +1 -1
- package/dist/{chunk-P6YJ2CQU.js → chunk-7F4FS2WD.js} +7 -7
- package/dist/{chunk-P3DMHVBI.js → chunk-GQNJWQKC.js} +22 -17
- package/dist/{chunk-P6N3DVYZ.js → chunk-H3UBEY47.js} +3 -3
- package/dist/{chunk-ZDU6ZNVH.js → chunk-H4N7DG5X.js} +23 -19
- package/dist/{chunk-TMGCRPEZ.js → chunk-HTYJDJRZ.js} +685 -215
- package/dist/{chunk-3L6KY7Q3.js → chunk-I3IYXB26.js} +23 -6
- package/dist/{chunk-OYLUVGUB.js → chunk-J3QAMMY2.js} +1 -1
- package/dist/{chunk-ZPB26OWQ.js → chunk-K5EEGEVV.js} +34 -14
- package/dist/{chunk-BMMDEPWI.js → chunk-LLFZPH5K.js} +12 -9
- package/dist/{chunk-GKVC3752.js → chunk-LR725A3N.js} +3 -3
- package/dist/{chunk-P4TVG45N.js → chunk-LUP5VDI4.js} +10 -3
- package/dist/{chunk-L5LPMIFP.js → chunk-PGYGWMK7.js} +5 -5
- package/dist/{chunk-2YPXES4K.js → chunk-PKFDUXG6.js} +1 -1
- package/dist/{chunk-JOQ4LR3M.js → chunk-R5KQZMEG.js} +1 -1
- package/dist/{chunk-YLEF4RUH.js → chunk-RAFFEFML.js} +4 -0
- package/dist/{chunk-3JNB3A7C.js → chunk-U4YACXEW.js} +567 -357
- package/dist/{chunk-Q737A7ZQ.js → chunk-X2I3FAVD.js} +3 -3
- package/dist/{chunk-JA2XDFAC.js → chunk-XKDB3ST7.js} +3603 -4080
- package/dist/{chunk-ZWN4YW5O.js → chunk-YI3MHBSD.js} +1 -1
- package/dist/commands/init.js +19 -19
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/init.test.js +20 -20
- package/dist/{constants-K3R4N3N3.js → constants-NNLQHFRJ.js} +3 -1
- package/dist/{custom-oclif-loader-3GZ6YYAB.js → custom-oclif-loader-KLTAWG4B.js} +7 -6
- package/dist/{del-A5YM6R3Y.js → del-ICEHOC6W.js} +2 -2
- package/dist/{devtools-KQM4GF6J.js → devtools-6HZ2IPFU.js} +154 -252
- package/dist/{error-handler-SPIUKOES.js → error-handler-ND7WBMC3.js} +13 -13
- package/dist/hooks/postrun.js +12 -12
- package/dist/hooks/prerun.js +8 -8
- package/dist/index.js +4 -4
- package/dist/{lib-TQDGEQFC.js → lib-76RCE6WZ.js} +3 -3
- package/dist/{local-7KWUTHJN.js → local-3LWDOA7J.js} +5 -5
- package/dist/{magic-string.es-6WMSFIAX.js → magic-string.es-6DE547FE.js} +79 -18
- package/dist/{multipart-parser-O2BQODS2.js → multipart-parser-ENLY4BKU.js} +1 -1
- package/dist/{node-package-manager-MI2KGR6B.js → node-package-manager-TFY2ROCP.js} +6 -6
- package/dist/{out-JZ52TJE3.js → out-M5MRQZP5.js} +1 -1
- package/dist/prompts/init.js +6 -6
- package/dist/prompts/init.test.js +7 -7
- package/dist/services/init.d.ts +3 -0
- package/dist/services/init.js +13 -13
- package/dist/services/init.js.map +1 -1
- package/dist/services/init.test.js +1 -1
- package/dist/{system-KQGQETIF.js → system-FTT76GKS.js} +5 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-HO5KGT27.js → ui-MUGCNPLG.js} +5 -5
- package/dist/utils/template/cleanup.js +6 -6
- package/dist/utils/template/cleanup.test.js +7 -7
- package/dist/utils/template/npm.js +8 -8
- package/dist/utils/template/npm.test.js +9 -9
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YI3MHBSD.js";
|
|
4
4
|
import {
|
|
5
5
|
getDeepInstallNPMTasks,
|
|
6
6
|
updateCLIDependencies
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-H3UBEY47.js";
|
|
8
8
|
import {
|
|
9
9
|
username
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J3QAMMY2.js";
|
|
11
11
|
import {
|
|
12
12
|
UnknownPackageManagerError,
|
|
13
13
|
findUpAndReadPackageJson,
|
|
14
|
+
lockfiles,
|
|
14
15
|
writePackageJSON
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-H4N7DG5X.js";
|
|
16
17
|
import {
|
|
17
18
|
AbortError,
|
|
18
19
|
appendFile,
|
|
@@ -40,7 +41,7 @@ import {
|
|
|
40
41
|
renderTasks,
|
|
41
42
|
runWithTimer,
|
|
42
43
|
writeFile
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-XKDB3ST7.js";
|
|
44
45
|
import {
|
|
45
46
|
dirname,
|
|
46
47
|
joinPath,
|
|
@@ -48,7 +49,7 @@ import {
|
|
|
48
49
|
} from "./chunk-G6FN5VUE.js";
|
|
49
50
|
import {
|
|
50
51
|
require_src
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-R5KQZMEG.js";
|
|
52
53
|
import {
|
|
53
54
|
__commonJS,
|
|
54
55
|
__require,
|
|
@@ -7750,6 +7751,22 @@ ${workspacesContent}`);
|
|
|
7750
7751
|
}
|
|
7751
7752
|
}
|
|
7752
7753
|
);
|
|
7754
|
+
if (options.postCloneActions.removeLockfilesFromGitignore) {
|
|
7755
|
+
tasks.push({
|
|
7756
|
+
title: "Removing lockfiles from .gitignore",
|
|
7757
|
+
task: async () => {
|
|
7758
|
+
const gitignorePath = joinPath(templateScaffoldDir, ".gitignore");
|
|
7759
|
+
if (await fileExists(gitignorePath)) {
|
|
7760
|
+
let existingContent = await readFile(gitignorePath);
|
|
7761
|
+
lockfiles.forEach((lockfile) => {
|
|
7762
|
+
const lockfileRegex = new RegExp(`^${lockfile.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`, "gm");
|
|
7763
|
+
existingContent = existingContent.replace(lockfileRegex, "");
|
|
7764
|
+
});
|
|
7765
|
+
await writeFile(gitignorePath, existingContent.trim());
|
|
7766
|
+
}
|
|
7767
|
+
}
|
|
7768
|
+
});
|
|
7769
|
+
}
|
|
7753
7770
|
if (await isShopify()) {
|
|
7754
7771
|
tasks.push({
|
|
7755
7772
|
title: "[Shopifolks-only] Configuring the project's NPM registry",
|
|
@@ -4135,20 +4135,20 @@ var require_reusify = __commonJS({
|
|
|
4135
4135
|
}
|
|
4136
4136
|
});
|
|
4137
4137
|
|
|
4138
|
-
// ../../node_modules/.pnpm/fastq@1.
|
|
4138
|
+
// ../../node_modules/.pnpm/fastq@1.17.1/node_modules/fastq/queue.js
|
|
4139
4139
|
var require_queue = __commonJS({
|
|
4140
|
-
"../../node_modules/.pnpm/fastq@1.
|
|
4140
|
+
"../../node_modules/.pnpm/fastq@1.17.1/node_modules/fastq/queue.js"(exports, module) {
|
|
4141
4141
|
"use strict";
|
|
4142
4142
|
init_cjs_shims();
|
|
4143
4143
|
var reusify = require_reusify();
|
|
4144
|
-
function fastqueue(context, worker,
|
|
4144
|
+
function fastqueue(context, worker, _concurrency) {
|
|
4145
4145
|
if (typeof context === "function") {
|
|
4146
|
-
|
|
4146
|
+
_concurrency = worker;
|
|
4147
4147
|
worker = context;
|
|
4148
4148
|
context = null;
|
|
4149
4149
|
}
|
|
4150
|
-
if (
|
|
4151
|
-
throw new Error("fastqueue concurrency must be greater than 1");
|
|
4150
|
+
if (!(_concurrency >= 1)) {
|
|
4151
|
+
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4152
4152
|
}
|
|
4153
4153
|
var cache = reusify(Task);
|
|
4154
4154
|
var queueHead = null;
|
|
@@ -4161,7 +4161,21 @@ var require_queue = __commonJS({
|
|
|
4161
4161
|
saturated: noop,
|
|
4162
4162
|
pause,
|
|
4163
4163
|
paused: false,
|
|
4164
|
-
concurrency
|
|
4164
|
+
get concurrency() {
|
|
4165
|
+
return _concurrency;
|
|
4166
|
+
},
|
|
4167
|
+
set concurrency(value) {
|
|
4168
|
+
if (!(value >= 1)) {
|
|
4169
|
+
throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4170
|
+
}
|
|
4171
|
+
_concurrency = value;
|
|
4172
|
+
if (self.paused)
|
|
4173
|
+
return;
|
|
4174
|
+
for (; queueHead && _running < _concurrency; ) {
|
|
4175
|
+
_running++;
|
|
4176
|
+
release();
|
|
4177
|
+
}
|
|
4178
|
+
},
|
|
4165
4179
|
running,
|
|
4166
4180
|
resume,
|
|
4167
4181
|
idle,
|
|
@@ -4202,7 +4216,12 @@ var require_queue = __commonJS({
|
|
|
4202
4216
|
if (!self.paused)
|
|
4203
4217
|
return;
|
|
4204
4218
|
self.paused = false;
|
|
4205
|
-
|
|
4219
|
+
if (queueHead === null) {
|
|
4220
|
+
_running++;
|
|
4221
|
+
release();
|
|
4222
|
+
return;
|
|
4223
|
+
}
|
|
4224
|
+
for (; queueHead && _running < _concurrency; ) {
|
|
4206
4225
|
_running++;
|
|
4207
4226
|
release();
|
|
4208
4227
|
}
|
|
@@ -4217,7 +4236,7 @@ var require_queue = __commonJS({
|
|
|
4217
4236
|
current.value = value;
|
|
4218
4237
|
current.callback = done || noop;
|
|
4219
4238
|
current.errorHandler = errorHandler;
|
|
4220
|
-
if (_running
|
|
4239
|
+
if (_running >= _concurrency || self.paused) {
|
|
4221
4240
|
if (queueTail) {
|
|
4222
4241
|
queueTail.next = current;
|
|
4223
4242
|
queueTail = current;
|
|
@@ -4237,7 +4256,8 @@ var require_queue = __commonJS({
|
|
|
4237
4256
|
current.release = release;
|
|
4238
4257
|
current.value = value;
|
|
4239
4258
|
current.callback = done || noop;
|
|
4240
|
-
|
|
4259
|
+
current.errorHandler = errorHandler;
|
|
4260
|
+
if (_running >= _concurrency || self.paused) {
|
|
4241
4261
|
if (queueHead) {
|
|
4242
4262
|
current.next = queueHead;
|
|
4243
4263
|
queueHead = current;
|
|
@@ -4256,7 +4276,7 @@ var require_queue = __commonJS({
|
|
|
4256
4276
|
cache.release(holder);
|
|
4257
4277
|
}
|
|
4258
4278
|
var next = queueHead;
|
|
4259
|
-
if (next) {
|
|
4279
|
+
if (next && _running <= _concurrency) {
|
|
4260
4280
|
if (!self.paused) {
|
|
4261
4281
|
if (queueTail === queueHead) {
|
|
4262
4282
|
queueTail = null;
|
|
@@ -4312,9 +4332,9 @@ var require_queue = __commonJS({
|
|
|
4312
4332
|
self.release(self);
|
|
4313
4333
|
};
|
|
4314
4334
|
}
|
|
4315
|
-
function queueAsPromised(context, worker,
|
|
4335
|
+
function queueAsPromised(context, worker, _concurrency) {
|
|
4316
4336
|
if (typeof context === "function") {
|
|
4317
|
-
|
|
4337
|
+
_concurrency = worker;
|
|
4318
4338
|
worker = context;
|
|
4319
4339
|
context = null;
|
|
4320
4340
|
}
|
|
@@ -4323,7 +4343,7 @@ var require_queue = __commonJS({
|
|
|
4323
4343
|
cb(null, res);
|
|
4324
4344
|
}, cb);
|
|
4325
4345
|
}
|
|
4326
|
-
var queue = fastqueue(context, asyncWrapper,
|
|
4346
|
+
var queue = fastqueue(context, asyncWrapper, _concurrency);
|
|
4327
4347
|
var pushCb = queue.push;
|
|
4328
4348
|
var unshiftCb = queue.unshift;
|
|
4329
4349
|
queue.push = push;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandler,
|
|
3
3
|
registerCleanBugsnagErrorsFromWithinPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GQNJWQKC.js";
|
|
5
5
|
import {
|
|
6
6
|
init_default as init_default2
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I3IYXB26.js";
|
|
8
8
|
import {
|
|
9
9
|
hashString
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LR725A3N.js";
|
|
11
11
|
import {
|
|
12
12
|
packageManager,
|
|
13
13
|
packageManagerFromUserAgent
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H4N7DG5X.js";
|
|
15
15
|
import {
|
|
16
16
|
globalFlags
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7F4FS2WD.js";
|
|
18
18
|
import {
|
|
19
19
|
init_default,
|
|
20
20
|
isPredefinedTemplate,
|
|
21
21
|
templates,
|
|
22
22
|
visibleTemplates
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PKFDUXG6.js";
|
|
24
24
|
import {
|
|
25
25
|
AbortError,
|
|
26
26
|
addPublicMetadata,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
renderWarning,
|
|
38
38
|
terminalSupportsRawMode,
|
|
39
39
|
underscore
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XKDB3ST7.js";
|
|
41
41
|
import {
|
|
42
42
|
cwd,
|
|
43
43
|
resolvePath
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-UVY6LL5H.js";
|
|
48
48
|
import {
|
|
49
49
|
require_lib
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-R5KQZMEG.js";
|
|
51
51
|
import {
|
|
52
52
|
__commonJS,
|
|
53
53
|
__require,
|
|
@@ -2393,7 +2393,10 @@ var Init = class _Init extends base_command_default {
|
|
|
2393
2393
|
template: promptAnswers.template,
|
|
2394
2394
|
local: flags.local,
|
|
2395
2395
|
directory: flags.path,
|
|
2396
|
-
useGlobalCLI: promptAnswers.globalCLIResult.alreadyInstalled || promptAnswers.globalCLIResult.install
|
|
2396
|
+
useGlobalCLI: promptAnswers.globalCLIResult.alreadyInstalled || promptAnswers.globalCLIResult.install,
|
|
2397
|
+
postCloneActions: {
|
|
2398
|
+
removeLockfilesFromGitignore: promptAnswers.templateType !== "custom"
|
|
2399
|
+
}
|
|
2397
2400
|
});
|
|
2398
2401
|
}
|
|
2399
2402
|
validateTemplateValue(template) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
platformAndArch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J3QAMMY2.js";
|
|
4
4
|
import {
|
|
5
5
|
getPackageManager,
|
|
6
6
|
packageManagerFromUserAgent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-H4N7DG5X.js";
|
|
8
8
|
import {
|
|
9
9
|
addPublicMetadata,
|
|
10
10
|
addSensitiveMetadata,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
cloudEnvironment,
|
|
13
13
|
currentProcessIsGlobal,
|
|
14
14
|
macAddress
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XKDB3ST7.js";
|
|
16
16
|
import {
|
|
17
17
|
cwd
|
|
18
18
|
} from "./chunk-G6FN5VUE.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_merge2,
|
|
3
3
|
require_out
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K5EEGEVV.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__require,
|
|
@@ -142,9 +142,9 @@ var require_dir_glob = __commonJS({
|
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
|
|
145
|
-
// ../../node_modules/.pnpm/ignore@5.
|
|
145
|
+
// ../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js
|
|
146
146
|
var require_ignore = __commonJS({
|
|
147
|
-
"../../node_modules/.pnpm/ignore@5.
|
|
147
|
+
"../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(exports, module) {
|
|
148
148
|
init_cjs_shims();
|
|
149
149
|
function makeArray(subject) {
|
|
150
150
|
return Array.isArray(subject) ? subject : [subject];
|
|
@@ -176,6 +176,13 @@ var require_ignore = __commonJS({
|
|
|
176
176
|
return slashes.slice(0, length - length % 2);
|
|
177
177
|
};
|
|
178
178
|
var REPLACERS = [
|
|
179
|
+
[
|
|
180
|
+
// remove BOM
|
|
181
|
+
// TODO:
|
|
182
|
+
// Other similar zero-width characters?
|
|
183
|
+
/^\uFEFF/,
|
|
184
|
+
() => EMPTY
|
|
185
|
+
],
|
|
179
186
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
180
187
|
[
|
|
181
188
|
// (a\ ) -> (a )
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X2I3FAVD.js";
|
|
4
4
|
import {
|
|
5
5
|
CLI_KIT_VERSION
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5NBS5LAW.js";
|
|
7
7
|
import {
|
|
8
8
|
getEnvironmentData,
|
|
9
9
|
getSensitiveEnvironmentData
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LR725A3N.js";
|
|
11
11
|
import {
|
|
12
12
|
require_semver
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-H4N7DG5X.js";
|
|
14
14
|
import {
|
|
15
15
|
alwaysLogAnalytics,
|
|
16
16
|
alwaysLogMetrics,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
outputContent,
|
|
26
26
|
outputDebug,
|
|
27
27
|
outputToken
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XKDB3ST7.js";
|
|
29
29
|
import {
|
|
30
30
|
joinPath
|
|
31
31
|
} from "./chunk-G6FN5VUE.js";
|
|
@@ -72,6 +72,9 @@ var cacheFolder = () => {
|
|
|
72
72
|
return process.env.XDG_CACHE_HOME;
|
|
73
73
|
return envPaths(identifier).cache;
|
|
74
74
|
};
|
|
75
|
+
var logsFolder = () => {
|
|
76
|
+
return envPaths(identifier).log;
|
|
77
|
+
};
|
|
75
78
|
var environmentVariables = {
|
|
76
79
|
alwaysLogAnalytics: "SHOPIFY_CLI_ALWAYS_LOG_ANALYTICS",
|
|
77
80
|
alwaysLogMetrics: "SHOPIFY_CLI_ALWAYS_LOG_METRICS",
|
|
@@ -135,6 +138,7 @@ var sessionConstants = {
|
|
|
135
138
|
var bugsnagApiKey = "9e1e6889176fd0c795d5c659225e0fae";
|
|
136
139
|
|
|
137
140
|
export {
|
|
141
|
+
logsFolder,
|
|
138
142
|
environmentVariables,
|
|
139
143
|
defaultThemeKitAccessDomain,
|
|
140
144
|
systemEnvironmentVariables,
|