@onsever/create-express-ts-app 1.0.2 → 1.0.3

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/bin/cli.js +8 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -83,7 +83,14 @@ try {
83
83
 
84
84
  console.log(`Removing the local Git repository...`);
85
85
 
86
- const removeGitRepoCommand = `rm -rf ${projectName}/.git`;
86
+ let removeGitRepoCommand;
87
+
88
+ if (checkTargetArgument()) {
89
+ removeGitRepoCommand = `rm -rf .git`;
90
+ } else {
91
+ removeGitRepoCommand = `rm -rf ${projectName}/.git`;
92
+ }
93
+
87
94
  const gitRepoRemoved = runCommand(removeGitRepoCommand);
88
95
  if (!gitRepoRemoved) process.exit(1);
89
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsever/create-express-ts-app",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "This is a starter template for Express.js with TypeScript that includes Jest, Prettier, ESLint, and more.",
5
5
  "bin": "./bin/cli.js",
6
6
  "main": "main.js",