`ui5 init` generates ui5.yaml with a wrong type: `type: library` instead of `type: application`

未關閉
#551 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
42/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
javascript
領域
cli

研究方向

Start by reproducing the issue with a package.json containing "type": "module" and run ui5 init from the application root. Inspect the generated ui5.yaml and trace the ui5 init CLI entry point to find the type selection; done means the generated file contains type: application.

由索引模型根據 Issue 內容生成。

描述

module/ui5-cli

When I run ui5 init, it generates ui5.yaml with a wrong type: type: library instead of type: application, although in package.json it's written "type": "module".

Expected Behavior

ui5.yaml should contain type: application

Current Behavior

ui5.yaml contains type: library

Steps to Reproduce the Issue

  1. Install ui5-tooling globally
  2. Go in console to the root of the app, where package.json is located
  3. Run ui5 init
  4. I got type: library

Context

  • UI5 Module Version (output of ui5 --version when using the CLI): 2.12.1
  • Node.js Version: v17.0.0-v8-canary202108258414d1aed8
  • npm Version: 7.21.1
  • OS/Platform: Windows 10 21H1 x64
  • Browser (if relevant): not relevant
  • Other information regarding your environment (optional): nothing
{...}
主要語言
JavaScript
星號
510
分支
80
平均合併
2 天 22 小時
30 天內合併 PR
12

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

UI5/cli 的其他 Issue

查看 UI5/cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。