@naseej/blox 0.1.15 → 0.1.16
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 +10 -2
- 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.16";
|
|
35
35
|
|
|
36
36
|
// src/commands/add/index.ts
|
|
37
37
|
var import_fs_extra6 = __toESM(require("fs-extra"));
|
|
@@ -548,7 +548,15 @@ var init2 = command("init").description("Init new app").alias("i").option("-n, -
|
|
|
548
548
|
const commit = await git.getLatestCommitFromPath(name);
|
|
549
549
|
await git.unInit(name);
|
|
550
550
|
await replacePlaceholders(name, { app: { name } });
|
|
551
|
-
|
|
551
|
+
let basedOnInfo;
|
|
552
|
+
try {
|
|
553
|
+
basedOnInfo = getBasedOnInfo(name);
|
|
554
|
+
} catch (e) {
|
|
555
|
+
debug(`${e}`);
|
|
556
|
+
}
|
|
557
|
+
if (!basedOnInfo?.commit) {
|
|
558
|
+
saveBasedOnInfo({ commit }, name);
|
|
559
|
+
}
|
|
552
560
|
await git.init(name);
|
|
553
561
|
await runInitScript(name);
|
|
554
562
|
task.stop(`App initialized in ${name}`);
|