@naseej/blox 0.1.0 → 0.1.1
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/run.js +12 -10
- package/package.json +1 -1
package/dist/run.js
CHANGED
|
@@ -31,7 +31,7 @@ var option = (flags, description) => {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
|
-
var version = "0.1.
|
|
34
|
+
var version = "0.1.1";
|
|
35
35
|
|
|
36
36
|
// src/services/git.ts
|
|
37
37
|
var import_node_path = __toESM(require("path"));
|
|
@@ -286,15 +286,17 @@ function updateBasedOnInfo(updates, cwd = ".") {
|
|
|
286
286
|
}
|
|
287
287
|
function getUsedBlocks() {
|
|
288
288
|
const blocks = [];
|
|
289
|
-
import_fs_extra5.default.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
289
|
+
if (import_fs_extra5.default.existsSync(blocksDir)) {
|
|
290
|
+
import_fs_extra5.default.readdirSync(blocksDir, { withFileTypes: true }).forEach((file) => {
|
|
291
|
+
if (!file.isDirectory()) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
const templateInfo = getTemplateInfo(import_node_path4.default.join(blocksDir, file.name));
|
|
295
|
+
if (templateInfo) {
|
|
296
|
+
blocks.push(templateInfo);
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
}
|
|
298
300
|
return blocks;
|
|
299
301
|
}
|
|
300
302
|
|