@akanjs/cli 0.9.6 → 0.9.8
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/cjs/index.js +10 -4
- package/esm/index.js +10 -4
- package/package.json +1 -1
- package/src/cloud/cloud.runner.d.ts +1 -0
package/cjs/index.js
CHANGED
|
@@ -4566,6 +4566,15 @@ ${import_chalk6.default.green("\u27A4")} Authentication Required`));
|
|
|
4566
4566
|
Logger.info("All libraries are published to npm");
|
|
4567
4567
|
}
|
|
4568
4568
|
async update(workspace) {
|
|
4569
|
+
if (!workspace.exists("package.json"))
|
|
4570
|
+
await workspace.spawn("npm", ["update", "-g", "@akanjs/cli", "--latest"]);
|
|
4571
|
+
else
|
|
4572
|
+
await Promise.all([
|
|
4573
|
+
workspace.spawn("npm", ["update", "-g", "@akanjs/cli", "--latest"]),
|
|
4574
|
+
this.#updateAkanPkgs(workspace)
|
|
4575
|
+
]);
|
|
4576
|
+
}
|
|
4577
|
+
async #updateAkanPkgs(workspace) {
|
|
4569
4578
|
const latestPublishedVersionOfBase = await (0, import_latest_version.default)("@akanjs/base");
|
|
4570
4579
|
const rootPackageJson = workspace.readJson("package.json");
|
|
4571
4580
|
if (!rootPackageJson.dependencies)
|
|
@@ -4579,10 +4588,7 @@ ${import_chalk6.default.green("\u27A4")} Authentication Required`));
|
|
|
4579
4588
|
Object.assign(rootPackageJson.devDependencies ?? {}, { [dependency]: latestPublishedVersionOfBase });
|
|
4580
4589
|
});
|
|
4581
4590
|
workspace.writeJson("package.json", rootPackageJson);
|
|
4582
|
-
await
|
|
4583
|
-
workspace.spawn("npm", ["update", "-g", "@akanjs/cli", "--latest"]),
|
|
4584
|
-
workspace.spawn("pnpm", ["install"])
|
|
4585
|
-
]);
|
|
4591
|
+
await workspace.spawn("pnpm", ["install"]);
|
|
4586
4592
|
}
|
|
4587
4593
|
};
|
|
4588
4594
|
|
package/esm/index.js
CHANGED
|
@@ -4558,6 +4558,15 @@ ${chalk6.green("\u27A4")} Authentication Required`));
|
|
|
4558
4558
|
Logger.info("All libraries are published to npm");
|
|
4559
4559
|
}
|
|
4560
4560
|
async update(workspace) {
|
|
4561
|
+
if (!workspace.exists("package.json"))
|
|
4562
|
+
await workspace.spawn("npm", ["update", "-g", "@akanjs/cli", "--latest"]);
|
|
4563
|
+
else
|
|
4564
|
+
await Promise.all([
|
|
4565
|
+
workspace.spawn("npm", ["update", "-g", "@akanjs/cli", "--latest"]),
|
|
4566
|
+
this.#updateAkanPkgs(workspace)
|
|
4567
|
+
]);
|
|
4568
|
+
}
|
|
4569
|
+
async #updateAkanPkgs(workspace) {
|
|
4561
4570
|
const latestPublishedVersionOfBase = await latestVersion("@akanjs/base");
|
|
4562
4571
|
const rootPackageJson = workspace.readJson("package.json");
|
|
4563
4572
|
if (!rootPackageJson.dependencies)
|
|
@@ -4571,10 +4580,7 @@ ${chalk6.green("\u27A4")} Authentication Required`));
|
|
|
4571
4580
|
Object.assign(rootPackageJson.devDependencies ?? {}, { [dependency]: latestPublishedVersionOfBase });
|
|
4572
4581
|
});
|
|
4573
4582
|
workspace.writeJson("package.json", rootPackageJson);
|
|
4574
|
-
await
|
|
4575
|
-
workspace.spawn("npm", ["update", "-g", "@akanjs/cli", "--latest"]),
|
|
4576
|
-
workspace.spawn("pnpm", ["install"])
|
|
4577
|
-
]);
|
|
4583
|
+
await workspace.spawn("pnpm", ["install"]);
|
|
4578
4584
|
}
|
|
4579
4585
|
};
|
|
4580
4586
|
|
package/package.json
CHANGED