cc-codeline 1.0.6 → 1.0.7

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.js +4 -0
  2. package/package.json +1 -1
package/bin.js CHANGED
@@ -51,6 +51,9 @@ const languages = {
51
51
  ".py": {
52
52
  comment: /'''[\s\S]+?'''|#.*/g,
53
53
  },
54
+ ".lua": {
55
+ comment: /--\[\[[\s\S]+?\]\]|--.*/g,
56
+ }
54
57
  };
55
58
 
56
59
  const param = process.argv.slice(2);
@@ -109,6 +112,7 @@ async function main() {
109
112
  }
110
113
  } catch (err) {
111
114
  console.error(err.message || "Unknown error");
115
+ process.exit(0);
112
116
  }
113
117
  }
114
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-codeline",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "bin.js",
5
5
  "description": "Quickly count the number of lines of code and files",
6
6
  "bin": {