@akanjs/cli 2.1.0-rc.8 → 2.1.0-rc.9
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/index.js
CHANGED
|
@@ -10370,10 +10370,10 @@ ${chalk7.green("\u27A4")} Authentication Required`));
|
|
|
10370
10370
|
}
|
|
10371
10371
|
async update(workspace, tag = "latest") {
|
|
10372
10372
|
if (!await workspace.exists("package.json"))
|
|
10373
|
-
await workspace.spawn("
|
|
10373
|
+
await workspace.spawn("bun", ["update", "-g", "akanjs", "--latest", `--tag=${tag}`]);
|
|
10374
10374
|
else
|
|
10375
10375
|
await Promise.all([
|
|
10376
|
-
workspace.spawn("
|
|
10376
|
+
workspace.spawn("bun", ["update", "-g", "akanjs", "--latest", `--tag=${tag}`]),
|
|
10377
10377
|
this.#updateAkanPkgs(workspace, tag)
|
|
10378
10378
|
]);
|
|
10379
10379
|
}
|
|
@@ -10386,6 +10386,10 @@ ${chalk7.green("\u27A4")} Authentication Required`));
|
|
|
10386
10386
|
rootPackageJson.dependencies.akanjs = latestPublishedVersion;
|
|
10387
10387
|
if (rootPackageJson.devDependencies?.akanjs)
|
|
10388
10388
|
rootPackageJson.devDependencies.akanjs = latestPublishedVersion;
|
|
10389
|
+
if (rootPackageJson.dependencies["@akanjs/devkit"])
|
|
10390
|
+
rootPackageJson.dependencies["@akanjs/devkit"] = latestPublishedVersion;
|
|
10391
|
+
if (rootPackageJson.devDependencies?.["@akanjs/devkit"])
|
|
10392
|
+
rootPackageJson.devDependencies["@akanjs/devkit"] = latestPublishedVersion;
|
|
10389
10393
|
workspace.setPackageJson(rootPackageJson);
|
|
10390
10394
|
await workspace.spawn("bun", ["install"]);
|
|
10391
10395
|
}
|
|
@@ -11606,7 +11610,10 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
11606
11610
|
const workspaceRoot = path38.join(cwdPath, dirname3, repoName);
|
|
11607
11611
|
const workspace = WorkspaceExecutor.fromRoot({ workspaceRoot, repoName });
|
|
11608
11612
|
const templateSpinner = workspace.spinning(`Creating workspace template files in ${dirname3}/${repoName}...`);
|
|
11609
|
-
const latestTypesBunVersion = await
|
|
11613
|
+
const [latestBiomeVersion, latestTypesBunVersion] = await Promise.all([
|
|
11614
|
+
getLatestPackageVersion("@biomejs/biome"),
|
|
11615
|
+
getLatestPackageVersion("@types/bun")
|
|
11616
|
+
]);
|
|
11610
11617
|
await workspace.applyTemplate({
|
|
11611
11618
|
basePath: ".",
|
|
11612
11619
|
template: "workspaceRoot",
|
|
@@ -11627,7 +11634,9 @@ class WorkspaceRunner extends runner("workspace") {
|
|
|
11627
11634
|
},
|
|
11628
11635
|
devDependencies: {
|
|
11629
11636
|
...rootPackageJson.devDependencies,
|
|
11637
|
+
"@biomejs/biome": latestBiomeVersion,
|
|
11630
11638
|
"@types/bun": latestTypesBunVersion,
|
|
11639
|
+
"@akanjs/devkit": akanVersion,
|
|
11631
11640
|
...typescript ? { typescript } : {}
|
|
11632
11641
|
}
|
|
11633
11642
|
};
|
package/package.json
CHANGED
|
File without changes
|