generateproj 2.4.0 → 2.6.0

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.
package/dist/Cpp/cpp.js CHANGED
@@ -3,6 +3,7 @@ const fs = require('fs');
3
3
  const path = require('path');
4
4
  const askQuestion = require('../utility/askQuestion');
5
5
  const gitIsAvailable = require('../utility/gitIsAvailable');
6
+ const { execSync } = require('child_process');
6
7
 
7
8
  /**
8
9
  * Function to create a new C++ project.
package/dist/HTML/html.js CHANGED
@@ -3,7 +3,7 @@ const fs = require('fs');
3
3
  const path = require('path');
4
4
  const askQuestion = require('../utility/askQuestion');
5
5
  const gitIsAvailable = require('../utility/gitIsAvailable');
6
-
6
+ const { execSync } = require('child_process');
7
7
 
8
8
  /**
9
9
  * Function to create a new HTML project.
package/dist/Java/java.js CHANGED
@@ -4,6 +4,7 @@ const fs = require('fs');
4
4
  const path = require('path');
5
5
  const askQuestion = require('../utility/askQuestion');
6
6
  const gitIsAvailable = require('../utility/gitIsAvailable');
7
+ const { execSync } = require('child_process');
7
8
 
8
9
 
9
10
  /**
@@ -4,6 +4,7 @@ const fs = require('fs');
4
4
  const path = require('path');
5
5
  const askQuestion = require('../utility/askQuestion');
6
6
  const gitIsAvailable = require('../utility/gitIsAvailable');
7
+ const { execSync } = require('child_process');
7
8
 
8
9
 
9
10
  /**
@@ -5,7 +5,7 @@ const {execSync} = require('child_process');
5
5
  * @returns {boolean} True if Git is available, false otherwise.
6
6
  */
7
7
 
8
- const gitIsAvailable = async () => {
8
+ const gitIsAvailable = () => {
9
9
  try {
10
10
  execSync("git --version", {stdio: 'ignore'});
11
11
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generateproj",
3
- "version": "2.4.0",
3
+ "version": "2.6.0",
4
4
  "main": "cli.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",