Azure / Azure/static-web-apps-cli

swa init --yes should consider yarn.lock

Abierto
#657 1 comentario 2 reacciones 1 asignado Reclamado por @Reshmi-Sriram Ver en GitHub
command: init type: enhancement
Lenguaje dominante
TypeScript
Estrellas
668
Forks
156
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Are you accessing the CLI from the default port `:4280` ?**

- [x] Yes, I am accessing the CLI from port `:4280`

**Describe the bug**
If `yarn.lock` exists, `swa init --yes` should use `yarn` instead of `npm`

**To Reproduce**
```bash
yarn create next-app # accept all defaults
cd my-app
swa init -y
cat .\swa-cli.config.json
{
"$schema": "https://aka.ms/azure/static-web-apps-cli/schema",
"configurations": {
"my-app": {
"appLocation": ".",
"outputLocation": ".next",
"appBuildCommand": "npm run build",
"run": "npm run dev",
"appDevserverUrl": "http://localhost:3000"
}
}
}
```

**Expected behavior**
```bash
cat .\swa-cli.config.json
{
"$schema": "https://aka.ms/azure/static-web-apps-cli/schema",
"configurations": {
"my-app": {
"appLocation": ".",
"outputLocation": ".next",
"appBuildCommand": "yarn build",
"run": "yarn dev",
"appDevserverUrl": "http://localhost:3000"
}
}
}
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.