js-comments-eraser 1.1.1 → 1.1.2

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.
@@ -26,8 +26,11 @@ function removeCommentsFromFile(fileContent) {
26
26
 
27
27
  // Recursive function to process files in a directory
28
28
  function processDirectory(sourceDir, targetDir) {
29
- // const sourceDir = args[0];
30
- // const targetDir = args[1];
29
+
30
+ // Relative path'ten absolute path'e
31
+ sourceDir = path.resolve(sourceDir);
32
+ targetDir = path.resolve(targetDir);
33
+
31
34
 
32
35
  // const HEDEFMEVCUT = fs.existsSync(args[1])
33
36
  const HEDEFMEVCUT = fs.existsSync(targetDir)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-comments-eraser",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "index-multi-js-2.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/readme.md CHANGED
@@ -1,6 +1,4 @@
1
1
 
2
- # DONT USE 1.1.0 version Some things went wrong
3
-
4
2
  ## Türkçe
5
3
 
6
4
  Projenize dahil etmek için aşağıdaki gibi yapın.