Skip to content

Commit

Permalink
Support Hydrogen monorepo on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
frandiox committed Aug 9, 2024
1 parent 58507a3 commit 134c0a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli-kit/src/public/node/custom-oclif-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export class ShopifyConfig extends Config {
const currentPath = cwd()

let path = sniffForPath() ?? currentPath
const currentPathMightBeHydrogenMonorepo = currentPath.toLowerCase().includes('shopify/hydrogen')
// Hydrogen CI uses `hydrogen/hydrogen` path, while local dev uses `shopify/hydrogen`.
const currentPathMightBeHydrogenMonorepo = /(shopify|hydrogen)\/hydrogen/i.test(currentPath)
const ignoreHydrogenMonorepo = process.env.IGNORE_HYDROGEN_MONOREPO
if (currentPathMightBeHydrogenMonorepo && !ignoreHydrogenMonorepo) {
path = execaSync('npm', ['prefix']).stdout.trim()
Expand Down

0 comments on commit 134c0a7

Please sign in to comment.