@my/lib will resolve to {{projectName}} in scaffolded templates as it should, however {{projectName}} is also used in place of path/to/file. i.e. {{projectName}}/file, creating an additional folder where it is not needed in some templates. A new variable is required to resolve the correct path, regardless of scoped package or dasherized name.
When running
everything works as expected.
When running the same command with a scoped name
@my/lib will resolve to {{projectName}} in scaffolded templates as it should, however {{projectName}} is also used in place of path/to/file. i.e. {{projectName}}/file, creating an additional folder where it is not needed in some templates. A new variable is required to resolve the correct path, regardless of scoped package or dasherized name.