netcore-blueprint 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/create.js +6 -3
  2. package/package.json +1 -1
package/create.js CHANGED
@@ -32,9 +32,12 @@ function copyAndRename(src, dest) {
32
32
  } else {
33
33
  let content = fs.readFileSync(src, 'utf8');
34
34
 
35
- // Rename Solution and Project Names
36
- content = content.replace(/Blueprint\.API/g, projectName.toUpperCase());
37
- content = content.replace(/Blueprint/g, projectName.toUpperCase());
35
+ // Ensure projectName follows PascalCase format
36
+ const projectNamePascalCase = projectName.charAt(0).toUpperCase() + projectName.slice(1);
37
+
38
+ // Replace "Blueprint.API" first, then "Blueprint" (case-insensitive)
39
+ content = content.replace(/Blueprint\.API/gi, `${projectNamePascalCase}.API`);
40
+ content = content.replace(/Blueprint/gi, projectNamePascalCase);
38
41
 
39
42
  fs.writeFileSync(dest, content);
40
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netcore-blueprint",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "A custom .NET Core project blueprint",
5
5
  "main": "create.js",
6
6
  "bin": {