codeweaver 1.0.13 → 1.0.14

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 (3) hide show
  1. package/LICENSE +0 -2
  2. package/command.js +10 -12
  3. package/package.json +1 -1
package/LICENSE CHANGED
@@ -1,7 +1,5 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Ehsan-Afzali-2024
4
-
5
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
4
  of this software and associated documentation files (the "Software"), to deal
7
5
  in the Software without restriction, including without limitation the rights
package/command.js CHANGED
@@ -33,10 +33,10 @@ exec(`git clone ${repoUrl} ${projectName}`, (error) => {
33
33
  bin,
34
34
  name = projectName,
35
35
  version = "1.0.0",
36
- description = "",
37
- keywords = "",
38
- author = "",
39
- license = "",
36
+ description = " ",
37
+ keywords = " ",
38
+ author = " ",
39
+ license = " ",
40
40
  ...packageJson
41
41
  } = JSON.parse(data);
42
42
 
@@ -50,25 +50,23 @@ exec(`git clone ${repoUrl} ${projectName}`, (error) => {
50
50
  return;
51
51
  }
52
52
 
53
- // Remove the .git folder
54
- exec(`rm -rf ${path.join(projectName, ".git")}`, (rmError) => {
53
+ // Remove the command.js file
54
+ exec(`rm -f ${path.join(projectName, "command.js")}`, (rmError) => {
55
55
  if (rmError) {
56
- console.error(`Error removing .git folder: ${rmError.message}`);
56
+ console.error(`Error removing command.js file: ${rmError.message}`);
57
57
  return;
58
58
  }
59
59
 
60
- exec(`rm -f ${path.join(projectName, "command.js")}`, (rm2Error) => {
60
+ // Remove the .git folder
61
+ exec(`rm -rf ${path.join(projectName, ".git")}`, (rm2Error) => {
61
62
  if (rm2Error) {
62
- console.error(
63
- `Error removing command.js file: ${rm2Error.message}`
64
- );
63
+ console.error(`Error removing .git folder: ${rm2Error.message}`);
65
64
  return;
66
65
  }
67
66
 
68
67
  console.log(
69
68
  `Successfully cloned codeweaver into ${path.resolve(projectName)}`
70
69
  );
71
- console.log(`The project name is set to "${projectName}".`);
72
70
  });
73
71
  });
74
72
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeweaver",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "main": "src/app.ts",
5
5
  "bin": {
6
6
  "create-codeweaver-app": "./command.js"