-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support local dev in CLI #5199
Support local dev in CLI #5199
Conversation
We detected some changes at packages/*/src and there are no updates in the .changeset. |
4cfc184
to
de3dd04
Compare
Coverage report
Show files with reduced coverage 🔻
Test suite run success2035 tests passing in 909 suites. Report generated by 🧪jest coverage report action from a86670a |
de3dd04
to
2fe0c6a
Compare
2fe0c6a
to
a86670a
Compare
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/private/node/constants.d.ts@@ -31,6 +31,7 @@ export declare const environmentVariables: {
otelURL: string;
themeKitAccessDomain: string;
json: string;
+ neverUsePartnersApi: string;
};
export declare const defaultThemeKitAccessDomain = "theme-kit-access.shopifyapps.com";
export declare const systemEnvironmentVariables: {
packages/cli-kit/dist/public/node/environment.d.ts@@ -49,4 +49,10 @@ export declare function getIdentityTokenInformation(): {
* @param environment - Process environment variables.
* @returns True if the JSON output is enabled, false otherwise.
*/
-export declare function jsonOutputEnabled(environment?: NodeJS.ProcessEnv): boolean;
\ No newline at end of file
+export declare function jsonOutputEnabled(environment?: NodeJS.ProcessEnv): boolean;
+/**
+ * If true, the CLI should not use the Partners API.
+ *
+ * @returns True if the SHOPIFY_CLI_NEVER_USE_PARTNERS_API environment variable is set.
+ */
+export declare function blockPartnersAccess(): boolean;
\ No newline at end of file
|
@@ -22,6 +23,9 @@ export const NotProvidedStoreFQDNError = new AbortError( | |||
* @returns Fully-qualified domain of the partners service we should interact with. | |||
*/ | |||
export async function partnersFqdn(): Promise<string> { | |||
if (blockPartnersAccess()) { | |||
throw new BugError('Partners API is blocked by the SHOPIFY_CLI_NEVER_USE_PARTNERS_API environment variable.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BugError because this shouldn't happen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Introduces
SHOPIFY_CLI_NEVER_USE_PARTNERS_API
which is used for internal to Shopify requirements.