fix(create-medusa-app): fix command for windows OS (#5061)
This commit is contained in:
5
.changeset/wise-parrots-occur.md
Normal file
5
.changeset/wise-parrots-occur.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"create-medusa-app": patch
|
||||
---
|
||||
|
||||
fix(create-medusa-app): fix command for windows OS
|
||||
@@ -2,10 +2,10 @@ import inquirer from "inquirer"
|
||||
import promiseExec from "./promise-exec.js"
|
||||
import { FactBoxOptions, displayFactBox } from "./facts.js"
|
||||
import fs from "fs"
|
||||
import path from "path"
|
||||
import { customAlphabet, nanoid } from "nanoid"
|
||||
import { isAbortError } from "./create-abort-controller.js"
|
||||
import logMessage from "./log-message.js"
|
||||
import { EOL } from "os"
|
||||
|
||||
const NEXTJS_REPO = "https://github.com/medusajs/nextjs-starter-medusa"
|
||||
|
||||
@@ -74,10 +74,10 @@ export async function installNextjsStarter({
|
||||
})
|
||||
}
|
||||
|
||||
await promiseExec(`mv .env.template .env.local`, {
|
||||
cwd: nextjsDirectory,
|
||||
signal: abortController?.signal,
|
||||
})
|
||||
fs.renameSync(
|
||||
path.join(nextjsDirectory, ".env.template"),
|
||||
path.join(nextjsDirectory, ".env.local")
|
||||
)
|
||||
|
||||
displayFactBox({
|
||||
...factBoxOptions,
|
||||
|
||||
Reference in New Issue
Block a user