@shopify/create-app 3.81.0 → 3.81.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.
- package/dist/{chunk-PTSAUW2T.js → chunk-4S4CSWD6.js} +5 -5
- package/dist/{chunk-24FFN3UF.js → chunk-4WMN57JE.js} +4 -4
- package/dist/{chunk-YTTZ5B56.js → chunk-6EPG6YJ6.js} +4 -4
- package/dist/{chunk-7O563I7I.js → chunk-C4ABWPZH.js} +2 -2
- package/dist/{chunk-QU7DXDZR.js → chunk-TT3RANTU.js} +5 -5
- package/dist/{chunk-NQJJHSZI.js → chunk-UQP4ZLNS.js} +5 -5
- package/dist/{custom-oclif-loader-ZSOO2BP2.js → custom-oclif-loader-NCDQWHDP.js} +2 -2
- package/dist/{error-handler-6K7FR77V.js → error-handler-DQ6X5YKA.js} +6 -6
- package/dist/hooks/postrun.js +4 -4
- package/dist/hooks/prerun.js +4 -4
- package/dist/index.js +39 -20
- package/dist/{local-BYAIQCJB.js → local-EXTM5UPB.js} +2 -2
- package/dist/{node-package-manager-ZN2SJLTP.js → node-package-manager-4LLKYFW5.js} +3 -3
- package/dist/{ui-RJQBCWRN.js → ui-6L3VQT6P.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-4WMN57JE.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_KIT_VERSION,
|
|
7
7
|
getEnvironmentData
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6EPG6YJ6.js";
|
|
9
9
|
import {
|
|
10
10
|
runWithRateLimit
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-C4ABWPZH.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-TT3RANTU.js";
|
|
27
27
|
import {
|
|
28
28
|
require_lib
|
|
29
29
|
} from "./chunk-2YVW3FGK.js";
|
|
@@ -2142,4 +2142,4 @@ export {
|
|
|
2142
2142
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
2143
2143
|
addBugsnagMetadata
|
|
2144
2144
|
};
|
|
2145
|
-
//# sourceMappingURL=chunk-
|
|
2145
|
+
//# sourceMappingURL=chunk-4S4CSWD6.js.map
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
getEnvironmentData,
|
|
5
5
|
getLastSeenUserIdAfterAuth,
|
|
6
6
|
getSensitiveEnvironmentData
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6EPG6YJ6.js";
|
|
8
8
|
import {
|
|
9
9
|
runWithRateLimit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C4ABWPZH.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-TT3RANTU.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__esm,
|
|
@@ -15926,4 +15926,4 @@ export {
|
|
|
15926
15926
|
requestIdsCollection,
|
|
15927
15927
|
reportAnalyticsEvent
|
|
15928
15928
|
};
|
|
15929
|
-
//# sourceMappingURL=chunk-
|
|
15929
|
+
//# sourceMappingURL=chunk-4WMN57JE.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
packageManagerFromUserAgent,
|
|
10
10
|
removeSession,
|
|
11
11
|
setSession
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-C4ABWPZH.js";
|
|
13
13
|
import {
|
|
14
14
|
AbortError,
|
|
15
15
|
BugError,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
spinFqdn,
|
|
46
46
|
systemEnvironmentVariables,
|
|
47
47
|
themeToken
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-TT3RANTU.js";
|
|
49
49
|
import {
|
|
50
50
|
cwd,
|
|
51
51
|
sniffForJson
|
|
@@ -26948,7 +26948,7 @@ var require_form_data = __commonJS({
|
|
|
26948
26948
|
|
|
26949
26949
|
// ../cli-kit/dist/public/common/version.js
|
|
26950
26950
|
init_cjs_shims();
|
|
26951
|
-
var CLI_KIT_VERSION = "3.81.
|
|
26951
|
+
var CLI_KIT_VERSION = "3.81.1";
|
|
26952
26952
|
|
|
26953
26953
|
// ../cli-kit/dist/private/node/analytics.js
|
|
26954
26954
|
init_cjs_shims();
|
|
@@ -32631,4 +32631,4 @@ mime-types/index.js:
|
|
|
32631
32631
|
* MIT Licensed
|
|
32632
32632
|
*)
|
|
32633
32633
|
*/
|
|
32634
|
-
//# sourceMappingURL=chunk-
|
|
32634
|
+
//# sourceMappingURL=chunk-6EPG6YJ6.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
require_semver,
|
|
20
20
|
runWithTimer,
|
|
21
21
|
writeFile
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TT3RANTU.js";
|
|
23
23
|
import {
|
|
24
24
|
dirname,
|
|
25
25
|
joinPath
|
|
@@ -13907,4 +13907,4 @@ deep-extend/lib/deep-extend.js:
|
|
|
13907
13907
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
13908
13908
|
*)
|
|
13909
13909
|
*/
|
|
13910
|
-
//# sourceMappingURL=chunk-
|
|
13910
|
+
//# sourceMappingURL=chunk-C4ABWPZH.js.map
|
|
@@ -23580,7 +23580,7 @@ init_cjs_shims();
|
|
|
23580
23580
|
|
|
23581
23581
|
// ../cli-kit/dist/public/node/abort.js
|
|
23582
23582
|
init_cjs_shims();
|
|
23583
|
-
var import_node_abort_controller = __toESM(require_node_abort_controller()), AbortController = class extends import_node_abort_controller.AbortController {
|
|
23583
|
+
var import_node_abort_controller = __toESM(require_node_abort_controller(), 1), AbortController = class extends import_node_abort_controller.AbortController {
|
|
23584
23584
|
}, AbortSignal = class extends import_node_abort_controller.AbortSignal {
|
|
23585
23585
|
};
|
|
23586
23586
|
|
|
@@ -23611,7 +23611,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
23611
23611
|
try {
|
|
23612
23612
|
await getAndSet();
|
|
23613
23613
|
} catch (error) {
|
|
23614
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
23614
|
+
let { sendErrorToBugsnag } = await import("./error-handler-DQ6X5YKA.js");
|
|
23615
23615
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
23616
23616
|
}
|
|
23617
23617
|
}, durationStack = [];
|
|
@@ -28240,7 +28240,7 @@ function asHumanFriendlyArray(items) {
|
|
|
28240
28240
|
}
|
|
28241
28241
|
|
|
28242
28242
|
// ../cli-kit/dist/public/common/string.js
|
|
28243
|
-
var import_change_case = __toESM(require_dist16()), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
|
|
28243
|
+
var import_change_case = __toESM(require_dist16(), 1), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
|
|
28244
28244
|
"commercial",
|
|
28245
28245
|
"profitable",
|
|
28246
28246
|
"amortizable",
|
|
@@ -29202,7 +29202,7 @@ init_cjs_shims();
|
|
|
29202
29202
|
|
|
29203
29203
|
// ../cli-kit/dist/public/common/function.js
|
|
29204
29204
|
init_cjs_shims();
|
|
29205
|
-
var import_memoize = __toESM(require_memoize()), import_debounce = __toESM(require_debounce());
|
|
29205
|
+
var import_memoize = __toESM(require_memoize(), 1), import_debounce = __toESM(require_debounce(), 1);
|
|
29206
29206
|
function debounce(func, wait, options) {
|
|
29207
29207
|
return (0, import_debounce.default)(func, wait, options);
|
|
29208
29208
|
}
|
|
@@ -32813,4 +32813,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
32813
32813
|
* LICENSE file in the root directory of this source tree.
|
|
32814
32814
|
*)
|
|
32815
32815
|
*/
|
|
32816
|
-
//# sourceMappingURL=chunk-
|
|
32816
|
+
//# sourceMappingURL=chunk-TT3RANTU.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
CLI_KIT_VERSION,
|
|
3
3
|
jsonOutputEnabled,
|
|
4
4
|
z
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6EPG6YJ6.js";
|
|
6
6
|
import {
|
|
7
7
|
cacheRetrieve,
|
|
8
8
|
cacheStore,
|
|
9
9
|
versionSatisfies
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C4ABWPZH.js";
|
|
11
11
|
import {
|
|
12
12
|
AbortSilentError,
|
|
13
13
|
exec,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
renderError,
|
|
17
17
|
renderInfo,
|
|
18
18
|
renderWarning
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TT3RANTU.js";
|
|
20
20
|
import {
|
|
21
21
|
init_cjs_shims
|
|
22
22
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -84,7 +84,7 @@ async function showNotificationsIfNeeded(currentSurfaces, environment = process.
|
|
|
84
84
|
throw new AbortSilentError();
|
|
85
85
|
let errorMessage = `Error showing notifications: ${error.message}`;
|
|
86
86
|
outputDebug(errorMessage);
|
|
87
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
87
|
+
let { sendErrorToBugsnag } = await import("./error-handler-DQ6X5YKA.js");
|
|
88
88
|
await sendErrorToBugsnag(errorMessage, "unexpected_error");
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -174,4 +174,4 @@ export {
|
|
|
174
174
|
showNotificationsIfNeeded,
|
|
175
175
|
fetchNotificationsInBackground
|
|
176
176
|
};
|
|
177
|
-
//# sourceMappingURL=chunk-
|
|
177
|
+
//# sourceMappingURL=chunk-UQP4ZLNS.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
execaSync,
|
|
3
3
|
fileExistsSync
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TT3RANTU.js";
|
|
5
5
|
import {
|
|
6
6
|
require_lib
|
|
7
7
|
} from "./chunk-2YVW3FGK.js";
|
|
@@ -42,4 +42,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
|
|
|
42
42
|
export {
|
|
43
43
|
ShopifyConfig
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=custom-oclif-loader-
|
|
45
|
+
//# sourceMappingURL=custom-oclif-loader-NCDQWHDP.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-4S4CSWD6.js";
|
|
8
|
+
import "./chunk-4WMN57JE.js";
|
|
9
|
+
import "./chunk-6EPG6YJ6.js";
|
|
10
10
|
import "./chunk-25IMI7TH.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-C4ABWPZH.js";
|
|
12
|
+
import "./chunk-TT3RANTU.js";
|
|
13
13
|
import "./chunk-2YVW3FGK.js";
|
|
14
14
|
import "./chunk-UMUTXITN.js";
|
|
15
15
|
import "./chunk-Y2JP6WFP.js";
|
|
@@ -27,4 +27,4 @@ export {
|
|
|
27
27
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
28
28
|
sendErrorToBugsnag
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=error-handler-
|
|
30
|
+
//# sourceMappingURL=error-handler-DQ6X5YKA.js.map
|
package/dist/hooks/postrun.js
CHANGED
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "../chunk-CP3BRHWK.js";
|
|
4
4
|
import {
|
|
5
5
|
reportAnalyticsEvent
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-4WMN57JE.js";
|
|
7
|
+
import "../chunk-6EPG6YJ6.js";
|
|
8
8
|
import "../chunk-25IMI7TH.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-C4ABWPZH.js";
|
|
10
10
|
import {
|
|
11
11
|
addSensitiveMetadata,
|
|
12
12
|
getAllSensitiveMetadata,
|
|
13
13
|
outputDebug,
|
|
14
14
|
renderWarning
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-TT3RANTU.js";
|
|
16
16
|
import "../chunk-2YVW3FGK.js";
|
|
17
17
|
import "../chunk-UMUTXITN.js";
|
|
18
18
|
import "../chunk-Y2JP6WFP.js";
|
package/dist/hooks/prerun.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchNotificationsInBackground
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-UQP4ZLNS.js";
|
|
4
4
|
import {
|
|
5
5
|
CLI_KIT_VERSION,
|
|
6
6
|
startAnalytics
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-6EPG6YJ6.js";
|
|
8
8
|
import "../chunk-25IMI7TH.js";
|
|
9
9
|
import {
|
|
10
10
|
checkForCachedNewVersion,
|
|
11
11
|
checkForNewVersion,
|
|
12
12
|
packageManagerFromUserAgent,
|
|
13
13
|
runAtMinimumInterval
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-C4ABWPZH.js";
|
|
15
15
|
import {
|
|
16
16
|
currentProcessIsGlobal,
|
|
17
17
|
inferPackageManagerForGlobalCLI,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
outputDebug,
|
|
21
21
|
outputToken,
|
|
22
22
|
outputWarn
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-TT3RANTU.js";
|
|
24
24
|
import "../chunk-2YVW3FGK.js";
|
|
25
25
|
import "../chunk-UMUTXITN.js";
|
|
26
26
|
import "../chunk-Y2JP6WFP.js";
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
errorHandler,
|
|
9
9
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
10
10
|
require_end_of_stream
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4S4CSWD6.js";
|
|
12
12
|
import {
|
|
13
13
|
setNextDeprecationDate
|
|
14
14
|
} from "./chunk-CP3BRHWK.js";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
getListOfTunnelPlugins,
|
|
18
18
|
reportAnalyticsEvent,
|
|
19
19
|
requestIdsCollection
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4WMN57JE.js";
|
|
21
21
|
import {
|
|
22
22
|
setCurrentCommandId,
|
|
23
23
|
showNotificationsIfNeeded
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UQP4ZLNS.js";
|
|
25
25
|
import {
|
|
26
26
|
CLI_KIT_VERSION,
|
|
27
27
|
ClientError,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
setLastSeenUserIdAfterAuth,
|
|
70
70
|
shopifyFetch,
|
|
71
71
|
z
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-6EPG6YJ6.js";
|
|
73
73
|
import "./chunk-25IMI7TH.js";
|
|
74
74
|
import {
|
|
75
75
|
LocalStorage,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
usesWorkspaces,
|
|
95
95
|
versionSatisfies,
|
|
96
96
|
writePackageJSON
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-C4ABWPZH.js";
|
|
98
98
|
import {
|
|
99
99
|
AbortController as AbortController2,
|
|
100
100
|
AbortError,
|
|
@@ -286,7 +286,7 @@ import {
|
|
|
286
286
|
username,
|
|
287
287
|
writeFile,
|
|
288
288
|
writeFileSync
|
|
289
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-TT3RANTU.js";
|
|
290
290
|
import {
|
|
291
291
|
require_brace_expansion,
|
|
292
292
|
require_commonjs,
|
|
@@ -199314,7 +199314,7 @@ init_cjs_shims();
|
|
|
199314
199314
|
init_cjs_shims();
|
|
199315
199315
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
199316
199316
|
async function launchCLI(options2) {
|
|
199317
|
-
let { errorHandler: errorHandler3 } = await import("./error-handler-
|
|
199317
|
+
let { errorHandler: errorHandler3 } = await import("./error-handler-DQ6X5YKA.js"), { isDevelopment: isDevelopment2 } = await import("./local-EXTM5UPB.js"), oclif = await import("./lib-UJ7YNLH4.js"), { ShopifyConfig } = await import("./custom-oclif-loader-NCDQWHDP.js");
|
|
199318
199318
|
isDevelopment2() && (oclif.default.settings.debug = !0);
|
|
199319
199319
|
try {
|
|
199320
199320
|
let config2 = new ShopifyConfig({ root: fileURLToPath2(options2.moduleURL) });
|
|
@@ -199329,7 +199329,7 @@ var import_core3 = __toESM(require_lib2());
|
|
|
199329
199329
|
async function exitIfOldNodeVersion(versions2 = process.versions) {
|
|
199330
199330
|
let nodeVersion = versions2.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
199331
199331
|
if (nodeMajorVersion < 18) {
|
|
199332
|
-
let { renderError: renderError2 } = await import("./ui-
|
|
199332
|
+
let { renderError: renderError2 } = await import("./ui-6L3VQT6P.js");
|
|
199333
199333
|
renderError2({
|
|
199334
199334
|
headline: "Upgrade to a supported Node version now.",
|
|
199335
199335
|
body: [
|
|
@@ -199356,7 +199356,7 @@ async function runCLI(options2, launchCLI2 = launchCLI, argv = process.argv, env
|
|
|
199356
199356
|
return setupEnvironmentVariables(options2, argv, env), options2.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options2, argv), forceNoColor(argv, env), await exitIfOldNodeVersion(versions2), launchCLI2({ moduleURL: options2.moduleURL });
|
|
199357
199357
|
}
|
|
199358
199358
|
async function addInitToArgvWhenRunningCreateCLI(options2, argv = process.argv) {
|
|
199359
|
-
let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-
|
|
199359
|
+
let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-4LLKYFW5.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-COZT77T2.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options2.moduleURL))).content.name.replace("@shopify/create-", "");
|
|
199360
199360
|
if (argv.findIndex((arg) => arg.includes("init")) === -1) {
|
|
199361
199361
|
let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
|
|
199362
199362
|
argv.splice(initIndex2, 0, "init");
|
|
@@ -206015,13 +206015,22 @@ function mountThemeFileSystem(root, options2) {
|
|
|
206015
206015
|
return;
|
|
206016
206016
|
let previousChecksum = files.get(fileKey)?.checksum, contentPromise = read(fileKey).then(async () => {
|
|
206017
206017
|
let file = files.get(fileKey);
|
|
206018
|
-
|
|
206019
|
-
|
|
206018
|
+
if (file)
|
|
206019
|
+
return file.checksum !== previousChecksum && unsyncedFileKeys.add(fileKey), {
|
|
206020
|
+
// file.value has a fallback value of '', so we want to ignore this eslint rule
|
|
206021
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
206022
|
+
value: file.value || void 0,
|
|
206023
|
+
attachment: file.attachment
|
|
206024
|
+
};
|
|
206025
|
+
}), syncPromise = contentPromise.then((content) => {
|
|
206026
|
+
if (content)
|
|
206027
|
+
return handleSyncUpdate(unsyncedFileKeys, uploadErrors, fileKey, themeId, adminSession)(content);
|
|
206028
|
+
}).catch(createSyncingCatchError(fileKey, "upload"));
|
|
206020
206029
|
emitEvent(eventName, {
|
|
206021
206030
|
fileKey,
|
|
206022
206031
|
onContent: (fn) => {
|
|
206023
206032
|
contentPromise.then((content) => {
|
|
206024
|
-
unsyncedFileKeys.has(fileKey) && fn(content);
|
|
206033
|
+
unsyncedFileKeys.has(fileKey) && fn(content?.value ?? content?.attachment ?? "");
|
|
206025
206034
|
}).catch(() => {
|
|
206026
206035
|
});
|
|
206027
206036
|
},
|
|
@@ -206087,7 +206096,7 @@ function handleSyncUpdate(unsyncedFileKeys, uploadErrors, fileKey, themeId, admi
|
|
|
206087
206096
|
return async (content) => {
|
|
206088
206097
|
if (!unsyncedFileKeys.has(fileKey))
|
|
206089
206098
|
return !1;
|
|
206090
|
-
let [result] = await bulkUploadThemeAssets(Number(themeId), [{ key: fileKey,
|
|
206099
|
+
let [result] = await bulkUploadThemeAssets(Number(themeId), [{ key: fileKey, ...content }], adminSession);
|
|
206091
206100
|
if (!result?.success) {
|
|
206092
206101
|
let errors = result?.errors?.asset ?? ["Response was not successful."];
|
|
206093
206102
|
throw uploadErrors.set(fileKey, errors), triggerBrowserFullReload(themeId, fileKey), new Error(errors.join(`
|
|
@@ -210532,6 +210541,15 @@ async function insideGitDirectory(directory) {
|
|
|
210532
210541
|
async function isClean(directory) {
|
|
210533
210542
|
return (await esm_default({ baseDir: directory }).status()).isClean();
|
|
210534
210543
|
}
|
|
210544
|
+
async function removeGitRemote(directory, remoteName = "origin") {
|
|
210545
|
+
outputDebug(outputContent`Removing git remote ${remoteName} from ${outputToken.path(directory)}...`), await ensureGitIsPresentOrAbort();
|
|
210546
|
+
let repo = esm_default(directory);
|
|
210547
|
+
if (!(await repo.getRemotes()).some((remote) => remote.name === remoteName)) {
|
|
210548
|
+
outputDebug(outputContent`Remote ${remoteName} does not exist, no action needed`);
|
|
210549
|
+
return;
|
|
210550
|
+
}
|
|
210551
|
+
await repo.removeRemote(remoteName);
|
|
210552
|
+
}
|
|
210535
210553
|
|
|
210536
210554
|
// ../theme/dist/cli/services/init.js
|
|
210537
210555
|
async function cloneRepo(repoUrl, destination) {
|
|
@@ -210548,8 +210566,9 @@ async function downloadRepository(repoUrl, destination, latestTag) {
|
|
|
210548
210566
|
await downloadGitRepository({
|
|
210549
210567
|
repoUrl,
|
|
210550
210568
|
destination,
|
|
210551
|
-
latestTag
|
|
210552
|
-
|
|
210569
|
+
latestTag,
|
|
210570
|
+
shallow: !0
|
|
210571
|
+
}), await removeGitRemote(destination);
|
|
210553
210572
|
}
|
|
210554
210573
|
}
|
|
210555
210574
|
]);
|
|
@@ -213608,7 +213627,6 @@ var import_react6 = __toESM(require_react(), 1), import_server8 = __toESM(requir
|
|
|
213608
213627
|
|
|
213609
213628
|
// ../app/dist/cli/services/dev/graphiql/server.js
|
|
213610
213629
|
var import_express = __toESM(require_express2(), 1), import_body_parser = __toESM(require_body_parser(), 1);
|
|
213611
|
-
import { encode as queryStringEncode } from "node:querystring";
|
|
213612
213630
|
import { createRequire as createRequire2 } from "module";
|
|
213613
213631
|
var require3 = createRequire2(import.meta.url), TokenRefreshError = class extends AbortError {
|
|
213614
213632
|
constructor() {
|
|
@@ -213631,16 +213649,17 @@ function setupGraphiQLServer({ stdout, port, appName, appUrl, apiKey, apiSecret,
|
|
|
213631
213649
|
async function refreshToken() {
|
|
213632
213650
|
try {
|
|
213633
213651
|
outputDebug("refreshing token", stdout), _token = void 0;
|
|
213634
|
-
let
|
|
213652
|
+
let bodyData = {
|
|
213635
213653
|
client_id: apiKey,
|
|
213636
213654
|
client_secret: apiSecret,
|
|
213637
213655
|
grant_type: "client_credentials"
|
|
213638
|
-
}
|
|
213639
|
-
return (await (await fetch2(`https://${storeFqdn}/admin/oauth/access_token
|
|
213656
|
+
};
|
|
213657
|
+
return (await (await fetch2(`https://${storeFqdn}/admin/oauth/access_token`, {
|
|
213640
213658
|
method: "POST",
|
|
213641
213659
|
headers: {
|
|
213642
213660
|
"Content-Type": "application/json"
|
|
213643
|
-
}
|
|
213661
|
+
},
|
|
213662
|
+
body: JSON.stringify(bodyData)
|
|
213644
213663
|
})).json()).access_token;
|
|
213645
213664
|
} catch {
|
|
213646
213665
|
throw new TokenRefreshError();
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
macAddress,
|
|
21
21
|
opentelemetryDomain,
|
|
22
22
|
themeToken
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TT3RANTU.js";
|
|
24
24
|
import "./chunk-2YVW3FGK.js";
|
|
25
25
|
import "./chunk-UMUTXITN.js";
|
|
26
26
|
import "./chunk-Y2JP6WFP.js";
|
|
@@ -53,4 +53,4 @@ export {
|
|
|
53
53
|
opentelemetryDomain,
|
|
54
54
|
themeToken
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=local-
|
|
56
|
+
//# sourceMappingURL=local-EXTM5UPB.js.map
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
versionSatisfies,
|
|
30
30
|
writePackageJSON,
|
|
31
31
|
yarnLockfile
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-C4ABWPZH.js";
|
|
33
|
+
import "./chunk-TT3RANTU.js";
|
|
34
34
|
import "./chunk-2YVW3FGK.js";
|
|
35
35
|
import "./chunk-UMUTXITN.js";
|
|
36
36
|
import "./chunk-Y2JP6WFP.js";
|
|
@@ -72,4 +72,4 @@ export {
|
|
|
72
72
|
writePackageJSON,
|
|
73
73
|
yarnLockfile
|
|
74
74
|
};
|
|
75
|
-
//# sourceMappingURL=node-package-manager-
|
|
75
|
+
//# sourceMappingURL=node-package-manager-4LLKYFW5.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
renderTasks,
|
|
17
17
|
renderTextPrompt,
|
|
18
18
|
renderWarning
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TT3RANTU.js";
|
|
20
20
|
import "./chunk-2YVW3FGK.js";
|
|
21
21
|
import "./chunk-UMUTXITN.js";
|
|
22
22
|
import "./chunk-Y2JP6WFP.js";
|
|
@@ -45,4 +45,4 @@ export {
|
|
|
45
45
|
renderTextPrompt,
|
|
46
46
|
renderWarning
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=ui-
|
|
48
|
+
//# sourceMappingURL=ui-6L3VQT6P.js.map
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/create-app",
|
|
3
|
-
"version": "3.81.
|
|
3
|
+
"version": "3.81.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.81.
|
|
51
|
-
"@shopify/app": "3.81.
|
|
50
|
+
"@shopify/cli-kit": "3.81.1",
|
|
51
|
+
"@shopify/app": "3.81.1",
|
|
52
52
|
"esbuild-plugin-copy": "^2.1.1",
|
|
53
53
|
"@vitest/coverage-istanbul": "^3.1.4"
|
|
54
54
|
},
|