From 115a1deb49b154dc18c5e406fd8fbd7ad412df97 Mon Sep 17 00:00:00 2001 From: Oli Juhl <59018053+olivermrbl@users.noreply.github.com> Date: Wed, 3 Sep 2025 14:07:24 +0200 Subject: [PATCH] chore: Fix scripts in CLI pipeline (#13402) * chore: Fix scripts in CLI pipeline * Create curly-lizards-dress.md --- .changeset/curly-lizards-dress.md | 5 +++++ .github/workflows/test-cli-with-database.yml | 10 +++++----- packages/cli/medusa-cli/src/util/clear-project.ts | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .changeset/curly-lizards-dress.md diff --git a/.changeset/curly-lizards-dress.md b/.changeset/curly-lizards-dress.md new file mode 100644 index 0000000000..a531d0186a --- /dev/null +++ b/.changeset/curly-lizards-dress.md @@ -0,0 +1,5 @@ +--- +"@medusajs/cli": patch +--- + +chore: Fix scripts in CLI pipeline diff --git a/.github/workflows/test-cli-with-database.yml b/.github/workflows/test-cli-with-database.yml index 3ef79e476d..176be0cbb0 100644 --- a/.github/workflows/test-cli-with-database.yml +++ b/.github/workflows/test-cli-with-database.yml @@ -59,7 +59,7 @@ jobs: - name: Create Medusa project working-directory: .. run: | - medusa new cli-test --skip-db --v2 --branch ci-custom + medusa new cli-test --skip-db --skip-migrations --v2 --branch ci-custom - name: Enable Corepack run: corepack enable @@ -71,22 +71,22 @@ jobs: working-directory: ../cli-test - name: Run migrations - run: yarn medusa db:migrate + run: npx medusa db:migrate working-directory: ../cli-test - name: Create admin user - run: yarn medusa user -e test@test.com -p password -i admin_123 + run: npx medusa user -e test@test.com -p password -i admin_123 working-directory: ../cli-test - name: Run development server - run: yarn medusa develop & + run: npx medusa develop & working-directory: ../cli-test - name: Testing development server uses: ./.github/actions/test-server - name: Starting medusa - run: yarn medusa start & + run: npx medusa start & working-directory: ../cli-test - name: Testing server diff --git a/packages/cli/medusa-cli/src/util/clear-project.ts b/packages/cli/medusa-cli/src/util/clear-project.ts index 391d20fc2a..8726593ad4 100644 --- a/packages/cli/medusa-cli/src/util/clear-project.ts +++ b/packages/cli/medusa-cli/src/util/clear-project.ts @@ -1,5 +1,5 @@ import fs from "fs" -import glob from "glob" +import { glob } from "glob" import path from "path" export function clearProject(directory: string) {