bimba-cli 0.2.2 → 0.2.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/index.js +7 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -64,6 +64,7 @@ if(!entrypoint || !flags.outdir) {
64
64
  }
65
65
 
66
66
  // build
67
+ let bundling = false;
67
68
  bundle();
68
69
  watch(bundle);
69
70
 
@@ -83,6 +84,9 @@ function watch(callback) {
83
84
  }
84
85
 
85
86
  async function bundle() {
87
+ if (bundling) return;
88
+ bundling = true;
89
+
86
90
  if (!fs.existsSync(entrypoint)) {
87
91
  console.log(theme.failure('Error.') + ` The specified entrypoint does not exist: ${theme.filedir(entrypoint)}`);
88
92
  process.exit(0);
@@ -106,7 +110,7 @@ async function bundle() {
106
110
  minify: flags.minify || true,
107
111
  plugins: [imbaPlugin]
108
112
  });
109
-
113
+
110
114
  if(stats.failed)
111
115
  console.log(theme.start(theme.failure("Failure.") +` Imba compiler failed to proceed ${theme.count(stats.failed)} file${stats.failed > 1 ? 's' : ''}`));
112
116
  else
@@ -117,4 +121,6 @@ async function bundle() {
117
121
  console.log(log);
118
122
  }
119
123
  }
124
+
125
+ bundling = false;
120
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimba-cli",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "repository": "github:HeapVoid/bimba",
5
5
  "module": "index.js",
6
6
  "bin": {