@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 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
- spawnSync2("bun", ["update", "@inixiative/config", ...new Set(stale)], {
600
- cwd: repo.dir,
601
- stdio: "inherit"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inixiative/config",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Shared toolchain for the inixiative ecosystem: tsconfig/biome/tsup presets, a version manifest (BOM), and a sync/check CLI",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/versions.json CHANGED
@@ -13,6 +13,7 @@
13
13
  "@types/bun"
14
14
  ],
15
15
  "ecosystem": {
16
+ "@inixiative/config": "0.4.0",
16
17
  "@inixiative/json-rules": "2.14.0",
17
18
  "@inixiative/permissions": "0.3.2",
18
19
  "@inixiative/transitions": "0.1.0",