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.
When creating a new project using a template, the current Vs Project name to
package.jsonpackage name mapping inNodejsPackageParametersExtension.csdoes not always generate valid package names: https://docs.npmjs.com/files/package.json#nameThe 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.