@shopify/create-app 3.85.1 → 3.85.2
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-G5HUFNZJ.js → chunk-2VQSCETZ.js} +2 -1
- package/dist/{chunk-BPVVHBDS.js → chunk-5P4X6AIQ.js} +4 -4
- package/dist/{chunk-OF4U7FDV.js → chunk-7BZNMHRM.js} +5 -5
- package/dist/{chunk-345OYFTI.js → chunk-JKIYBT7B.js} +6 -6
- package/dist/{chunk-K6GH3OTA.js → chunk-OPUACRBY.js} +4 -4
- package/dist/{chunk-LSGUB77H.js → chunk-Y6H4NQNN.js} +3 -3
- package/dist/{chunk-UW5PDMY2.js → chunk-YPOBBW5D.js} +4 -4
- package/dist/{custom-oclif-loader-CPWFMSSL.js → custom-oclif-loader-IOC6N3VF.js} +3 -3
- package/dist/{error-handler-PZL5TOG2.js → error-handler-VKKBCHLU.js} +7 -7
- package/dist/hooks/postrun.js +5 -5
- package/dist/hooks/prerun.js +5 -5
- package/dist/index.js +204 -75
- package/dist/{lib-G23FRF64.js → lib-XDPPS4KW.js} +2 -2
- package/dist/{local-CSLZHQAW.js → local-5PM6BSWX.js} +3 -3
- package/dist/{node-package-manager-3OVW7PSU.js → node-package-manager-QIW4IYTW.js} +4 -4
- package/dist/{ui-XUWZDBQN.js → ui-KJW4VIFW.js} +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -172281,6 +172281,7 @@ export {
|
|
|
172281
172281
|
require_semver2 as require_semver,
|
|
172282
172282
|
require_ansi_styles,
|
|
172283
172283
|
require_source_map,
|
|
172284
|
+
require_typescript,
|
|
172284
172285
|
require_commonjs,
|
|
172285
172286
|
require_lib
|
|
172286
172287
|
};
|
|
@@ -172311,4 +172312,4 @@ typescript/lib/typescript.js:
|
|
|
172311
172312
|
and limitations under the License.
|
|
172312
172313
|
***************************************************************************** *)
|
|
172313
172314
|
*/
|
|
172314
|
-
//# sourceMappingURL=chunk-
|
|
172315
|
+
//# sourceMappingURL=chunk-2VQSCETZ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
require_lib,
|
|
5
5
|
require_semver,
|
|
6
6
|
require_source_map
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2VQSCETZ.js";
|
|
8
8
|
import {
|
|
9
9
|
require_has_flag
|
|
10
10
|
} from "./chunk-UMUTXITN.js";
|
|
@@ -23385,7 +23385,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
23385
23385
|
try {
|
|
23386
23386
|
await getAndSet();
|
|
23387
23387
|
} catch (error) {
|
|
23388
|
-
let { sendErrorToBugsnag } = await import("./error-handler-
|
|
23388
|
+
let { sendErrorToBugsnag } = await import("./error-handler-VKKBCHLU.js");
|
|
23389
23389
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
23390
23390
|
}
|
|
23391
23391
|
}, durationStack = [];
|
|
@@ -28155,7 +28155,7 @@ function asHumanFriendlyArray(items) {
|
|
|
28155
28155
|
}
|
|
28156
28156
|
|
|
28157
28157
|
// ../cli-kit/dist/public/common/string.js
|
|
28158
|
-
var import_change_case = __toESM(require_dist16()), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
|
|
28158
|
+
var import_change_case = __toESM(require_dist16(), 1), SAFE_RANDOM_BUSINESS_ADJECTIVES = [
|
|
28159
28159
|
"commercial",
|
|
28160
28160
|
"profitable",
|
|
28161
28161
|
"amortizable",
|
|
@@ -32541,4 +32541,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
32541
32541
|
* LICENSE file in the root directory of this source tree.
|
|
32542
32542
|
*)
|
|
32543
32543
|
*/
|
|
32544
|
-
//# sourceMappingURL=chunk-
|
|
32544
|
+
//# sourceMappingURL=chunk-5P4X6AIQ.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
CLI_KIT_VERSION,
|
|
3
3
|
jsonOutputEnabled,
|
|
4
4
|
z
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OPUACRBY.js";
|
|
6
6
|
import {
|
|
7
7
|
cacheRetrieve,
|
|
8
8
|
cacheStore,
|
|
9
9
|
versionSatisfies
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Y6H4NQNN.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-5P4X6AIQ.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-VKKBCHLU.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-7BZNMHRM.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fanoutHooks,
|
|
3
3
|
reportAnalyticsEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YPOBBW5D.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_KIT_VERSION,
|
|
7
7
|
getEnvironmentData,
|
|
8
8
|
isLocalEnvironment
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OPUACRBY.js";
|
|
10
10
|
import {
|
|
11
11
|
runWithRateLimit
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Y6H4NQNN.js";
|
|
13
13
|
import {
|
|
14
14
|
AbortSilentError,
|
|
15
15
|
CancelExecution,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
reportingRateLimit,
|
|
25
25
|
require_stacktracey,
|
|
26
26
|
shouldReportErrorAsUnexpected
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5P4X6AIQ.js";
|
|
28
28
|
import {
|
|
29
29
|
require_lib
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2VQSCETZ.js";
|
|
31
31
|
import {
|
|
32
32
|
cwd,
|
|
33
33
|
isAbsolutePath,
|
|
@@ -2143,4 +2143,4 @@ export {
|
|
|
2143
2143
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
2144
2144
|
addBugsnagMetadata
|
|
2145
2145
|
};
|
|
2146
|
-
//# sourceMappingURL=chunk-
|
|
2146
|
+
//# sourceMappingURL=chunk-JKIYBT7B.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
setCurrentSessionId,
|
|
15
15
|
setSessions,
|
|
16
16
|
timeIntervalToMilliseconds
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Y6H4NQNN.js";
|
|
18
18
|
import {
|
|
19
19
|
AbortError,
|
|
20
20
|
BugError,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
stringifyMessage,
|
|
81
81
|
systemEnvironmentVariables,
|
|
82
82
|
themeToken
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-5P4X6AIQ.js";
|
|
84
84
|
import {
|
|
85
85
|
cwd,
|
|
86
86
|
sniffForJson
|
|
@@ -30580,7 +30580,7 @@ var require_lib3 = __commonJS({
|
|
|
30580
30580
|
|
|
30581
30581
|
// ../cli-kit/dist/public/common/version.js
|
|
30582
30582
|
init_cjs_shims();
|
|
30583
|
-
var CLI_KIT_VERSION = "3.85.
|
|
30583
|
+
var CLI_KIT_VERSION = "3.85.2";
|
|
30584
30584
|
|
|
30585
30585
|
// ../cli-kit/dist/private/node/context/service.js
|
|
30586
30586
|
init_cjs_shims();
|
|
@@ -36717,4 +36717,4 @@ mime-types/index.js:
|
|
|
36717
36717
|
* MIT Licensed
|
|
36718
36718
|
*)
|
|
36719
36719
|
*/
|
|
36720
|
-
//# sourceMappingURL=chunk-
|
|
36720
|
+
//# sourceMappingURL=chunk-OPUACRBY.js.map
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
require_get_stream,
|
|
19
19
|
runWithTimer,
|
|
20
20
|
writeFile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5P4X6AIQ.js";
|
|
22
22
|
import {
|
|
23
23
|
require_semver
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2VQSCETZ.js";
|
|
25
25
|
import {
|
|
26
26
|
dirname,
|
|
27
27
|
joinPath
|
|
@@ -13933,4 +13933,4 @@ deep-extend/lib/deep-extend.js:
|
|
|
13933
13933
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
13934
13934
|
*)
|
|
13935
13935
|
*/
|
|
13936
|
-
//# sourceMappingURL=chunk-
|
|
13936
|
+
//# sourceMappingURL=chunk-Y6H4NQNN.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
getLastSeenUserIdAfterAuth,
|
|
6
6
|
getSensitiveEnvironmentData,
|
|
7
7
|
requestIdsCollection
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OPUACRBY.js";
|
|
9
9
|
import {
|
|
10
10
|
runWithRateLimit
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Y6H4NQNN.js";
|
|
12
12
|
import {
|
|
13
13
|
alwaysLogAnalytics,
|
|
14
14
|
alwaysLogMetrics,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
outputDebug,
|
|
25
25
|
outputToken,
|
|
26
26
|
reportingRateLimit
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5P4X6AIQ.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__esm,
|
|
@@ -16071,4 +16071,4 @@ export {
|
|
|
16071
16071
|
recordEvent2 as recordEvent,
|
|
16072
16072
|
compileData2 as compileData
|
|
16073
16073
|
};
|
|
16074
|
-
//# sourceMappingURL=chunk-
|
|
16074
|
+
//# sourceMappingURL=chunk-YPOBBW5D.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
execaSync,
|
|
3
3
|
fileExistsSync
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5P4X6AIQ.js";
|
|
5
5
|
import {
|
|
6
6
|
require_lib
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2VQSCETZ.js";
|
|
8
8
|
import "./chunk-UMUTXITN.js";
|
|
9
9
|
import {
|
|
10
10
|
cwd,
|
|
@@ -40,4 +40,4 @@ var import_core = __toESM(require_lib(), 1), ShopifyConfig = class extends impor
|
|
|
40
40
|
export {
|
|
41
41
|
ShopifyConfig
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=custom-oclif-loader-
|
|
43
|
+
//# sourceMappingURL=custom-oclif-loader-IOC6N3VF.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
errorHandler,
|
|
5
5
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
6
6
|
sendErrorToBugsnag
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-JKIYBT7B.js";
|
|
8
|
+
import "./chunk-YPOBBW5D.js";
|
|
9
|
+
import "./chunk-OPUACRBY.js";
|
|
10
10
|
import "./chunk-25IMI7TH.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-Y6H4NQNN.js";
|
|
12
|
+
import "./chunk-5P4X6AIQ.js";
|
|
13
|
+
import "./chunk-2VQSCETZ.js";
|
|
14
14
|
import "./chunk-UMUTXITN.js";
|
|
15
15
|
import "./chunk-Y2JP6WFP.js";
|
|
16
16
|
import "./chunk-SHWOPMLQ.js";
|
|
@@ -25,4 +25,4 @@ export {
|
|
|
25
25
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
26
26
|
sendErrorToBugsnag
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=error-handler-
|
|
28
|
+
//# sourceMappingURL=error-handler-VKKBCHLU.js.map
|
package/dist/hooks/postrun.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reportAnalyticsEvent
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YPOBBW5D.js";
|
|
4
4
|
import {
|
|
5
5
|
getNextDeprecationDate
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-OPUACRBY.js";
|
|
7
7
|
import "../chunk-25IMI7TH.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-Y6H4NQNN.js";
|
|
9
9
|
import {
|
|
10
10
|
addSensitiveMetadata,
|
|
11
11
|
getAllSensitiveMetadata,
|
|
12
12
|
outputDebug,
|
|
13
13
|
renderWarning
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-5P4X6AIQ.js";
|
|
15
|
+
import "../chunk-2VQSCETZ.js";
|
|
16
16
|
import "../chunk-UMUTXITN.js";
|
|
17
17
|
import "../chunk-Y2JP6WFP.js";
|
|
18
18
|
import "../chunk-75LV6AQS.js";
|
package/dist/hooks/prerun.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchNotificationsInBackground
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7BZNMHRM.js";
|
|
4
4
|
import {
|
|
5
5
|
CLI_KIT_VERSION,
|
|
6
6
|
startAnalytics
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-OPUACRBY.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-Y6H4NQNN.js";
|
|
15
15
|
import {
|
|
16
16
|
currentProcessIsGlobal,
|
|
17
17
|
inferPackageManagerForGlobalCLI,
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
outputDebug,
|
|
21
21
|
outputToken,
|
|
22
22
|
outputWarn
|
|
23
|
-
} from "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
} from "../chunk-5P4X6AIQ.js";
|
|
24
|
+
import "../chunk-2VQSCETZ.js";
|
|
25
25
|
import "../chunk-UMUTXITN.js";
|
|
26
26
|
import "../chunk-Y2JP6WFP.js";
|
|
27
27
|
import "../chunk-75LV6AQS.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-JKIYBT7B.js";
|
|
12
12
|
import {
|
|
13
13
|
compileData,
|
|
14
14
|
fanoutHooks,
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
recordEvent,
|
|
18
18
|
recordTiming,
|
|
19
19
|
reportAnalyticsEvent
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YPOBBW5D.js";
|
|
21
21
|
import {
|
|
22
22
|
setCurrentCommandId,
|
|
23
23
|
showNotificationsIfNeeded
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7BZNMHRM.js";
|
|
25
25
|
import {
|
|
26
26
|
CLI_KIT_VERSION,
|
|
27
27
|
ClientError,
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
setPathValue,
|
|
90
90
|
shopifyFetch,
|
|
91
91
|
z
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-OPUACRBY.js";
|
|
93
93
|
import "./chunk-25IMI7TH.js";
|
|
94
94
|
import {
|
|
95
95
|
LocalStorage,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
usesWorkspaces,
|
|
113
113
|
versionSatisfies,
|
|
114
114
|
writePackageJSON
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-Y6H4NQNN.js";
|
|
116
116
|
import {
|
|
117
117
|
AbortController as AbortController2,
|
|
118
118
|
AbortError,
|
|
@@ -275,11 +275,12 @@ import {
|
|
|
275
275
|
username,
|
|
276
276
|
writeFile,
|
|
277
277
|
writeFileSync
|
|
278
|
-
} from "./chunk-
|
|
278
|
+
} from "./chunk-5P4X6AIQ.js";
|
|
279
279
|
import {
|
|
280
280
|
require_commonjs,
|
|
281
|
-
require_lib as require_lib2
|
|
282
|
-
|
|
281
|
+
require_lib as require_lib2,
|
|
282
|
+
require_typescript
|
|
283
|
+
} from "./chunk-2VQSCETZ.js";
|
|
283
284
|
import {
|
|
284
285
|
require_ms,
|
|
285
286
|
require_src
|
|
@@ -3270,7 +3271,7 @@ var require_main = __commonJS({
|
|
|
3270
3271
|
t: () => t18
|
|
3271
3272
|
});
|
|
3272
3273
|
module2.exports = __toCommonJS3(main_exports4);
|
|
3273
|
-
var
|
|
3274
|
+
var import_fs83 = __require("fs"), import_promises5 = __require("fs/promises");
|
|
3274
3275
|
async function readFileFromUri(uri) {
|
|
3275
3276
|
if (uri.protocol === "file:")
|
|
3276
3277
|
return await (0, import_promises5.readFile)(uri, "utf8");
|
|
@@ -3295,7 +3296,7 @@ var require_main = __commonJS({
|
|
|
3295
3296
|
throw new Error("Unsupported protocol");
|
|
3296
3297
|
}
|
|
3297
3298
|
function readFileFromFsPath(fsPath) {
|
|
3298
|
-
return (0,
|
|
3299
|
+
return (0, import_fs83.readFileSync)(fsPath, "utf8");
|
|
3299
3300
|
}
|
|
3300
3301
|
var bundle;
|
|
3301
3302
|
function config2(config22) {
|
|
@@ -33433,8 +33434,8 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
33433
33434
|
default: {
|
|
33434
33435
|
let message = `Unexpected token in block scalar header: ${token.type}`;
|
|
33435
33436
|
onError2(token, "UNEXPECTED_TOKEN", message);
|
|
33436
|
-
let
|
|
33437
|
-
|
|
33437
|
+
let ts2 = token.source;
|
|
33438
|
+
ts2 && typeof ts2 == "string" && (length += ts2.length);
|
|
33438
33439
|
}
|
|
33439
33440
|
}
|
|
33440
33441
|
}
|
|
@@ -33671,7 +33672,7 @@ var require_compose_scalar = __commonJS({
|
|
|
33671
33672
|
if (schema.compat) {
|
|
33672
33673
|
let compat = schema.compat.find((tag2) => tag2.default && tag2.test?.test(value)) ?? schema[identity.SCALAR];
|
|
33673
33674
|
if (tag.tag !== compat.tag) {
|
|
33674
|
-
let
|
|
33675
|
+
let ts2 = directives.tagString(tag.tag), cs = directives.tagString(compat.tag), msg = `Value may be parsed as either ${ts2} or ${cs}`;
|
|
33675
33676
|
onError2(token, "TAG_RESOLVE_FAILED", msg, !0);
|
|
33676
33677
|
}
|
|
33677
33678
|
}
|
|
@@ -45254,12 +45255,12 @@ var require_stream_transform = __commonJS({
|
|
|
45254
45255
|
util.inherits = require_inherits();
|
|
45255
45256
|
util.inherits(Transform, Duplex);
|
|
45256
45257
|
function afterTransform(er, data) {
|
|
45257
|
-
var
|
|
45258
|
-
|
|
45259
|
-
var cb =
|
|
45258
|
+
var ts2 = this._transformState;
|
|
45259
|
+
ts2.transforming = !1;
|
|
45260
|
+
var cb = ts2.writecb;
|
|
45260
45261
|
if (!cb)
|
|
45261
45262
|
return this.emit("error", new Error("write callback called multiple times"));
|
|
45262
|
-
|
|
45263
|
+
ts2.writechunk = null, ts2.writecb = null, data != null && this.push(data), cb(er);
|
|
45263
45264
|
var rs = this._readableState;
|
|
45264
45265
|
rs.reading = !1, (rs.needReadable || rs.length < rs.highWaterMark) && this._read(rs.highWaterMark);
|
|
45265
45266
|
}
|
|
@@ -45287,15 +45288,15 @@ var require_stream_transform = __commonJS({
|
|
|
45287
45288
|
throw new Error("_transform() is not implemented");
|
|
45288
45289
|
};
|
|
45289
45290
|
Transform.prototype._write = function(chunk, encoding, cb) {
|
|
45290
|
-
var
|
|
45291
|
-
if (
|
|
45291
|
+
var ts2 = this._transformState;
|
|
45292
|
+
if (ts2.writecb = cb, ts2.writechunk = chunk, ts2.writeencoding = encoding, !ts2.transforming) {
|
|
45292
45293
|
var rs = this._readableState;
|
|
45293
|
-
(
|
|
45294
|
+
(ts2.needTransform || rs.needReadable || rs.length < rs.highWaterMark) && this._read(rs.highWaterMark);
|
|
45294
45295
|
}
|
|
45295
45296
|
};
|
|
45296
45297
|
Transform.prototype._read = function(n) {
|
|
45297
|
-
var
|
|
45298
|
-
|
|
45298
|
+
var ts2 = this._transformState;
|
|
45299
|
+
ts2.writechunk !== null && ts2.writecb && !ts2.transforming ? (ts2.transforming = !0, this._transform(ts2.writechunk, ts2.writeencoding, ts2.afterTransform)) : ts2.needTransform = !0;
|
|
45299
45300
|
};
|
|
45300
45301
|
Transform.prototype._destroy = function(err2, cb) {
|
|
45301
45302
|
var _this2 = this;
|
|
@@ -47871,12 +47872,12 @@ var require_stream_transform2 = __commonJS({
|
|
|
47871
47872
|
var _require$codes = require_errors4().codes, ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0, Duplex = require_stream_duplex2();
|
|
47872
47873
|
require_inherits()(Transform, Duplex);
|
|
47873
47874
|
function afterTransform(er, data) {
|
|
47874
|
-
var
|
|
47875
|
-
|
|
47876
|
-
var cb =
|
|
47875
|
+
var ts2 = this._transformState;
|
|
47876
|
+
ts2.transforming = !1;
|
|
47877
|
+
var cb = ts2.writecb;
|
|
47877
47878
|
if (cb === null)
|
|
47878
47879
|
return this.emit("error", new ERR_MULTIPLE_CALLBACK());
|
|
47879
|
-
|
|
47880
|
+
ts2.writechunk = null, ts2.writecb = null, data != null && this.push(data), cb(er);
|
|
47880
47881
|
var rs = this._readableState;
|
|
47881
47882
|
rs.reading = !1, (rs.needReadable || rs.length < rs.highWaterMark) && this._read(rs.highWaterMark);
|
|
47882
47883
|
}
|
|
@@ -47904,15 +47905,15 @@ var require_stream_transform2 = __commonJS({
|
|
|
47904
47905
|
cb(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"));
|
|
47905
47906
|
};
|
|
47906
47907
|
Transform.prototype._write = function(chunk, encoding, cb) {
|
|
47907
|
-
var
|
|
47908
|
-
if (
|
|
47908
|
+
var ts2 = this._transformState;
|
|
47909
|
+
if (ts2.writecb = cb, ts2.writechunk = chunk, ts2.writeencoding = encoding, !ts2.transforming) {
|
|
47909
47910
|
var rs = this._readableState;
|
|
47910
|
-
(
|
|
47911
|
+
(ts2.needTransform || rs.needReadable || rs.length < rs.highWaterMark) && this._read(rs.highWaterMark);
|
|
47911
47912
|
}
|
|
47912
47913
|
};
|
|
47913
47914
|
Transform.prototype._read = function(n) {
|
|
47914
|
-
var
|
|
47915
|
-
|
|
47915
|
+
var ts2 = this._transformState;
|
|
47916
|
+
ts2.writechunk !== null && !ts2.transforming ? (ts2.transforming = !0, this._transform(ts2.writechunk, ts2.writeencoding, ts2.afterTransform)) : ts2.needTransform = !0;
|
|
47916
47917
|
};
|
|
47917
47918
|
Transform.prototype._destroy = function(err2, cb) {
|
|
47918
47919
|
Duplex.prototype._destroy.call(this, err2, function(err22) {
|
|
@@ -194009,6 +194010,129 @@ function arraySum(array) {
|
|
|
194009
194010
|
// ../app/dist/cli/models/extensions/specifications/ui_extension.js
|
|
194010
194011
|
init_cjs_shims();
|
|
194011
194012
|
|
|
194013
|
+
// ../app/dist/cli/models/extensions/specifications/type-generation.js
|
|
194014
|
+
init_cjs_shims();
|
|
194015
|
+
var import_typescript = __toESM(require_typescript(), 1);
|
|
194016
|
+
import { createRequire } from "module";
|
|
194017
|
+
var require2 = createRequire(import.meta.url);
|
|
194018
|
+
function parseApiVersion(apiVersion) {
|
|
194019
|
+
let [year, month] = apiVersion.split("-");
|
|
194020
|
+
return !year || !month ? null : { year: parseInt(year, 10), month: parseInt(month, 10) };
|
|
194021
|
+
}
|
|
194022
|
+
function loadTsConfig(startPath) {
|
|
194023
|
+
let configPath = import_typescript.default.findConfigFile(startPath, import_typescript.default.sys.fileExists.bind(import_typescript.default.sys), "tsconfig.json");
|
|
194024
|
+
if (!configPath)
|
|
194025
|
+
return { compilerOptions: {}, configPath: void 0 };
|
|
194026
|
+
let configFile = import_typescript.default.readConfigFile(configPath, import_typescript.default.sys.readFile.bind(import_typescript.default.sys));
|
|
194027
|
+
return configFile.error ? { compilerOptions: {}, configPath } : { compilerOptions: import_typescript.default.parseJsonConfigFileContent(configFile.config, import_typescript.default.sys, dirname(configPath)).options, configPath };
|
|
194028
|
+
}
|
|
194029
|
+
async function fallbackResolve(importPath, baseDir) {
|
|
194030
|
+
if (!importPath.startsWith("./") && !importPath.startsWith("../"))
|
|
194031
|
+
return null;
|
|
194032
|
+
let resolvedPath = resolvePath(baseDir, importPath), extensions = ["", ".js", ".jsx", ".ts", ".tsx"];
|
|
194033
|
+
for (let ext of extensions) {
|
|
194034
|
+
let pathWithExt = resolvedPath + ext;
|
|
194035
|
+
if (await fileExists(pathWithExt) && !pathWithExt.includes("node_modules"))
|
|
194036
|
+
return pathWithExt;
|
|
194037
|
+
}
|
|
194038
|
+
for (let ext of [".js", ".jsx", ".ts", ".tsx"]) {
|
|
194039
|
+
let indexPath = joinPath(resolvedPath, `index${ext}`);
|
|
194040
|
+
if (await fileExists(indexPath) && !indexPath.includes("node_modules"))
|
|
194041
|
+
return indexPath;
|
|
194042
|
+
}
|
|
194043
|
+
return null;
|
|
194044
|
+
}
|
|
194045
|
+
async function parseAndResolveImports(filePath) {
|
|
194046
|
+
try {
|
|
194047
|
+
let content = readFileSync(filePath).toString(), resolvedPaths = [], { compilerOptions } = loadTsConfig(filePath), scriptKind = import_typescript.default.ScriptKind.JSX;
|
|
194048
|
+
filePath.endsWith(".ts") ? scriptKind = import_typescript.default.ScriptKind.TS : filePath.endsWith(".tsx") && (scriptKind = import_typescript.default.ScriptKind.TSX);
|
|
194049
|
+
let sourceFile = import_typescript.default.createSourceFile(filePath, content, import_typescript.default.ScriptTarget.Latest, !0, scriptKind), processedImports = /* @__PURE__ */ new Set(), importPaths = [], visit3 = (node) => {
|
|
194050
|
+
if (import_typescript.default.isImportDeclaration(node) && node.moduleSpecifier && import_typescript.default.isStringLiteral(node.moduleSpecifier))
|
|
194051
|
+
importPaths.push(node.moduleSpecifier.text);
|
|
194052
|
+
else if (import_typescript.default.isCallExpression(node) && node.expression.kind === import_typescript.default.SyntaxKind.ImportKeyword) {
|
|
194053
|
+
let firstArg = node.arguments[0];
|
|
194054
|
+
firstArg && import_typescript.default.isStringLiteral(firstArg) && importPaths.push(firstArg.text);
|
|
194055
|
+
} else import_typescript.default.isExportDeclaration(node) && node.moduleSpecifier && import_typescript.default.isStringLiteral(node.moduleSpecifier) && importPaths.push(node.moduleSpecifier.text);
|
|
194056
|
+
import_typescript.default.forEachChild(node, visit3);
|
|
194057
|
+
};
|
|
194058
|
+
visit3(sourceFile);
|
|
194059
|
+
for (let importPath of importPaths) {
|
|
194060
|
+
if (!importPath || processedImports.has(importPath))
|
|
194061
|
+
continue;
|
|
194062
|
+
processedImports.add(importPath);
|
|
194063
|
+
let resolvedModule = import_typescript.default.resolveModuleName(importPath, filePath, compilerOptions, import_typescript.default.sys);
|
|
194064
|
+
if (resolvedModule.resolvedModule?.resolvedFileName) {
|
|
194065
|
+
let resolvedPath = resolvedModule.resolvedModule.resolvedFileName;
|
|
194066
|
+
resolvedPath.includes("node_modules") || resolvedPaths.push(resolvedPath);
|
|
194067
|
+
} else {
|
|
194068
|
+
let fallbackPath = await fallbackResolve(importPath, dirname(filePath));
|
|
194069
|
+
fallbackPath && resolvedPaths.push(fallbackPath);
|
|
194070
|
+
}
|
|
194071
|
+
}
|
|
194072
|
+
return resolvedPaths;
|
|
194073
|
+
} catch (error) {
|
|
194074
|
+
if (error instanceof AbortError)
|
|
194075
|
+
throw error;
|
|
194076
|
+
return [];
|
|
194077
|
+
}
|
|
194078
|
+
}
|
|
194079
|
+
async function findAllImportedFiles(filePath, visited = /* @__PURE__ */ new Set()) {
|
|
194080
|
+
if (visited.has(filePath))
|
|
194081
|
+
return [];
|
|
194082
|
+
visited.add(filePath);
|
|
194083
|
+
let resolvedPaths = await parseAndResolveImports(filePath), allFiles = [...resolvedPaths];
|
|
194084
|
+
for (let resolvedPath of resolvedPaths) {
|
|
194085
|
+
let nestedImports = await findAllImportedFiles(resolvedPath, visited);
|
|
194086
|
+
allFiles.push(...nestedImports);
|
|
194087
|
+
}
|
|
194088
|
+
return [...new Set(allFiles)];
|
|
194089
|
+
}
|
|
194090
|
+
function createTypeDefinition(fullPath, typeFilePath, targets, apiVersion) {
|
|
194091
|
+
try {
|
|
194092
|
+
for (let target of targets)
|
|
194093
|
+
try {
|
|
194094
|
+
require2.resolve(`@shopify/ui-extensions/${target}`, { paths: [fullPath, typeFilePath] });
|
|
194095
|
+
} catch {
|
|
194096
|
+
let { year, month } = parseApiVersion(apiVersion) ?? { year: 2025, month: 10 };
|
|
194097
|
+
throw new AbortError(`Type reference for ${target} could not be found. You might be using the wrong @shopify/ui-extensions version.`, `Fix the error by ensuring you have the correct version of @shopify/ui-extensions, for example ~${year}.${month}.0, in your dependencies.`);
|
|
194098
|
+
}
|
|
194099
|
+
let relativePath2 = relativizePath(fullPath, dirname(typeFilePath));
|
|
194100
|
+
if (targets.length === 1) {
|
|
194101
|
+
let target = targets[0] ?? "";
|
|
194102
|
+
return `//@ts-ignore
|
|
194103
|
+
declare module './${relativePath2}' {
|
|
194104
|
+
const shopify: import('@shopify/ui-extensions/${target}').Api;
|
|
194105
|
+
const globalThis: { shopify: typeof shopify };
|
|
194106
|
+
}
|
|
194107
|
+
`;
|
|
194108
|
+
} else if (targets.length > 1) {
|
|
194109
|
+
let unionType = targets.map((target) => ` import('@shopify/ui-extensions/${target}').Api`).join(` |
|
|
194110
|
+
`);
|
|
194111
|
+
return `//@ts-ignore
|
|
194112
|
+
declare module './${relativePath2}' {
|
|
194113
|
+
const shopify:
|
|
194114
|
+
${unionType};
|
|
194115
|
+
const globalThis: { shopify: typeof shopify };
|
|
194116
|
+
}
|
|
194117
|
+
`;
|
|
194118
|
+
}
|
|
194119
|
+
return null;
|
|
194120
|
+
} catch (error) {
|
|
194121
|
+
if (error instanceof AbortError)
|
|
194122
|
+
throw error;
|
|
194123
|
+
let { year, month } = parseApiVersion(apiVersion) ?? { year: 2025, month: 10 };
|
|
194124
|
+
throw new AbortError("Type reference could not be found. You might be using the wrong @shopify/ui-extensions version.", `Fix the error by ensuring you have the correct version of @shopify/ui-extensions, for example ~${year}.${month}.0, in your dependencies.`);
|
|
194125
|
+
}
|
|
194126
|
+
}
|
|
194127
|
+
async function findNearestTsConfigDir(fromFile, extensionDirectory) {
|
|
194128
|
+
let fromDirectory = dirname(fromFile), tsconfigPath = await findPathUp("tsconfig.json", { cwd: fromDirectory, type: "file" });
|
|
194129
|
+
if (tsconfigPath) {
|
|
194130
|
+
let normalizedTsconfigPath = resolvePath(tsconfigPath), normalizedExtensionDirectory = resolvePath(extensionDirectory);
|
|
194131
|
+
if (normalizedTsconfigPath.startsWith(normalizedExtensionDirectory))
|
|
194132
|
+
return dirname(tsconfigPath);
|
|
194133
|
+
}
|
|
194134
|
+
}
|
|
194135
|
+
|
|
194012
194136
|
// ../app/dist/cli/services/dev/extension/utilities.js
|
|
194013
194137
|
init_cjs_shims();
|
|
194014
194138
|
|
|
@@ -194164,8 +194288,7 @@ function getExtensionPointTargetSurface(extensionPointTarget) {
|
|
|
194164
194288
|
}
|
|
194165
194289
|
|
|
194166
194290
|
// ../app/dist/cli/models/extensions/specifications/ui_extension.js
|
|
194167
|
-
|
|
194168
|
-
var require2 = createRequire(import.meta.url), dependency5 = "@shopify/checkout-ui-extensions", validatePoints = (config2) => config2.extension_points !== void 0 || config2.targeting !== void 0, missingExtensionPointsMessage = "No extension targets defined, add a `targeting` field to your configuration", UIExtensionSchema = BaseSchema.extend({
|
|
194291
|
+
var dependency5 = "@shopify/checkout-ui-extensions", validatePoints = (config2) => config2.extension_points !== void 0 || config2.targeting !== void 0, missingExtensionPointsMessage = "No extension targets defined, add a `targeting` field to your configuration", UIExtensionSchema = BaseSchema.extend({
|
|
194169
194292
|
name: z.string(),
|
|
194170
194293
|
type: z.literal("ui_extension"),
|
|
194171
194294
|
extension_points: NewExtensionPointsSchema.optional(),
|
|
@@ -194243,30 +194366,56 @@ var require2 = createRequire(import.meta.url), dependency5 = "@shopify/checkout-
|
|
|
194243
194366
|
contributeToSharedTypeFile: async (extension, typeDefinitionsByFile) => {
|
|
194244
194367
|
if (!isRemoteDomExtension(extension.configuration))
|
|
194245
194368
|
return;
|
|
194246
|
-
let { configuration } = extension;
|
|
194369
|
+
let { configuration } = extension, fileToTargetsMap = /* @__PURE__ */ new Map();
|
|
194247
194370
|
for await (let extensionPoint of configuration.extension_points) {
|
|
194248
194371
|
let fullPath = joinPath(extension.directory, extensionPoint.module);
|
|
194249
194372
|
if (!await fileExists(fullPath))
|
|
194250
194373
|
continue;
|
|
194251
|
-
let
|
|
194252
|
-
if (
|
|
194374
|
+
let currentTargets = fileToTargetsMap.get(fullPath) ?? [];
|
|
194375
|
+
if (currentTargets.push(extensionPoint.target), fileToTargetsMap.set(fullPath, currentTargets), extensionPoint.build_manifest.assets[AssetIdentifier.ShouldRender]?.module) {
|
|
194376
|
+
let shouldRenderPath = joinPath(extension.directory, extensionPoint.build_manifest.assets[AssetIdentifier.ShouldRender].module);
|
|
194377
|
+
if (await fileExists(shouldRenderPath)) {
|
|
194378
|
+
let shouldRenderTargets = fileToTargetsMap.get(shouldRenderPath) ?? [];
|
|
194379
|
+
shouldRenderTargets.push(getShouldRenderTarget(extensionPoint.target)), fileToTargetsMap.set(shouldRenderPath, shouldRenderTargets);
|
|
194380
|
+
}
|
|
194381
|
+
}
|
|
194382
|
+
}
|
|
194383
|
+
for await (let extensionPoint of configuration.extension_points) {
|
|
194384
|
+
let fullPath = joinPath(extension.directory, extensionPoint.module);
|
|
194385
|
+
if (!await fileExists(fullPath))
|
|
194253
194386
|
continue;
|
|
194254
|
-
let
|
|
194255
|
-
|
|
194256
|
-
let
|
|
194257
|
-
|
|
194387
|
+
let importedFiles = await findAllImportedFiles(fullPath);
|
|
194388
|
+
for (let importedFile of importedFiles) {
|
|
194389
|
+
let currentTargets = fileToTargetsMap.get(importedFile) ?? [];
|
|
194390
|
+
currentTargets.push(extensionPoint.target), fileToTargetsMap.set(importedFile, currentTargets);
|
|
194258
194391
|
}
|
|
194259
194392
|
if (extensionPoint.build_manifest.assets[AssetIdentifier.ShouldRender]?.module) {
|
|
194260
|
-
let
|
|
194261
|
-
if (
|
|
194262
|
-
|
|
194263
|
-
|
|
194264
|
-
|
|
194265
|
-
|
|
194266
|
-
|
|
194393
|
+
let shouldRenderPath = joinPath(extension.directory, extensionPoint.build_manifest.assets[AssetIdentifier.ShouldRender].module);
|
|
194394
|
+
if (await fileExists(shouldRenderPath)) {
|
|
194395
|
+
let shouldRenderImports = await findAllImportedFiles(shouldRenderPath);
|
|
194396
|
+
for (let importedFile of shouldRenderImports) {
|
|
194397
|
+
let currentTargets = fileToTargetsMap.get(importedFile) ?? [];
|
|
194398
|
+
currentTargets.push(getShouldRenderTarget(extensionPoint.target)), fileToTargetsMap.set(importedFile, currentTargets);
|
|
194399
|
+
}
|
|
194267
194400
|
}
|
|
194268
194401
|
}
|
|
194269
194402
|
}
|
|
194403
|
+
for await (let [filePath, targets] of fileToTargetsMap.entries()) {
|
|
194404
|
+
let tsConfigDir = await findNearestTsConfigDir(filePath, extension.directory);
|
|
194405
|
+
if (!tsConfigDir)
|
|
194406
|
+
continue;
|
|
194407
|
+
let typeFilePath = joinPath(tsConfigDir, "shopify.d.ts"), uniqueTargets = [...new Set(targets)];
|
|
194408
|
+
try {
|
|
194409
|
+
let typeDefinition = createTypeDefinition(filePath, typeFilePath, uniqueTargets, configuration.api_version);
|
|
194410
|
+
if (typeDefinition) {
|
|
194411
|
+
let currentTypes = typeDefinitionsByFile.get(typeFilePath) ?? /* @__PURE__ */ new Set();
|
|
194412
|
+
currentTypes.add(typeDefinition), typeDefinitionsByFile.set(typeFilePath, currentTypes);
|
|
194413
|
+
}
|
|
194414
|
+
} catch (error) {
|
|
194415
|
+
if (configuration.extension_points.some((ep) => joinPath(extension.directory, ep.module) === filePath || ep.build_manifest.assets[AssetIdentifier.ShouldRender]?.module && joinPath(extension.directory, ep.build_manifest.assets[AssetIdentifier.ShouldRender].module) === filePath))
|
|
194416
|
+
throw error;
|
|
194417
|
+
}
|
|
194418
|
+
}
|
|
194270
194419
|
}
|
|
194271
194420
|
});
|
|
194272
194421
|
function addDistPathToAssets(extP) {
|
|
@@ -194303,35 +194452,15 @@ Extension point targets must be unique`), errors.length ? (errors.push(`Please c
|
|
|
194303
194452
|
`))) : ok({});
|
|
194304
194453
|
}
|
|
194305
194454
|
function isRemoteDomExtension(config2) {
|
|
194306
|
-
let apiVersion = config2.api_version
|
|
194307
|
-
|
|
194455
|
+
let apiVersion = config2.api_version;
|
|
194456
|
+
if (!apiVersion)
|
|
194457
|
+
return !1;
|
|
194458
|
+
let { year, month } = parseApiVersion(apiVersion) ?? { year: 0, month: 0 };
|
|
194459
|
+
return year > 2025 || year === 2025 && month >= 10;
|
|
194308
194460
|
}
|
|
194309
194461
|
function getShouldRenderTarget(target) {
|
|
194310
194462
|
return target.replace(/\.render$/, ".should-render");
|
|
194311
194463
|
}
|
|
194312
|
-
function convertApiVersionToSemver(apiVersion) {
|
|
194313
|
-
let [year, month] = apiVersion.split("-");
|
|
194314
|
-
if (!year || !month)
|
|
194315
|
-
throw new AbortError("Invalid API version format. Expected format: YYYY-MM");
|
|
194316
|
-
return `${year}.${month}.0`;
|
|
194317
|
-
}
|
|
194318
|
-
function getSharedTypeDefinition(fullPath, typeFilePath, target, apiVersion) {
|
|
194319
|
-
try {
|
|
194320
|
-
return require2.resolve(`@shopify/ui-extensions/${target}`, { paths: [fullPath, typeFilePath] }), `//@ts-ignore
|
|
194321
|
-
declare module './${relativizePath(fullPath, dirname(typeFilePath))}' {
|
|
194322
|
-
const shopify: import('@shopify/ui-extensions/${target}').Api;
|
|
194323
|
-
const globalThis: { shopify: typeof shopify };
|
|
194324
|
-
}
|
|
194325
|
-
`;
|
|
194326
|
-
} catch {
|
|
194327
|
-
throw new AbortError(`Type reference for ${target} could not be found. You might be using the wrong @shopify/ui-extensions version.`, `Fix the error by ensuring you have the correct version of @shopify/ui-extensions, for example ${convertApiVersionToSemver(apiVersion)}, in your dependencies.`);
|
|
194328
|
-
}
|
|
194329
|
-
}
|
|
194330
|
-
async function findNearestTsConfigDir(fromFile, extensionDirectory) {
|
|
194331
|
-
let fromDirectory = dirname(fromFile), tsconfigPath = await findPathUp("tsconfig.json", { cwd: fromDirectory, type: "file", stopAt: extensionDirectory });
|
|
194332
|
-
if (tsconfigPath)
|
|
194333
|
-
return dirname(tsconfigPath);
|
|
194334
|
-
}
|
|
194335
194464
|
var ui_extension_default = uiExtensionSpec;
|
|
194336
194465
|
|
|
194337
194466
|
// ../app/dist/cli/models/extensions/specifications/web_pixel_extension.js
|
|
@@ -201723,7 +201852,7 @@ init_cjs_shims();
|
|
|
201723
201852
|
init_cjs_shims();
|
|
201724
201853
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
201725
201854
|
async function launchCLI(options) {
|
|
201726
|
-
let { errorHandler: errorHandler2 } = await import("./error-handler-
|
|
201855
|
+
let { errorHandler: errorHandler2 } = await import("./error-handler-VKKBCHLU.js"), { isDevelopment: isDevelopment2 } = await import("./local-5PM6BSWX.js"), oclif = await import("./lib-XDPPS4KW.js"), { ShopifyConfig } = await import("./custom-oclif-loader-IOC6N3VF.js");
|
|
201727
201856
|
isDevelopment2() && (oclif.default.settings.debug = !0);
|
|
201728
201857
|
try {
|
|
201729
201858
|
let config2 = new ShopifyConfig({ root: fileURLToPath2(options.moduleURL) });
|
|
@@ -201738,7 +201867,7 @@ var import_core3 = __toESM(require_lib2());
|
|
|
201738
201867
|
async function exitIfOldNodeVersion(versions2 = process.versions) {
|
|
201739
201868
|
let nodeVersion = versions2.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
201740
201869
|
if (nodeMajorVersion < 18) {
|
|
201741
|
-
let { renderError: renderError2 } = await import("./ui-
|
|
201870
|
+
let { renderError: renderError2 } = await import("./ui-KJW4VIFW.js");
|
|
201742
201871
|
renderError2({
|
|
201743
201872
|
headline: "Upgrade to a supported Node version now.",
|
|
201744
201873
|
body: [
|
|
@@ -201765,7 +201894,7 @@ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env
|
|
|
201765
201894
|
return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await exitIfOldNodeVersion(versions2), launchCLI2({ moduleURL: options.moduleURL });
|
|
201766
201895
|
}
|
|
201767
201896
|
async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
|
|
201768
|
-
let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-
|
|
201897
|
+
let { findUpAndReadPackageJson: findUpAndReadPackageJson2 } = await import("./node-package-manager-QIW4IYTW.js"), { moduleDirectory: moduleDirectory2 } = await import("./path-COZT77T2.js"), name = (await findUpAndReadPackageJson2(moduleDirectory2(options.moduleURL))).content.name.replace("@shopify/create-", "");
|
|
201769
201898
|
if (argv.findIndex((arg) => arg.includes("init")) === -1) {
|
|
201770
201899
|
let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
|
|
201771
201900
|
argv.splice(initIndex2, 0, "init");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_lib
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2VQSCETZ.js";
|
|
4
4
|
import "./chunk-UMUTXITN.js";
|
|
5
5
|
import "./chunk-LABBARNJ.js";
|
|
6
6
|
import "./chunk-G2ZZKGSV.js";
|
|
7
7
|
import "./chunk-PKR7KJ6P.js";
|
|
8
8
|
export default require_lib();
|
|
9
|
-
//# sourceMappingURL=lib-
|
|
9
|
+
//# sourceMappingURL=lib-XDPPS4KW.js.map
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
macAddress,
|
|
21
21
|
opentelemetryDomain,
|
|
22
22
|
themeToken
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-5P4X6AIQ.js";
|
|
24
|
+
import "./chunk-2VQSCETZ.js";
|
|
25
25
|
import "./chunk-UMUTXITN.js";
|
|
26
26
|
import "./chunk-Y2JP6WFP.js";
|
|
27
27
|
import "./chunk-75LV6AQS.js";
|
|
@@ -51,4 +51,4 @@ export {
|
|
|
51
51
|
opentelemetryDomain,
|
|
52
52
|
themeToken
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=local-
|
|
54
|
+
//# sourceMappingURL=local-5PM6BSWX.js.map
|
|
@@ -29,9 +29,9 @@ import {
|
|
|
29
29
|
versionSatisfies,
|
|
30
30
|
writePackageJSON,
|
|
31
31
|
yarnLockfile
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-Y6H4NQNN.js";
|
|
33
|
+
import "./chunk-5P4X6AIQ.js";
|
|
34
|
+
import "./chunk-2VQSCETZ.js";
|
|
35
35
|
import "./chunk-UMUTXITN.js";
|
|
36
36
|
import "./chunk-Y2JP6WFP.js";
|
|
37
37
|
import "./chunk-75LV6AQS.js";
|
|
@@ -70,4 +70,4 @@ export {
|
|
|
70
70
|
writePackageJSON,
|
|
71
71
|
yarnLockfile
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=node-package-manager-
|
|
73
|
+
//# sourceMappingURL=node-package-manager-QIW4IYTW.js.map
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
renderTasks,
|
|
18
18
|
renderTextPrompt,
|
|
19
19
|
renderWarning
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-5P4X6AIQ.js";
|
|
21
|
+
import "./chunk-2VQSCETZ.js";
|
|
22
22
|
import "./chunk-UMUTXITN.js";
|
|
23
23
|
import "./chunk-Y2JP6WFP.js";
|
|
24
24
|
import "./chunk-75LV6AQS.js";
|
|
@@ -45,4 +45,4 @@ export {
|
|
|
45
45
|
renderTextPrompt,
|
|
46
46
|
renderWarning
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=ui-
|
|
48
|
+
//# sourceMappingURL=ui-KJW4VIFW.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.85.
|
|
3
|
+
"version": "3.85.2",
|
|
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.85.
|
|
51
|
-
"@shopify/app": "3.85.
|
|
50
|
+
"@shopify/cli-kit": "3.85.2",
|
|
51
|
+
"@shopify/app": "3.85.2",
|
|
52
52
|
"esbuild-plugin-copy": "^2.1.1",
|
|
53
53
|
"@vitest/coverage-istanbul": "^3.1.4"
|
|
54
54
|
},
|