Skip to content

Commit f68d0d6

Browse files
committed
naming
1 parent d9f1b21 commit f68d0d6

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/cli/create-medusa-app/src/utils/nextjs-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import execute from "./execute.js"
88
import { displayFactBox, FactBoxOptions } from "./facts.js"
99
import logMessage from "./log-message.js"
1010
import ProcessManager from "./process-manager.js"
11-
import { updatePackageVersion } from "./update-package-version.js"
11+
import { updatePackageVersions } from "./update-package-versions.js"
1212

1313
const NEXTJS_REPO = "https://github.com/medusajs/nextjs-starter-medusa"
1414
const NEXTJS_BRANCH = "main"
@@ -76,7 +76,7 @@ export async function installNextjsStarter({
7676

7777
if (version) {
7878
const packageJsonPath = path.join(nextjsDirectory, "package.json")
79-
updatePackageVersion(packageJsonPath, version, { applyChanges: true })
79+
updatePackageVersions(packageJsonPath, version, { applyChanges: true })
8080
}
8181

8282
const execOptions = {

packages/cli/create-medusa-app/src/utils/prepare-project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { displayFactBox, FactBoxOptions } from "./facts.js"
77
import ProcessManager from "./process-manager.js"
88
import type { Client } from "pg"
99
import PackageManager from "./package-manager.js"
10-
import { updatePackageVersion } from "./update-package-version.js"
10+
import { updatePackageVersions } from "./update-package-versions.js"
1111

1212
const ADMIN_EMAIL = "admin@medusa-test.com"
1313
let STORE_CORS = "http://localhost:8000"
@@ -164,7 +164,7 @@ async function prepareProject({
164164

165165
// Update medusa dependencies versions
166166
if (version) {
167-
updatePackageVersion(packageJson, version)
167+
updatePackageVersions(packageJson, version)
168168
}
169169

170170
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2))

packages/cli/create-medusa-app/src/utils/update-package-version.ts renamed to packages/cli/create-medusa-app/src/utils/update-package-versions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { readFileSync, writeFileSync } from "fs"
22

3-
export function updatePackageVersion(
3+
export function updatePackageVersions(
44
packageJsonOrPath: string | Record<string, any>,
55
version: string,
66
{ applyChanges = false }: { applyChanges?: boolean } = {}

0 commit comments

Comments
 (0)