@theholocron/cli 5.0.0-alpha.253 → 5.0.0-alpha.255
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/cli.mjs +12 -1
- package/dist/cli.mjs.map +1 -1
- package/package.json +10 -10
package/dist/cli.mjs
CHANGED
|
@@ -8936,6 +8936,14 @@ async function runNpmBumpVersions(input) {
|
|
|
8936
8936
|
excludeGroups,
|
|
8937
8937
|
dryRun: dryRun || void 0
|
|
8938
8938
|
}, "npm bump-versions: start");
|
|
8939
|
+
function hasReadableManifest(absPath) {
|
|
8940
|
+
try {
|
|
8941
|
+
JSON.parse(readFile(absPath));
|
|
8942
|
+
return true;
|
|
8943
|
+
} catch {
|
|
8944
|
+
return false;
|
|
8945
|
+
}
|
|
8946
|
+
}
|
|
8939
8947
|
function bumpFile(absPath, label) {
|
|
8940
8948
|
let pkg;
|
|
8941
8949
|
let raw;
|
|
@@ -8995,7 +9003,10 @@ async function runNpmBumpVersions(input) {
|
|
|
8995
9003
|
};
|
|
8996
9004
|
}
|
|
8997
9005
|
const found = new Set(workspace.map((entry) => entry.dir));
|
|
8998
|
-
for (const dir of listed)
|
|
9006
|
+
for (const dir of listed) {
|
|
9007
|
+
if (found.has(dir) || hasReadableManifest(join(dir, "package.json"))) continue;
|
|
9008
|
+
print(` ! skipping ${relative(resolve(cwd), dir)}: no package.json or malformed JSON`);
|
|
9009
|
+
}
|
|
8999
9010
|
for (const { dir, relativeDir, manifest } of workspace) {
|
|
9000
9011
|
if (manifest.private) {
|
|
9001
9012
|
print(` · skipping private package ${relativeDir}`);
|