File tree Expand file tree Collapse file tree 7 files changed +10
-1
lines changed
Expand file tree Collapse file tree 7 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 5252 env :
5353 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5454 NPM_CONFIG_PROVENANCE : true
55+ SHOPIFY_CLI_BUILD_REPO : ${{ github.repository }}
Original file line number Diff line number Diff line change 4242 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
4343 NPM_CONFIG_PROVENANCE : true
4444 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+ SHOPIFY_CLI_BUILD_REPO : ${{ github.repository }}
Original file line number Diff line number Diff line change 4747 env :
4848 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4949 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
50+ SHOPIFY_CLI_BUILD_REPO : ${{ github.repository }}
Original file line number Diff line number Diff line change @@ -196,3 +196,5 @@ packages/ui-extensions-dev-console/.eslintrc.js
196196packages /ui-extensions-dev-console /css-transform.js
197197packages /ui-extensions-dev-console /dist
198198packages /cli-kit /src /cli /api /graphql /* /* _schema.graphql
199+
200+ .claude
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ interface EnvironmentData {
6565 env_is_global : boolean
6666 env_auth_method : string
6767 env_is_wsl : boolean
68+ env_build_repository : string
6869}
6970
7071export async function getEnvironmentData ( config : Interfaces . Config ) : Promise < EnvironmentData > {
@@ -89,6 +90,7 @@ export async function getEnvironmentData(config: Interfaces.Config): Promise<Env
8990 env_is_global : currentProcessIsGlobal ( ) ,
9091 env_auth_method : await getLastSeenAuthMethod ( ) ,
9192 env_is_wsl : await isWsl ( ) ,
93+ env_build_repository : process . env . SHOPIFY_CLI_BUILD_REPO ?? 'unknown' ,
9294 }
9395}
9496
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const url = 'https://monorail-edge.shopifysvc.com/v1/produce'
1010type Optional < T > = T | null
1111
1212// This is the topic name of the main event we log to Monorail, the command tracker
13- export const MONORAIL_COMMAND_TOPIC = 'app_cli3_command/1.17 '
13+ export const MONORAIL_COMMAND_TOPIC = 'app_cli3_command/1.18 '
1414
1515export interface Schemas {
1616 [ MONORAIL_COMMAND_TOPIC ] : {
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ esBuild({
4646 // Necessary for theme-check-node to work
4747 'process.env.WEBPACK_MODE' : 'true' ,
4848 'import.meta.vitest' : 'false' ,
49+ // Injected during build to detect fork vs original repo
50+ 'process.env.SHOPIFY_CLI_BUILD_REPO' : JSON . stringify ( process . env . SHOPIFY_CLI_BUILD_REPO || 'unknown' ) ,
4951 } ,
5052 inject : [ '../../bin/bundling/cjs-shims.js' ] ,
5153 external,
You can’t perform that action at this time.
0 commit comments