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

Ouverte
#551 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
42/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
javascript
Domaine
cli

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
{...}
Langage dominant
JavaScript
Étoiles
510
Forks
80
Merge moyen
2 j 22 h
PR mergées (30 j)
12

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de UI5/cli

Toutes les issues de UI5/cli

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.