Azure / Azure/static-web-apps-cli

swa init --yes should consider yarn.lock

オープン
#657 コメント 1 件 リアクション 2 件 担当者 1 名 @Reshmi-Sriram が担当を希望しています GitHub で見る
command: init type: enhancement
主要言語
TypeScript
スター
668
フォーク
156
PR マージ指標
30日以内にマージされた PR はありません

説明

**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"
}
}
}
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。