@shopify/cli 3.83.1 → 3.83.3
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/assets/hydrogen/starter/.cursor/rules/hydrogen-react-router.mdc +52 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +35 -0
- package/dist/assets/hydrogen/starter/app/components/AddToCartButton.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Footer.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/Header.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductItem.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +1 -6
- package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/entry.client.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/entry.server.tsx +9 -4
- package/dist/assets/hydrogen/starter/app/lib/variants.ts +1 -1
- package/dist/assets/hydrogen/starter/app/root.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +4 -4
- package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +1 -7
- package/dist/assets/hydrogen/starter/app/routes/account.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +14 -0
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +7 -2
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes.ts +2 -2
- package/dist/assets/hydrogen/starter/env.d.ts +12 -2
- package/dist/assets/hydrogen/starter/eslint.config.js +2 -0
- package/dist/assets/hydrogen/starter/package.json +11 -12
- package/dist/assets/hydrogen/starter/react-router.config.ts +7 -0
- package/dist/assets/hydrogen/starter/server.ts +2 -5
- package/dist/assets/hydrogen/starter/tsconfig.json +18 -6
- package/dist/assets/hydrogen/starter/vite.config.ts +3 -24
- package/dist/assets/hydrogen/tailwind/package.json +4 -1
- package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/layout.jsx +1 -7
- package/dist/assets/hydrogen/virtual-routes/routes/index.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/routes/subrequest-profiler.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/virtual-root-with-layout.jsx +1 -1
- package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +1 -1
- package/dist/assets/hydrogen/vite/vite.config.js +1 -1
- package/dist/{chunk-SJYNVNUB.js → chunk-2MEZBZGZ.js} +2 -2
- package/dist/{chunk-TLYRIQK7.js → chunk-3EURRQ7K.js} +6 -6
- package/dist/{chunk-7KLV4YSY.js → chunk-45OTXKBK.js} +2 -2
- package/dist/{chunk-XI6AXLZO.js → chunk-6QJUUGM2.js} +4 -4
- package/dist/{chunk-RDAZS4FZ.js → chunk-AQDVU7OK.js} +7 -7
- package/dist/{chunk-DVGCJLCA.js → chunk-BXBJI6XD.js} +6 -6
- package/dist/{chunk-5BJYF6FG.js → chunk-CC4H7OAW.js} +3 -3
- package/dist/{chunk-DFABOPSU.js → chunk-DRATBB26.js} +4 -4
- package/dist/{chunk-DDU22ZPL.js → chunk-EG4X7G4K.js} +3 -3
- package/dist/{chunk-Y2JP6WFP.js → chunk-EG6MBBEN.js} +2 -2
- package/dist/{chunk-FNYLJESL.js → chunk-EYZZIYQJ.js} +4 -4
- package/dist/{chunk-ARXCCKJT.js → chunk-FE35FSRC.js} +8 -8
- package/dist/{chunk-TB443RFG.js → chunk-FHOKC4TU.js} +5 -5
- package/dist/{chunk-A6DFWCO7.js → chunk-GGCRQOED.js} +4 -4
- package/dist/{chunk-4BPSIIGV.js → chunk-HFQX4JZY.js} +3 -3
- package/dist/{chunk-7EV36FNO.js → chunk-JEQ7HZCS.js} +306 -474
- package/dist/{chunk-ZQMRVJXG.js → chunk-JWJ2ZR5V.js} +3 -3
- package/dist/{chunk-UZIJLLPI.js → chunk-MGI52UZC.js} +3 -3
- package/dist/{chunk-XOIMWH77.js → chunk-Q6VEUT5Q.js} +2 -2
- package/dist/{chunk-FEMALH67.js → chunk-RBL7EMA5.js} +4 -4
- package/dist/{chunk-57SXE5DE.js → chunk-S5JEIN5Q.js} +2 -2
- package/dist/{chunk-ASWHWSRF.js → chunk-SBU6S5G7.js} +2 -2
- package/dist/{chunk-K5GF4S7D.js → chunk-U7OT774M.js} +2 -2
- package/dist/{chunk-KPFBSWRK.js → chunk-UNQM4BV5.js} +3 -3
- package/dist/{chunk-2ZA3MHM5.js → chunk-VCN6UBNT.js} +3 -3
- package/dist/{chunk-5QFLNCVR.js → chunk-VQ6DWYP7.js} +6 -6
- package/dist/{chunk-KSLA767C.js → chunk-VRECY72K.js} +2 -2
- package/dist/{chunk-QNMWKLS4.js → chunk-WGMFODN6.js} +3 -3
- package/dist/{chunk-BZFP2O66.js → chunk-WHCXZSKH.js} +4 -4
- package/dist/{chunk-JEW6HZHJ.js → chunk-WROAVXGY.js} +3 -3
- package/dist/{chunk-SUA462JY.js → chunk-XFK3CKIN.js} +5 -5
- package/dist/{chunk-XVZQHSFP.js → chunk-YYAMP36W.js} +5 -5
- package/dist/{chunk-NJN55E4K.js → chunk-ZE4NKLTB.js} +4 -4
- package/dist/{chunk-PPDGMVCL.js → chunk-ZLYK26OR.js} +4 -4
- package/dist/{chunk-BZBO3V3A.js → chunk-ZZGNTCPD.js} +3 -3
- package/dist/cli/commands/auth/logout.js +12 -12
- package/dist/cli/commands/auth/logout.test.js +13 -13
- package/dist/cli/commands/cache/clear.js +11 -11
- package/dist/cli/commands/debug/command-flags.js +11 -11
- package/dist/cli/commands/docs/generate.js +11 -11
- package/dist/cli/commands/docs/generate.test.js +11 -11
- package/dist/cli/commands/help.js +11 -11
- package/dist/cli/commands/kitchen-sink/async.js +12 -12
- package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.js +14 -14
- package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/prompts.js +12 -12
- package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
- package/dist/cli/commands/notifications/generate.js +12 -12
- package/dist/cli/commands/notifications/list.js +12 -12
- package/dist/cli/commands/search.js +12 -12
- package/dist/cli/commands/upgrade.js +12 -12
- package/dist/cli/commands/version.js +12 -12
- package/dist/cli/commands/version.test.js +12 -12
- package/dist/cli/services/commands/notifications.js +7 -7
- package/dist/cli/services/commands/search.js +3 -3
- package/dist/cli/services/commands/search.test.js +3 -3
- package/dist/cli/services/commands/version.js +4 -4
- package/dist/cli/services/commands/version.test.js +5 -5
- package/dist/cli/services/kitchen-sink/async.js +3 -3
- package/dist/cli/services/kitchen-sink/prompts.js +3 -3
- package/dist/cli/services/kitchen-sink/static.js +3 -3
- package/dist/cli/services/upgrade.js +4 -4
- package/dist/cli/services/upgrade.test.js +5 -5
- package/dist/{custom-oclif-loader-XASCYJ7O.js → custom-oclif-loader-FOBJVOKU.js} +3 -3
- package/dist/{error-handler-HQBVO3GI.js → error-handler-VBQPBASZ.js} +9 -9
- package/dist/hooks/postrun.js +7 -7
- package/dist/hooks/prerun.js +8 -8
- package/dist/index.js +826 -1144
- package/dist/{local-PI2REOYY.js → local-3V2H6DEQ.js} +3 -3
- package/dist/{morph-5LWJDWYB.js → morph-TYIH255V.js} +9 -9
- package/dist/{node-package-manager-RVDETLBX.js → node-package-manager-3VOZDWRH.js} +4 -4
- package/dist/{path-COZT77T2.js → path-GB4VIEM6.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-RDFVKEJS.js → ui-MKD65UA4.js} +3 -3
- package/dist/{workerd-XLT4ZWI5.js → workerd-EQ7HXYPK.js} +14 -14
- package/oclif.manifest.json +3 -23
- package/package.json +8 -8
- package/dist/assets/hydrogen/starter/.cursor/rules/cookbook-recipe-subscriptions.mdc +0 -921
- package/dist/chunk-V67D4V7T.js +0 -107
- package/dist/node-NAYZANSZ.js +0 -162
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"include": [
|
|
2
|
+
"include": [
|
|
3
|
+
"./**/*.d.ts",
|
|
4
|
+
"./**/*.ts",
|
|
5
|
+
"./**/*.tsx",
|
|
6
|
+
".react-router/types/**/*"
|
|
7
|
+
],
|
|
3
8
|
"compilerOptions": {
|
|
4
|
-
"lib": [
|
|
9
|
+
"lib": [
|
|
10
|
+
"DOM",
|
|
11
|
+
"DOM.Iterable",
|
|
12
|
+
"ES2022"
|
|
13
|
+
],
|
|
5
14
|
"isolatedModules": true,
|
|
6
15
|
"esModuleInterop": true,
|
|
7
16
|
"jsx": "react-jsx",
|
|
@@ -16,12 +25,15 @@
|
|
|
16
25
|
"baseUrl": ".",
|
|
17
26
|
"types": [
|
|
18
27
|
"@shopify/oxygen-workers-types",
|
|
19
|
-
"
|
|
28
|
+
"react-router",
|
|
20
29
|
"vite/client"
|
|
21
30
|
],
|
|
22
31
|
"paths": {
|
|
23
|
-
"~/*": [
|
|
32
|
+
"~/*": [
|
|
33
|
+
"app/*"
|
|
34
|
+
]
|
|
24
35
|
},
|
|
25
|
-
"noEmit": true
|
|
36
|
+
"noEmit": true,
|
|
37
|
+
"rootDirs": [".", "./.react-router/types"]
|
|
26
38
|
}
|
|
27
|
-
}
|
|
39
|
+
}
|
|
@@ -1,32 +1,11 @@
|
|
|
1
1
|
import {defineConfig} from 'vite';
|
|
2
2
|
import {hydrogen} from '@shopify/hydrogen/vite';
|
|
3
3
|
import {oxygen} from '@shopify/mini-oxygen/vite';
|
|
4
|
-
import {
|
|
4
|
+
import {reactRouter} from '@react-router/dev/vite';
|
|
5
5
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
6
6
|
|
|
7
|
-
declare module "@remix-run/server-runtime" {
|
|
8
|
-
interface Future {
|
|
9
|
-
v3_singleFetch: true;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
7
|
export default defineConfig({
|
|
14
|
-
plugins: [
|
|
15
|
-
hydrogen(),
|
|
16
|
-
oxygen(),
|
|
17
|
-
remix({
|
|
18
|
-
presets: [hydrogen.v3preset()],
|
|
19
|
-
future: {
|
|
20
|
-
v3_fetcherPersist: true,
|
|
21
|
-
v3_relativeSplatPath: true,
|
|
22
|
-
v3_throwAbortReason: true,
|
|
23
|
-
v3_lazyRouteDiscovery: true,
|
|
24
|
-
v3_routeConfig: true,
|
|
25
|
-
v3_singleFetch: true,
|
|
26
|
-
},
|
|
27
|
-
}),
|
|
28
|
-
tsconfigPaths(),
|
|
29
|
-
],
|
|
8
|
+
plugins: [hydrogen(), oxygen(), reactRouter(), tsconfigPaths()],
|
|
30
9
|
build: {
|
|
31
10
|
// Allow a strict Content-Security-Policy
|
|
32
11
|
// withtout inlining assets as base64:
|
|
@@ -44,7 +23,7 @@ export default defineConfig({
|
|
|
44
23
|
* Include 'example-dep' in the array below.
|
|
45
24
|
* @see https://vitejs.dev/config/dep-optimization-options
|
|
46
25
|
*/
|
|
47
|
-
include: [],
|
|
26
|
+
include: ['set-cookie-parser', 'cookie', 'react-router'],
|
|
48
27
|
},
|
|
49
28
|
},
|
|
50
29
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef } from "react";
|
|
3
|
-
import { Link } from "
|
|
3
|
+
import { Link } from "react-router";
|
|
4
4
|
import { IconClose } from "./IconClose.jsx";
|
|
5
5
|
import _useResizeObserver from "use-resize-observer";
|
|
6
6
|
const useResizeObserver = _useResizeObserver;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useNonce } from "@shopify/hydrogen";
|
|
3
|
-
import {
|
|
4
|
-
Links,
|
|
5
|
-
Meta,
|
|
6
|
-
Outlet,
|
|
7
|
-
Scripts,
|
|
8
|
-
ScrollRestoration
|
|
9
|
-
} from "@remix-run/react";
|
|
3
|
+
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router";
|
|
10
4
|
import { Layout as VirtualLayout } from "./components/Layout.jsx";
|
|
11
5
|
import styles from "./assets/styles.css?url";
|
|
12
6
|
function Layout() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useLoaderData } from "
|
|
2
|
+
import { useLoaderData } from "react-router";
|
|
3
3
|
import { HydrogenLogoBaseBW } from "../components/HydrogenLogoBaseBW.jsx";
|
|
4
4
|
import { HydrogenLogoBaseColor } from "../components/HydrogenLogoBaseColor.jsx";
|
|
5
5
|
import { IconGithub } from "../components/IconGithub.jsx";
|
|
@@ -3,7 +3,7 @@ import { useEffect, useState } from "react";
|
|
|
3
3
|
import { Script } from "@shopify/hydrogen";
|
|
4
4
|
import { RequestWaterfall } from "../components/RequestWaterfall.jsx";
|
|
5
5
|
import { RequestTable } from "../components/RequestTable.jsx";
|
|
6
|
-
import { Link } from "
|
|
6
|
+
import { Link } from "react-router";
|
|
7
7
|
import favicon from "../assets/favicon.svg";
|
|
8
8
|
import faviconDark from "../assets/favicon-dark.svg";
|
|
9
9
|
import { useDebugNetworkServer } from "../lib/useDebugNetworkServer.jsx";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ScrollRestoration,
|
|
8
8
|
isRouteErrorResponse,
|
|
9
9
|
useRouteError
|
|
10
|
-
} from "
|
|
10
|
+
} from "react-router";
|
|
11
11
|
import favicon from "./assets/favicon.svg";
|
|
12
12
|
import { Layout as VirtualLayout } from "./components/Layout.jsx";
|
|
13
13
|
import { useNonce } from "@shopify/hydrogen";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ScrollRestoration,
|
|
8
8
|
isRouteErrorResponse,
|
|
9
9
|
useRouteError
|
|
10
|
-
} from "
|
|
10
|
+
} from "react-router";
|
|
11
11
|
import favicon from "./assets/favicon.svg";
|
|
12
12
|
import { Layout as VirtualLayout } from "./components/Layout.jsx";
|
|
13
13
|
import { useNonce } from "@shopify/hydrogen";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BXBJI6XD.js";
|
|
4
4
|
import {
|
|
5
5
|
require_lib
|
|
6
6
|
} from "./chunk-3FBDJEGD.js";
|
|
@@ -46,4 +46,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
|
|
|
46
46
|
export {
|
|
47
47
|
HelpCommand
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-2MEZBZGZ.js.map
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
getEnvironmentData,
|
|
3
3
|
getLastSeenUserIdAfterAuth,
|
|
4
4
|
getSensitiveEnvironmentData
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FHOKC4TU.js";
|
|
6
6
|
import {
|
|
7
7
|
fetch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DRATBB26.js";
|
|
9
9
|
import {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-S5JEIN5Q.js";
|
|
12
12
|
import {
|
|
13
13
|
runWithRateLimit
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WHCXZSKH.js";
|
|
15
15
|
import {
|
|
16
16
|
alwaysLogAnalytics,
|
|
17
17
|
alwaysLogMetrics,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
outputDebug,
|
|
29
29
|
outputToken,
|
|
30
30
|
reportingRateLimit
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-UNQM4BV5.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__esm,
|
|
@@ -15930,4 +15930,4 @@ export {
|
|
|
15930
15930
|
requestIdsCollection,
|
|
15931
15931
|
reportAnalyticsEvent
|
|
15932
15932
|
};
|
|
15933
|
-
//# sourceMappingURL=chunk-
|
|
15933
|
+
//# sourceMappingURL=chunk-3EURRQ7K.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
renderSuccess,
|
|
8
8
|
renderTable,
|
|
9
9
|
renderWarning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UNQM4BV5.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -203,4 +203,4 @@ async function staticService() {
|
|
|
203
203
|
export {
|
|
204
204
|
staticService
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
206
|
+
//# sourceMappingURL=chunk-45OTXKBK.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cliInstallCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WROAVXGY.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BXBJI6XD.js";
|
|
7
7
|
import {
|
|
8
8
|
renderInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UNQM4BV5.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -34,4 +34,4 @@ var Upgrade = class extends base_command_default {
|
|
|
34
34
|
export {
|
|
35
35
|
Upgrade
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-6QJUUGM2.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BXBJI6XD.js";
|
|
4
4
|
import {
|
|
5
5
|
cacheClear
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WHCXZSKH.js";
|
|
7
7
|
import {
|
|
8
8
|
environmentVariables,
|
|
9
9
|
isTruthy
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UNQM4BV5.js";
|
|
11
11
|
import {
|
|
12
12
|
require_lib
|
|
13
13
|
} from "./chunk-3FBDJEGD.js";
|
|
@@ -26,7 +26,7 @@ init_cjs_shims();
|
|
|
26
26
|
init_cjs_shims();
|
|
27
27
|
import { fileURLToPath } from "node:url";
|
|
28
28
|
async function launchCLI(options) {
|
|
29
|
-
let { errorHandler } = await import("./error-handler-
|
|
29
|
+
let { errorHandler } = await import("./error-handler-VBQPBASZ.js"), { isDevelopment } = await import("./local-3V2H6DEQ.js"), oclif = await import("./lib-OSXFX3I2.js"), { ShopifyConfig } = await import("./custom-oclif-loader-FOBJVOKU.js");
|
|
30
30
|
isDevelopment() && (oclif.default.settings.debug = !0);
|
|
31
31
|
try {
|
|
32
32
|
let config = new ShopifyConfig({ root: fileURLToPath(options.moduleURL) });
|
|
@@ -41,7 +41,7 @@ var import_core = __toESM(require_lib());
|
|
|
41
41
|
async function exitIfOldNodeVersion(versions = process.versions) {
|
|
42
42
|
let nodeVersion = versions.node, nodeMajorVersion = Number(nodeVersion.split(".")[0]);
|
|
43
43
|
if (nodeMajorVersion < 18) {
|
|
44
|
-
let { renderError } = await import("./ui-
|
|
44
|
+
let { renderError } = await import("./ui-MKD65UA4.js");
|
|
45
45
|
renderError({
|
|
46
46
|
headline: "Upgrade to a supported Node version now.",
|
|
47
47
|
body: [
|
|
@@ -68,7 +68,7 @@ async function runCLI(options, launchCLI2 = launchCLI, argv = process.argv, env
|
|
|
68
68
|
return setupEnvironmentVariables(options, argv, env), options.runInCreateMode && await addInitToArgvWhenRunningCreateCLI(options, argv), forceNoColor(argv, env), await exitIfOldNodeVersion(versions), launchCLI2({ moduleURL: options.moduleURL });
|
|
69
69
|
}
|
|
70
70
|
async function addInitToArgvWhenRunningCreateCLI(options, argv = process.argv) {
|
|
71
|
-
let { findUpAndReadPackageJson } = await import("./node-package-manager-
|
|
71
|
+
let { findUpAndReadPackageJson } = await import("./node-package-manager-3VOZDWRH.js"), { moduleDirectory } = await import("./path-GB4VIEM6.js"), name = (await findUpAndReadPackageJson(moduleDirectory(options.moduleURL))).content.name.replace("@shopify/create-", "");
|
|
72
72
|
if (argv.findIndex((arg) => arg.includes("init")) === -1) {
|
|
73
73
|
let initIndex2 = argv.findIndex((arg) => arg.match(new RegExp(`bin(\\/|\\\\)+(create-${name}|dev|run)`))) + 1;
|
|
74
74
|
argv.splice(initIndex2, 0, "init");
|
|
@@ -117,4 +117,4 @@ export {
|
|
|
117
117
|
jsonFlag,
|
|
118
118
|
ClearCache
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
120
|
+
//# sourceMappingURL=chunk-AQDVU7OK.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandler,
|
|
3
3
|
registerCleanBugsnagErrorsFromWithinPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FE35FSRC.js";
|
|
5
5
|
import {
|
|
6
6
|
setCurrentCommandId,
|
|
7
7
|
showNotificationsIfNeeded
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VQ6DWYP7.js";
|
|
9
9
|
import {
|
|
10
10
|
hashString
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DRATBB26.js";
|
|
12
12
|
import {
|
|
13
13
|
AbortError,
|
|
14
14
|
addPublicMetadata,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
renderWarning,
|
|
25
25
|
terminalSupportsPrompting,
|
|
26
26
|
underscore
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UNQM4BV5.js";
|
|
28
28
|
import {
|
|
29
29
|
cwd
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EG6MBBEN.js";
|
|
31
31
|
import {
|
|
32
32
|
require_lib
|
|
33
33
|
} from "./chunk-3FBDJEGD.js";
|
|
@@ -1691,4 +1691,4 @@ export {
|
|
|
1691
1691
|
loadEnvironment,
|
|
1692
1692
|
base_command_default
|
|
1693
1693
|
};
|
|
1694
|
-
//# sourceMappingURL=chunk-
|
|
1694
|
+
//# sourceMappingURL=chunk-BXBJI6XD.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BXBJI6XD.js";
|
|
4
4
|
import {
|
|
5
5
|
outputResult,
|
|
6
6
|
renderTable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UNQM4BV5.js";
|
|
8
8
|
import {
|
|
9
9
|
require_lib
|
|
10
10
|
} from "./chunk-3FBDJEGD.js";
|
|
@@ -84,4 +84,4 @@ var import_core = __toESM(require_lib(), 1), CommandFlags = class _CommandFlags
|
|
|
84
84
|
export {
|
|
85
85
|
CommandFlags
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=chunk-
|
|
87
|
+
//# sourceMappingURL=chunk-CC4H7OAW.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-25IMI7TH.js";
|
|
6
6
|
import {
|
|
7
7
|
CLI_KIT_VERSION
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S5JEIN5Q.js";
|
|
9
9
|
import {
|
|
10
10
|
Environment,
|
|
11
11
|
environmentVariables,
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
serviceEnvironment,
|
|
19
19
|
sleep,
|
|
20
20
|
systemEnvironmentVariables
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UNQM4BV5.js";
|
|
22
22
|
import {
|
|
23
23
|
sniffForJson
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EG6MBBEN.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
@@ -31449,4 +31449,4 @@ mime-types/index.js:
|
|
|
31449
31449
|
* MIT Licensed
|
|
31450
31450
|
*)
|
|
31451
31451
|
*/
|
|
31452
|
-
//# sourceMappingURL=chunk-
|
|
31452
|
+
//# sourceMappingURL=chunk-DRATBB26.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asyncTasks
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SBU6S5G7.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BXBJI6XD.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ var KitchenSinkAsync = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
KitchenSinkAsync
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-EG4X7G4K.js.map
|
|
@@ -30,7 +30,7 @@ var require_commondir = __commonJS({
|
|
|
30
30
|
|
|
31
31
|
// ../cli-kit/dist/public/node/path.js
|
|
32
32
|
init_cjs_shims();
|
|
33
|
-
var import_commondir = __toESM(require_commondir()
|
|
33
|
+
var import_commondir = __toESM(require_commondir());
|
|
34
34
|
|
|
35
35
|
// ../../node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/index.mjs
|
|
36
36
|
init_cjs_shims();
|
|
@@ -193,4 +193,4 @@ export {
|
|
|
193
193
|
sniffForPath,
|
|
194
194
|
sniffForJson
|
|
195
195
|
};
|
|
196
|
-
//# sourceMappingURL=chunk-
|
|
196
|
+
//# sourceMappingURL=chunk-EG6MBBEN.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logout
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RBL7EMA5.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BXBJI6XD.js";
|
|
7
7
|
import {
|
|
8
8
|
outputSuccess
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UNQM4BV5.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -25,4 +25,4 @@ var Logout = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
Logout
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-EYZZIYQJ.js.map
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
fanoutHooks,
|
|
6
6
|
reportAnalyticsEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3EURRQ7K.js";
|
|
8
8
|
import {
|
|
9
9
|
getEnvironmentData
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FHOKC4TU.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_KIT_VERSION
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-S5JEIN5Q.js";
|
|
14
14
|
import {
|
|
15
15
|
runWithRateLimit
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WHCXZSKH.js";
|
|
17
17
|
import {
|
|
18
18
|
AbortSilentError,
|
|
19
19
|
CancelExecution,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
reportingRateLimit,
|
|
29
29
|
require_stacktracey,
|
|
30
30
|
shouldReportErrorAsUnexpected
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-UNQM4BV5.js";
|
|
32
32
|
import {
|
|
33
33
|
cwd,
|
|
34
34
|
isAbsolutePath,
|
|
35
35
|
joinPath,
|
|
36
36
|
normalizePath,
|
|
37
37
|
relativePath
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-EG6MBBEN.js";
|
|
39
39
|
import {
|
|
40
40
|
require_lib
|
|
41
41
|
} from "./chunk-3FBDJEGD.js";
|
|
@@ -2034,7 +2034,7 @@ var require_notifier = __commonJS({
|
|
|
2034
2034
|
|
|
2035
2035
|
// ../cli-kit/dist/public/node/error-handler.js
|
|
2036
2036
|
init_cjs_shims();
|
|
2037
|
-
var import_core = __toESM(require_lib()
|
|
2037
|
+
var import_core = __toESM(require_lib()), import_stacktracey = __toESM(require_stacktracey()), import_js = __toESM(require_notifier());
|
|
2038
2038
|
import { realpath } from "fs/promises";
|
|
2039
2039
|
async function errorHandler(error, config) {
|
|
2040
2040
|
if (error instanceof CancelExecution)
|
|
@@ -2149,4 +2149,4 @@ export {
|
|
|
2149
2149
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
2150
2150
|
addBugsnagMetadata
|
|
2151
2151
|
};
|
|
2152
|
-
//# sourceMappingURL=chunk-
|
|
2152
|
+
//# sourceMappingURL=chunk-FE35FSRC.js.map
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
nonRandomUUID,
|
|
8
8
|
shopifyFetch,
|
|
9
9
|
z
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DRATBB26.js";
|
|
11
11
|
import {
|
|
12
12
|
getPackageManager,
|
|
13
13
|
getSession,
|
|
14
14
|
packageManagerFromUserAgent,
|
|
15
15
|
removeSession,
|
|
16
16
|
setSession
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WHCXZSKH.js";
|
|
18
18
|
import {
|
|
19
19
|
AbortError,
|
|
20
20
|
BugError,
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
sessionConstants,
|
|
46
46
|
spinFqdn,
|
|
47
47
|
themeToken
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-UNQM4BV5.js";
|
|
49
49
|
import {
|
|
50
50
|
cwd
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-EG6MBBEN.js";
|
|
52
52
|
import {
|
|
53
53
|
__commonJS,
|
|
54
54
|
__require,
|
|
@@ -1213,4 +1213,4 @@ export {
|
|
|
1213
1213
|
getEnvironmentData,
|
|
1214
1214
|
getSensitiveEnvironmentData
|
|
1215
1215
|
};
|
|
1216
|
-
//# sourceMappingURL=chunk-
|
|
1216
|
+
//# sourceMappingURL=chunk-FHOKC4TU.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BXBJI6XD.js";
|
|
4
4
|
import {
|
|
5
5
|
mkdir,
|
|
6
6
|
outputInfo,
|
|
7
7
|
rmdir,
|
|
8
8
|
writeFile
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UNQM4BV5.js";
|
|
10
10
|
import {
|
|
11
11
|
cwd,
|
|
12
12
|
joinPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EG6MBBEN.js";
|
|
14
14
|
import {
|
|
15
15
|
init_cjs_shims
|
|
16
16
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -118,4 +118,4 @@ export {
|
|
|
118
118
|
writeCommandFlagInterface,
|
|
119
119
|
writeCommandUsageExampleFile
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk-
|
|
121
|
+
//# sourceMappingURL=chunk-GGCRQOED.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
versionService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JWJ2ZR5V.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BXBJI6XD.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-PKR7KJ6P.js";
|
|
@@ -22,4 +22,4 @@ var Version = class extends base_command_default {
|
|
|
22
22
|
export {
|
|
23
23
|
Version
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-HFQX4JZY.js.map
|