@inixiative/config 0.3.1 → 0.4.0
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.js +5 -6
- package/package.json +1 -1
- package/versions.json +1 -0
package/dist/cli.js
CHANGED
|
@@ -155,7 +155,7 @@ var discoverRepos = (root, manifest2) => {
|
|
|
155
155
|
const pkgPath = join(root, entry, "package.json");
|
|
156
156
|
if (!existsSync(pkgPath)) continue;
|
|
157
157
|
const name = tryParseJsonc(readFileSync(pkgPath, "utf8"))?.name;
|
|
158
|
-
if (typeof name === "string" && name in manifest2.ecosystem)
|
|
158
|
+
if (typeof name === "string" && name in manifest2.ecosystem && name !== "@inixiative/config")
|
|
159
159
|
repos.push({ dir: join(root, entry), name });
|
|
160
160
|
}
|
|
161
161
|
return repos.sort((a, b) => a.name.localeCompare(b.name));
|
|
@@ -374,7 +374,7 @@ function inspect(dir2, manifest2, presetOverride) {
|
|
|
374
374
|
for (const field of DEP_FIELDS) {
|
|
375
375
|
const deps = pkg[field];
|
|
376
376
|
const range = deps?.[name];
|
|
377
|
-
if (!range) continue;
|
|
377
|
+
if (!range || range.startsWith("file:") || range.startsWith("link:")) continue;
|
|
378
378
|
const ok = admits(range, blessed);
|
|
379
379
|
if (ok === false) {
|
|
380
380
|
findings.push({
|
|
@@ -596,10 +596,9 @@ if (command === "train") {
|
|
|
596
596
|
process.exit(1);
|
|
597
597
|
}
|
|
598
598
|
const stale = inspect(repo.dir, manifest).findings.filter((finding) => finding.kind === "stale-lock" && finding.name).map((finding) => finding.name);
|
|
599
|
-
|
|
600
|
-
cwd: repo.dir,
|
|
601
|
-
|
|
602
|
-
});
|
|
599
|
+
if (stale.length > 0) {
|
|
600
|
+
spawnSync2("bun", ["update", ...new Set(stale)], { cwd: repo.dir, stdio: "inherit" });
|
|
601
|
+
}
|
|
603
602
|
const check = spawnSync2("bun", ["run", "check"], { cwd: repo.dir, stdio: "inherit" });
|
|
604
603
|
if (check.status !== 0) {
|
|
605
604
|
console.error(`\u2717 check failed in ${repo.name} \u2014 aborting train`);
|
package/package.json
CHANGED