Skip to content

Project Templates Generate Invalid package.json name #705

@mjbvz

Description

@mjbvz

When creating a new project using a template, the current Vs Project name to package.json package name mapping in NodejsPackageParametersExtension.cs does not always generate valid package names: https://docs.npmjs.com/files/package.json#name

The main issue is that package names should be all lowercase, but the current transform does not change the case. Other limits, such as the size, are less likely to be hit normally.

For the name casing, we can either just lowercase the name, or split camel cased names and insert hyphens between the sections. The latter is probably a better experience.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions