@shopify/create-app 3.71.2 → 3.71.4
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-KSBII622.js → chunk-7KSICWEJ.js} +5 -5
- package/dist/{chunk-O4A77JLS.js → chunk-AO4KDLMV.js} +2 -2
- package/dist/{chunk-33OL5XJC.js → chunk-EHMCI3ZQ.js} +3 -3
- package/dist/{chunk-24YX2EU2.js → chunk-QDHJLRQP.js} +4 -4
- package/dist/{chunk-G7QR7EFO.js → chunk-V6QR4YF3.js} +4 -4
- package/dist/{chunk-E3ZCUEYA.js → chunk-ZKG4HP53.js} +4 -4
- package/dist/{custom-oclif-loader-Y3FRXJ2I.js → custom-oclif-loader-IEDAORQX.js} +2 -2
- package/dist/{error-handler-BL4CGHD6.js → error-handler-Q746XAGH.js} +6 -6
- package/dist/hooks/postrun.js +4 -4
- package/dist/hooks/prerun.js +4 -4
- package/dist/index.js +58 -58
- package/dist/{local-W43XRROK.js → local-NMUF62ON.js} +2 -2
- package/dist/{node-package-manager-YSAX4E22.js → node-package-manager-E6UQACT4.js} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-CUIFJAEJ.js → ui-MMDEJUP7.js} +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fanoutHooks,
|
|
3
3
|
reportAnalyticsEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QDHJLRQP.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_KIT_VERSION,
|
|
7
7
|
getEnvironmentData
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V6QR4YF3.js";
|
|
9
9
|
import {
|
|
10
10
|
runWithRateLimit
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AO4KDLMV.js";
|
|
12
12
|
import {
|
|
13
13
|
AbortSilentError,
|
|
14
14
|
CancelExecution,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
reportingRateLimit,
|
|
24
24
|
require_stacktracey,
|
|
25
25
|
shouldReportErrorAsUnexpected
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZKG4HP53.js";
|
|
27
27
|
import {
|
|
28
28
|
require_lib
|
|
29
29
|
} from "./chunk-CQGOPQQH.js";
|
|
@@ -2140,4 +2140,4 @@ export {
|
|
|
2140
2140
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
2141
2141
|
addBugsnagMetadata
|
|
2142
2142
|
};
|
|
2143
|
-
//# sourceMappingURL=chunk-
|
|
2143
|
+
//# sourceMappingURL=chunk-7KSICWEJ.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
require_get_stream,
|
|
19
19
|
runWithTimer,
|
|
20
20
|
writeFile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZKG4HP53.js";
|
|
22
22
|
import {
|
|
23
23
|
dirname,
|
|
24
24
|
joinPath
|
|
@@ -15390,4 +15390,4 @@ deep-extend/lib/deep-extend.js:
|
|
|
15390
15390
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
15391
15391
|
*)
|
|
15392
15392
|
*/
|
|
15393
|
-
//# sourceMappingURL=chunk-
|
|
15393
|
+
//# sourceMappingURL=chunk-AO4KDLMV.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packageManagerFromUserAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AO4KDLMV.js";
|
|
4
4
|
import {
|
|
5
5
|
currentProcessIsGlobal,
|
|
6
6
|
inferPackageManagerForGlobalCLI,
|
|
7
7
|
outputContent,
|
|
8
8
|
outputToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZKG4HP53.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-POZ5MGPT.js";
|
|
@@ -24,4 +24,4 @@ function getOutputUpdateCLIReminder(version) {
|
|
|
24
24
|
export {
|
|
25
25
|
getOutputUpdateCLIReminder
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
27
|
+
//# sourceMappingURL=chunk-EHMCI3ZQ.js.map
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
getEnvironmentData,
|
|
5
5
|
getLastSeenUserIdAfterAuth,
|
|
6
6
|
getSensitiveEnvironmentData
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V6QR4YF3.js";
|
|
8
8
|
import {
|
|
9
9
|
runWithRateLimit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AO4KDLMV.js";
|
|
11
11
|
import {
|
|
12
12
|
alwaysLogAnalytics,
|
|
13
13
|
alwaysLogMetrics,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
outputDebug,
|
|
25
25
|
outputToken,
|
|
26
26
|
reportingRateLimit
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZKG4HP53.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__require,
|
|
@@ -15766,4 +15766,4 @@ export {
|
|
|
15766
15766
|
getListOfTunnelPlugins,
|
|
15767
15767
|
reportAnalyticsEvent
|
|
15768
15768
|
};
|
|
15769
|
-
//# sourceMappingURL=chunk-
|
|
15769
|
+
//# sourceMappingURL=chunk-QDHJLRQP.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
removeSession,
|
|
13
13
|
setCachedPartnerAccountStatus,
|
|
14
14
|
setSession
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AO4KDLMV.js";
|
|
16
16
|
import {
|
|
17
17
|
AbortError,
|
|
18
18
|
BugError,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
systemEnvironmentVariables,
|
|
50
50
|
themeKitAccessDomain,
|
|
51
51
|
themeToken
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-ZKG4HP53.js";
|
|
53
53
|
import {
|
|
54
54
|
cwd,
|
|
55
55
|
sniffForJson
|
|
@@ -29342,7 +29342,7 @@ var require_lib3 = __commonJS({
|
|
|
29342
29342
|
|
|
29343
29343
|
// ../cli-kit/dist/public/common/version.js
|
|
29344
29344
|
init_cjs_shims();
|
|
29345
|
-
var CLI_KIT_VERSION = "3.71.
|
|
29345
|
+
var CLI_KIT_VERSION = "3.71.4";
|
|
29346
29346
|
|
|
29347
29347
|
// ../cli-kit/dist/private/node/analytics.js
|
|
29348
29348
|
init_cjs_shims();
|
|
@@ -34858,4 +34858,4 @@ mime-types/index.js:
|
|
|
34858
34858
|
* MIT Licensed
|
|
34859
34859
|
*)
|
|
34860
34860
|
*/
|
|
34861
|
-
//# sourceMappingURL=chunk-
|
|
34861
|
+
//# sourceMappingURL=chunk-V6QR4YF3.js.map
|
|
@@ -22989,7 +22989,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
22989
22989
|
try {
|
|
22990
22990
|
await getAndSet();
|
|
22991
22991
|
} catch (error) {
|
|
22992
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
22992
|
+
let { sendErrorToBugsnag } = await import("./error-handler-Q746XAGH.js");
|
|
22993
22993
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
22994
22994
|
}
|
|
22995
22995
|
}, durationStack = [];
|
|
@@ -27672,7 +27672,7 @@ function difference(array, ...values) {
|
|
|
27672
27672
|
}
|
|
27673
27673
|
|
|
27674
27674
|
// ../cli-kit/dist/public/common/string.js
|
|
27675
|
-
var import_change_case = __toESM(require_dist16()), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
|
|
27675
|
+
var import_change_case = __toESM(require_dist16(), 1), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
|
|
27676
27676
|
"commercial",
|
|
27677
27677
|
"profitable",
|
|
27678
27678
|
"amortizable",
|
|
@@ -28626,7 +28626,7 @@ init_cjs_shims();
|
|
|
28626
28626
|
|
|
28627
28627
|
// ../cli-kit/dist/public/common/function.js
|
|
28628
28628
|
init_cjs_shims();
|
|
28629
|
-
var import_memoize = __toESM(require_memoize()), import_debounce = __toESM(require_debounce());
|
|
28629
|
+
var import_memoize = __toESM(require_memoize(), 1), import_debounce = __toESM(require_debounce(), 1);
|
|
28630
28630
|
function debounce(func, wait, options) {
|
|
28631
28631
|
return (0, import_debounce.default)(func, wait, options);
|
|
28632
28632
|
}
|
|
@@ -32078,4 +32078,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
32078
32078
|
* LICENSE file in the root directory of this source tree.
|
|
32079
32079
|
*)
|
|
32080
32080
|
*/
|
|
32081
|
-
//# sourceMappingURL=chunk-
|
|
32081
|
+
//# sourceMappingURL=chunk-ZKG4HP53.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
execaSync,
|
|
3
3
|
fileExistsSync
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZKG4HP53.js";
|
|
5
5
|
import {
|
|
6
6
|
require_lib
|
|
7
7
|
} from "./chunk-CQGOPQQH.js";
|
|
@@ -43,4 +43,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
|
|
|
43
43
|
export {
|
|
44
44
|
ShopifyConfig
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=custom-oclif-loader-
|
|
46
|
+
//# sourceMappingURL=custom-oclif-loader-IEDAORQX.js.map
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorHandler,
|
|
5
5
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
6
6
|
sendErrorToBugsnag
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-7KSICWEJ.js";
|
|
8
|
+
import "./chunk-QDHJLRQP.js";
|
|
9
|
+
import "./chunk-V6QR4YF3.js";
|
|
10
10
|
import "./chunk-VSLR7ET4.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-AO4KDLMV.js";
|
|
12
|
+
import "./chunk-ZKG4HP53.js";
|
|
13
13
|
import "./chunk-CQGOPQQH.js";
|
|
14
14
|
import "./chunk-SNOECVP4.js";
|
|
15
15
|
import "./chunk-522OB3EU.js";
|
|
@@ -28,4 +28,4 @@ export {
|
|
|
28
28
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
29
29
|
sendErrorToBugsnag
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=error-handler-
|
|
31
|
+
//# sourceMappingURL=error-handler-Q746XAGH.js.map
|
package/dist/hooks/postrun.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reportAnalyticsEvent
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QDHJLRQP.js";
|
|
4
4
|
import {
|
|
5
5
|
getNextDeprecationDate
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-V6QR4YF3.js";
|
|
7
7
|
import "../chunk-VSLR7ET4.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-AO4KDLMV.js";
|
|
9
9
|
import {
|
|
10
10
|
addSensitiveMetadata,
|
|
11
11
|
getAllSensitiveMetadata,
|
|
12
12
|
outputDebug,
|
|
13
13
|
renderWarning
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-ZKG4HP53.js";
|
|
15
15
|
import "../chunk-CQGOPQQH.js";
|
|
16
16
|
import "../chunk-SNOECVP4.js";
|
|
17
17
|
import "../chunk-522OB3EU.js";
|
package/dist/hooks/prerun.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getOutputUpdateCLIReminder
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-EHMCI3ZQ.js";
|
|
4
4
|
import {
|
|
5
5
|
CLI_KIT_VERSION,
|
|
6
6
|
startAnalytics
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-V6QR4YF3.js";
|
|
8
8
|
import "../chunk-VSLR7ET4.js";
|
|
9
9
|
import {
|
|
10
10
|
checkForCachedNewVersion,
|
|
11
11
|
checkForNewVersion,
|
|
12
12
|
runAtMinimumInterval
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-AO4KDLMV.js";
|
|
14
14
|
import {
|
|
15
15
|
outputDebug,
|
|
16
16
|
outputWarn
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-ZKG4HP53.js";
|
|
18
18
|
import "../chunk-CQGOPQQH.js";
|
|
19
19
|
import "../chunk-SNOECVP4.js";
|
|
20
20
|
import "../chunk-522OB3EU.js";
|
package/dist/index.js
CHANGED
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
errorHandler,
|
|
9
9
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
10
10
|
require_end_of_stream
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7KSICWEJ.js";
|
|
12
12
|
import {
|
|
13
13
|
fanoutHooks,
|
|
14
14
|
getListOfTunnelPlugins,
|
|
15
15
|
reportAnalyticsEvent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QDHJLRQP.js";
|
|
17
17
|
import {
|
|
18
18
|
getOutputUpdateCLIReminder
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-EHMCI3ZQ.js";
|
|
20
20
|
import {
|
|
21
21
|
CLI_KIT_VERSION,
|
|
22
22
|
ClientError,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
setNextDeprecationDate,
|
|
62
62
|
username,
|
|
63
63
|
z
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-V6QR4YF3.js";
|
|
65
65
|
import "./chunk-VSLR7ET4.js";
|
|
66
66
|
import {
|
|
67
67
|
LocalStorage,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
usesWorkspaces,
|
|
87
87
|
versionSatisfies,
|
|
88
88
|
writePackageJSON
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-AO4KDLMV.js";
|
|
90
90
|
import {
|
|
91
91
|
AbortController as AbortController2,
|
|
92
92
|
AbortError,
|
|
@@ -260,7 +260,7 @@ import {
|
|
|
260
260
|
use_stdin_default,
|
|
261
261
|
writeFile,
|
|
262
262
|
writeFileSync
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-ZKG4HP53.js";
|
|
264
264
|
import {
|
|
265
265
|
require_brace_expansion,
|
|
266
266
|
require_lib
|
|
@@ -142813,7 +142813,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
|
|
|
142813
142813
|
throw new AbortSilentError();
|
|
142814
142814
|
let errorMessage2 = `Error retrieving notifications: ${error.message}`;
|
|
142815
142815
|
outputDebug(errorMessage2);
|
|
142816
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
142816
|
+
let { sendErrorToBugsnag } = await import("./error-handler-Q746XAGH.js");
|
|
142817
142817
|
await sendErrorToBugsnag(errorMessage2, "unexpected_error");
|
|
142818
142818
|
}
|
|
142819
142819
|
}
|
|
@@ -143156,7 +143156,7 @@ var MAX_EXTENSION_HANDLE_LENGTH = 50, MetafieldSchema = z.object({
|
|
|
143156
143156
|
// ../app/dist/cli/utilities/extensions/locales-configuration.js
|
|
143157
143157
|
init_cjs_shims();
|
|
143158
143158
|
import fs from "fs";
|
|
143159
|
-
var L10N_FILE_SIZE_LIMIT =
|
|
143159
|
+
var L10N_FILE_SIZE_LIMIT = 20 * 1024, L10N_BUNDLE_SIZE_LIMIT = 256 * 1024;
|
|
143160
143160
|
async function loadLocalesConfig(extensionPath, extensionIdentifier) {
|
|
143161
143161
|
let localesPaths = await glob(joinPath(extensionPath, "locales/*.json"));
|
|
143162
143162
|
if (localesPaths.length === 0)
|
|
@@ -151836,11 +151836,27 @@ var import_core4 = __toESM(require_lib(), 1);
|
|
|
151836
151836
|
|
|
151837
151837
|
// ../cli-kit/dist/public/node/cli.js
|
|
151838
151838
|
init_cjs_shims();
|
|
151839
|
+
|
|
151840
|
+
// ../cli-kit/dist/public/node/cli-launcher.js
|
|
151841
|
+
init_cjs_shims();
|
|
151842
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
151843
|
+
async function launchCLI(options) {
|
|
151844
|
+
let { errorHandler: errorHandler2 } = await import("./error-handler-Q746XAGH.js"), { isDevelopment: isDevelopment2 } = await import("./local-NMUF62ON.js"), oclif = await import("./lib-EGJUAXU5.js"), { ShopifyConfig } = await import("./custom-oclif-loader-IEDAORQX.js");
|
|
151845
|
+
isDevelopment2() && (oclif.default.settings.debug = !0);
|
|
151846
|
+
try {
|
|
151847
|
+
let config2 = new ShopifyConfig({ root: fileURLToPath2(options.moduleURL) });
|
|
151848
|
+
await config2.load(), await oclif.default.run(options.argv, config2), await oclif.default.flush();
|
|
151849
|
+
} catch (error) {
|
|
151850
|
+
return await errorHandler2(error), oclif.default.Errors.handle(error);
|
|
151851
|
+
}
|
|
151852
|
+
}
|
|
151853
|
+
|
|
151854
|
+
// ../cli-kit/dist/public/node/cli.js
|
|
151839
151855
|
var import_core3 = __toESM(require_lib());
|
|
151840
151856
|
async function warnIfOldNodeVersion(versions2 = process.versions) {
|
|
151841
151857
|
let nodeVersion = versions2.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
151842
151858
|
if (nodeMajorVersion < 18) {
|
|
151843
|
-
let { renderWarning: renderWarning2 } = await import("./ui-
|
|
151859
|
+
let { renderWarning: renderWarning2 } = await import("./ui-MMDEJUP7.js");
|
|
151844
151860
|
renderWarning2({
|
|
151845
151861
|
headline: "Upgrade to a supported Node version now.",
|
|
151846
151862
|
body: [
|
|
@@ -151863,17 +151879,17 @@ function setupEnvironmentVariables(options, argv = process.argv, env = process.e
|
|
|
151863
151879
|
function forceNoColor(argv = process.argv, env = process.env) {
|
|
151864
151880
|
(argv.includes("--no-color") || isTruthy(env.NO_COLOR) || isTruthy(env.SHOPIFY_FLAG_NO_COLOR) || env.TERM === "dumb") && (env.FORCE_COLOR = "0");
|
|
151865
151881
|
}
|
|
151866
|
-
async function runCLI(options, launchCLI2, argv = process.argv, env = process.env, versions2 = process.versions) {
|
|
151882
|
+
async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env = process.env, versions2 = process.versions) {
|
|
151867
151883
|
return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await warnIfOldNodeVersion(versions2), launchCLI2({ moduleURL: options.moduleURL });
|
|
151868
151884
|
}
|
|
151869
151885
|
async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
|
|
151870
|
-
let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-
|
|
151886
|
+
let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-E6UQACT4.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-3RNJ32DF.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options.moduleURL))).content.name.replace("@shopify/create-", "");
|
|
151871
151887
|
if (argv.findIndex((arg) => arg.includes("init")) === -1) {
|
|
151872
151888
|
let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
|
|
151873
151889
|
argv.splice(initIndex2, 0, "init");
|
|
151874
151890
|
}
|
|
151875
151891
|
}
|
|
151876
|
-
async function runCreateCLI(options, launchCLI2, argv = process.argv, env = process.env, versions2 = process.versions) {
|
|
151892
|
+
async function runCreateCLI(options, launchCLI2 = launchCLI, argv = process.argv, env = process.env, versions2 = process.versions) {
|
|
151877
151893
|
return runCLI({ ...options, runInCreateMode: !0 }, launchCLI2, argv, env, versions2);
|
|
151878
151894
|
}
|
|
151879
151895
|
var globalFlags = {
|
|
@@ -153920,24 +153936,18 @@ async function bulkUploadThemeAssets(id, assets, session) {
|
|
|
153920
153936
|
return results;
|
|
153921
153937
|
}
|
|
153922
153938
|
function prepareFilesForUpload(assets) {
|
|
153923
|
-
return assets.map((asset) => {
|
|
153924
|
-
|
|
153925
|
-
|
|
153926
|
-
|
|
153927
|
-
|
|
153928
|
-
|
|
153929
|
-
|
|
153930
|
-
|
|
153931
|
-
|
|
153932
|
-
|
|
153933
|
-
|
|
153934
|
-
|
|
153935
|
-
body: {
|
|
153936
|
-
type: "BASE64",
|
|
153937
|
-
value: asset.attachment
|
|
153938
|
-
}
|
|
153939
|
-
};
|
|
153940
|
-
unexpectedGraphQLError("Asset must have a value or attachment");
|
|
153939
|
+
return assets.map((asset) => asset.attachment ? {
|
|
153940
|
+
filename: asset.key,
|
|
153941
|
+
body: {
|
|
153942
|
+
type: "BASE64",
|
|
153943
|
+
value: asset.attachment
|
|
153944
|
+
}
|
|
153945
|
+
} : {
|
|
153946
|
+
filename: asset.key,
|
|
153947
|
+
body: {
|
|
153948
|
+
type: "TEXT",
|
|
153949
|
+
value: asset.value ?? ""
|
|
153950
|
+
}
|
|
153941
153951
|
});
|
|
153942
153952
|
}
|
|
153943
153953
|
async function uploadFiles(themeId, files, session) {
|
|
@@ -163648,13 +163658,13 @@ async function updateExtensionDraft({ extension, developerPlatformClient, apiKey
|
|
|
163648
163658
|
encodedFile = Buffer.from(content).toString("base64");
|
|
163649
163659
|
}
|
|
163650
163660
|
let config2;
|
|
163651
|
-
extension.isThemeExtension ? config2 = await themeExtensionConfig(extension) : config2 = await extension.deployConfig({ apiKey, appConfiguration })
|
|
163661
|
+
extension.isThemeExtension ? config2 = await themeExtensionConfig(extension) : config2 = await extension.deployConfig({ apiKey, appConfiguration }) ?? {};
|
|
163652
163662
|
let draftableConfig = {
|
|
163653
163663
|
...config2,
|
|
163654
163664
|
serialized_script: encodedFile
|
|
163655
163665
|
};
|
|
163656
163666
|
if (extension.isFunctionExtension) {
|
|
163657
|
-
let compiledFiles = await readFile(outputPath, { encoding: "base64" });
|
|
163667
|
+
let compiledFiles = await readFile(extension.outputPath, { encoding: "base64" });
|
|
163658
163668
|
draftableConfig.uploaded_files = { "dist/index.wasm": compiledFiles };
|
|
163659
163669
|
}
|
|
163660
163670
|
let extensionInput = {
|
|
@@ -168249,22 +168259,29 @@ var contextToTarget = (context) => {
|
|
|
168249
168259
|
let splitContext = context.split("#");
|
|
168250
168260
|
if (splitContext.length !== 2 || splitContext.some((part) => part === "" || part === void 0))
|
|
168251
168261
|
throw new Error("Invalid context");
|
|
168252
|
-
let domain = "admin", subDomain = typeToSubDomain(splitContext[0]
|
|
168253
|
-
return [domain, subDomain
|
|
168262
|
+
let domain = "admin", subDomain = typeToSubDomain(splitContext[0] ?? ""), entity = locationToEntity(splitContext[1] ?? ""), action = "link";
|
|
168263
|
+
return entity === "selection" ? [domain, `${subDomain}-index`, `${entity}-action`, action].join(".") : [domain, `${subDomain}-${entity}`, "action", action].join(".");
|
|
168254
168264
|
}, locationToEntity = (location2) => {
|
|
168255
168265
|
switch (location2.toLocaleLowerCase()) {
|
|
168256
168266
|
case "show":
|
|
168257
|
-
return "
|
|
168267
|
+
return "details";
|
|
168258
168268
|
case "index":
|
|
168259
168269
|
return "index";
|
|
168260
168270
|
case "action":
|
|
168261
168271
|
return "selection";
|
|
168262
168272
|
case "fulfilled_card":
|
|
168263
|
-
return "
|
|
168273
|
+
return "fulfilled-card";
|
|
168264
168274
|
default:
|
|
168265
168275
|
throw new Error(`Invalid context location: ${location2}`);
|
|
168266
168276
|
}
|
|
168267
|
-
}, typeToSubDomain = (
|
|
168277
|
+
}, typeToSubDomain = (type) => {
|
|
168278
|
+
switch (type.toLocaleLowerCase()) {
|
|
168279
|
+
case "variants":
|
|
168280
|
+
return "product-variant";
|
|
168281
|
+
default:
|
|
168282
|
+
return type.toLocaleLowerCase().replace(new RegExp("(s)$"), "");
|
|
168283
|
+
}
|
|
168284
|
+
};
|
|
168268
168285
|
|
|
168269
168286
|
// ../app/dist/cli/services/admin-link/extension-to-toml.js
|
|
168270
168287
|
function buildTomlObject3(extension, _2, appConfiguration) {
|
|
@@ -169620,29 +169637,12 @@ var commands = {
|
|
|
169620
169637
|
"demo:watcher": watcher_default
|
|
169621
169638
|
};
|
|
169622
169639
|
|
|
169623
|
-
// ../cli-kit/dist/public/node/cli-launcher.js
|
|
169624
|
-
init_cjs_shims();
|
|
169625
|
-
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
169626
|
-
async function launchCLI(options) {
|
|
169627
|
-
let { errorHandler: errorHandler2 } = await import("./error-handler-BL4CGHD6.js"), { isDevelopment: isDevelopment2 } = await import("./local-W43XRROK.js"), oclif = await import("./lib-EGJUAXU5.js"), { ShopifyConfig } = await import("./custom-oclif-loader-Y3FRXJ2I.js");
|
|
169628
|
-
isDevelopment2() && (oclif.default.settings.debug = !0);
|
|
169629
|
-
try {
|
|
169630
|
-
let config2 = new ShopifyConfig({ root: fileURLToPath2(options.moduleURL) });
|
|
169631
|
-
await config2.load(), await oclif.default.run(options.argv, config2), await oclif.default.flush();
|
|
169632
|
-
} catch (error) {
|
|
169633
|
-
return await errorHandler2(error), oclif.default.Errors.handle(error);
|
|
169634
|
-
}
|
|
169635
|
-
}
|
|
169636
|
-
|
|
169637
169640
|
// src/index.ts
|
|
169638
169641
|
async function runCreateAppCLI(development) {
|
|
169639
|
-
await runCreateCLI(
|
|
169640
|
-
|
|
169641
|
-
|
|
169642
|
-
|
|
169643
|
-
},
|
|
169644
|
-
launchCLI
|
|
169645
|
-
);
|
|
169642
|
+
await runCreateCLI({
|
|
169643
|
+
moduleURL: import.meta.url,
|
|
169644
|
+
development
|
|
169645
|
+
});
|
|
169646
169646
|
}
|
|
169647
169647
|
var COMMANDS = {
|
|
169648
169648
|
init: commands["app:init"]
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
themeToken,
|
|
23
23
|
useEmbeddedThemeCLI,
|
|
24
24
|
useThemebundling
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ZKG4HP53.js";
|
|
26
26
|
import "./chunk-CQGOPQQH.js";
|
|
27
27
|
import "./chunk-SNOECVP4.js";
|
|
28
28
|
import "./chunk-522OB3EU.js";
|
|
@@ -58,4 +58,4 @@ export {
|
|
|
58
58
|
useEmbeddedThemeCLI,
|
|
59
59
|
useThemebundling
|
|
60
60
|
};
|
|
61
|
-
//# sourceMappingURL=local-
|
|
61
|
+
//# sourceMappingURL=local-NMUF62ON.js.map
|
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
versionSatisfies,
|
|
29
29
|
writePackageJSON,
|
|
30
30
|
yarnLockfile
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-AO4KDLMV.js";
|
|
32
|
+
import "./chunk-ZKG4HP53.js";
|
|
33
33
|
import "./chunk-CQGOPQQH.js";
|
|
34
34
|
import "./chunk-SNOECVP4.js";
|
|
35
35
|
import "./chunk-522OB3EU.js";
|
|
@@ -71,4 +71,4 @@ export {
|
|
|
71
71
|
writePackageJSON,
|
|
72
72
|
yarnLockfile
|
|
73
73
|
};
|
|
74
|
-
//# sourceMappingURL=node-package-manager-
|
|
74
|
+
//# sourceMappingURL=node-package-manager-E6UQACT4.js.map
|