@antelopejs/tooling-configs 0.8.2 → 0.8.3-next.386.g90a4f74
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/bin/api-diff.mjs +1 -1
- package/dist/bin/checks.mjs +1 -1
- package/dist/bin/comment-proof.mjs +1 -1
- package/dist/bin/sync.mjs +2 -2
- package/dist/{checks-Crg3yU_o.mjs → checks-DWyFamXy.mjs} +1 -1
- package/dist/{docs-compat-CdgBviGf.mjs → docs-compat-_tK_pTpu.mjs} +24 -5
- package/dist/{typescript-BMXhi9hl.mjs → typescript-CQVpluk_.mjs} +1 -1
- package/package.json +2 -2
package/dist/bin/api-diff.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { r as installedTypeScriptMajor, t as asInstalledCompilerReads } from "..
|
|
|
5
5
|
import { t as runCli } from "../cli-4Tv71vYk.mjs";
|
|
6
6
|
import { c as resolveRevision, s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
7
7
|
import { n as shimInvocation } from "../run-command-BlFRPORx.mjs";
|
|
8
|
-
import { _ as recordVerdict, c as unpublishedAt, d as revisionCounts, f as workspaceManifests, g as fillStars, h as describeAllowance, i as isTestSource, l as DIRECTORY_LINK, m as createAddedPolicy, o as outputRoot, p as allowedByGlob, r as isExportPath, s as packagesAt, t as emitPackage, u as compareRevisions } from "../typescript-
|
|
8
|
+
import { _ as recordVerdict, c as unpublishedAt, d as revisionCounts, f as workspaceManifests, g as fillStars, h as describeAllowance, i as isTestSource, l as DIRECTORY_LINK, m as createAddedPolicy, o as outputRoot, p as allowedByGlob, r as isExportPath, s as packagesAt, t as emitPackage, u as compareRevisions } from "../typescript-CQVpluk_.mjs";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import { copyFileSync, cpSync, existsSync, globSync, mkdirSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, symlinkSync, writeFileSync } from "node:fs";
|
|
11
11
|
import { basename, dirname, isAbsolute, join, matchesGlob, parse, posix, relative, resolve, sep } from "node:path";
|
package/dist/bin/checks.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { n as runCliAsync } from "../cli-4Tv71vYk.mjs";
|
|
3
3
|
import { s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
4
|
-
import { i as runChecks, n as CI_TIER_ENV, t as CHECKS_SKIP_ENV } from "../checks-
|
|
4
|
+
import { i as runChecks, n as CI_TIER_ENV, t as CHECKS_SKIP_ENV } from "../checks-DWyFamXy.mjs";
|
|
5
5
|
import { parseArgs } from "node:util";
|
|
6
6
|
//#region src/bin/checks.ts
|
|
7
7
|
const SIGNAL_EXIT = /* @__PURE__ */ new Map([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as runCli } from "../cli-4Tv71vYk.mjs";
|
|
3
3
|
import { s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
4
|
-
import { a as listsNoFiles, d as revisionCounts, n as extendedConfigs, s as packagesAt, t as emitPackage, u as compareRevisions } from "../typescript-
|
|
4
|
+
import { a as listsNoFiles, d as revisionCounts, n as extendedConfigs, s as packagesAt, t as emitPackage, u as compareRevisions } from "../typescript-CQVpluk_.mjs";
|
|
5
5
|
import { copyFileSync, existsSync, mkdirSync } from "node:fs";
|
|
6
6
|
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
7
7
|
//#region src/guardrails/comment-proof.ts
|
package/dist/bin/sync.mjs
CHANGED
|
@@ -7,9 +7,9 @@ import { t as typescript6_default } from "../typescript6-HdyOMBv3.mjs";
|
|
|
7
7
|
import { t as runCli } from "../cli-4Tv71vYk.mjs";
|
|
8
8
|
import { _ as ciRenovateSyncCallers, a as GITATTRIBUTES_ARTIFACT, b as sharedWorkflow, c as CI_CONTEXT, f as callerPlan, g as ciNodeCallers, h as MISSING_CHECKS_WORKFLOW, m as ciWorkflow, p as ciProfile, r as renovateArtifacts, u as CI_PATH, v as hasChecksWorkflow, y as sharedRefArtifacts } from "../renovate-uWHU7H3H.mjs";
|
|
9
9
|
import { i as gitFiles, s as repositoryRoot } from "../files-C0avD1Eo.mjs";
|
|
10
|
-
import { n as workspaceDirectories, r as workspacePatterns, t as planDocs } from "../docs-compat-
|
|
10
|
+
import { n as workspaceDirectories, r as workspacePatterns, t as planDocs } from "../docs-compat-_tK_pTpu.mjs";
|
|
11
11
|
import { n as shimInvocation } from "../run-command-BlFRPORx.mjs";
|
|
12
|
-
import { a as verifyLayers, c as pnpmLockfiles, d as moveDependencyRanges, f as runPnpm, l as inWorkspace, o as matchingScripts, r as droppedChecksSteps, s as stepsOf, u as installsWithPnpm } from "../checks-
|
|
12
|
+
import { a as verifyLayers, c as pnpmLockfiles, d as moveDependencyRanges, f as runPnpm, l as inWorkspace, o as matchingScripts, r as droppedChecksSteps, s as stepsOf, u as installsWithPnpm } from "../checks-DWyFamXy.mjs";
|
|
13
13
|
import { n as SUPPRESSIONS_FILE, r as adoptedBudget } from "../suppression-budget-Dbb2RlAV.mjs";
|
|
14
14
|
import { c as typescript } from "../suppressions-BWTxQbDL.mjs";
|
|
15
15
|
import { t as DEFAULT_SHARED } from "../map-C3j9QGqf.mjs";
|
|
@@ -2,7 +2,7 @@ import { l as serializeManifest, o as packageManager, s as parseManifest } from
|
|
|
2
2
|
import { t as typescript6_default } from "./typescript6-HdyOMBv3.mjs";
|
|
3
3
|
import { a as isString, f as parseJson, i as isObject, u as optStr } from "./json-CG2L7YFl.mjs";
|
|
4
4
|
import { i as gitFiles, l as trackedManifests } from "./files-C0avD1Eo.mjs";
|
|
5
|
-
import { i as DMS_PACKAGES, n as workspaceDirectories } from "./docs-compat-
|
|
5
|
+
import { i as DMS_PACKAGES, n as workspaceDirectories } from "./docs-compat-_tK_pTpu.mjs";
|
|
6
6
|
import { n as shimInvocation, t as runCommand } from "./run-command-BlFRPORx.mjs";
|
|
7
7
|
import { n as tagVersion } from "./npm-CIIqL5SG.mjs";
|
|
8
8
|
import { n as packTarball } from "./pack-tarball-Cn4zGKn7.mjs";
|
|
@@ -207,6 +207,7 @@ const DOCS_NODE_END = "<!-- antelopejs-docs-node:end -->";
|
|
|
207
207
|
const LOCKFILE = "pnpm-lock.yaml";
|
|
208
208
|
const REQUIREMENTS_HEADING = /^##\s+Requirements\s*$/i;
|
|
209
209
|
const SCOPE = "@antelopejs/";
|
|
210
|
+
const WORKSPACE = "workspace:";
|
|
210
211
|
const UNRESOLVED = "—";
|
|
211
212
|
const LEGACY_MARKER = /^<!--\s*docs-compat:\s*\.\/package\.json#\w+\s*-->\s*$/;
|
|
212
213
|
const COMPATIBILITY_HEADING = /^##\s+Compatibility\s*$/i;
|
|
@@ -358,13 +359,25 @@ function workspaceDirectories(root) {
|
|
|
358
359
|
}
|
|
359
360
|
return [...found].sort();
|
|
360
361
|
}
|
|
361
|
-
|
|
362
|
+
/** The range `pnpm pack` publishes for a `workspace:` spec, or undefined when the sibling's version is unknown. */
|
|
363
|
+
function publishedRange(spec, version) {
|
|
364
|
+
if (!spec.startsWith(WORKSPACE)) return spec;
|
|
365
|
+
const rest = spec.slice(10);
|
|
366
|
+
if (rest === "^" || rest === "~") return version && `${rest}${version}`;
|
|
367
|
+
if (rest === "*") return version;
|
|
368
|
+
return /^[\d^~<>=]/.test(rest) ? rest : void 0;
|
|
369
|
+
}
|
|
370
|
+
function declaredRanges(manifest, versions, unresolved) {
|
|
362
371
|
const ranges = /* @__PURE__ */ new Map();
|
|
363
372
|
for (const field of [
|
|
364
373
|
manifest.optionalDependencies,
|
|
365
374
|
manifest.dependencies,
|
|
366
375
|
manifest.peerDependencies
|
|
367
|
-
]) for (const [name, range] of Object.entries(field ?? {})) if (name.startsWith(SCOPE))
|
|
376
|
+
]) for (const [name, range] of Object.entries(field ?? {})) if (name.startsWith(SCOPE)) {
|
|
377
|
+
const published = publishedRange(range, versions.get(name));
|
|
378
|
+
if (published === void 0) unresolved.push(`${name}@${range}`);
|
|
379
|
+
else ranges.set(name, published);
|
|
380
|
+
}
|
|
368
381
|
return ranges;
|
|
369
382
|
}
|
|
370
383
|
function readManifest(root, directory) {
|
|
@@ -446,14 +459,19 @@ function planPackage(root, plan, lock, standard, { directory, name, ranges, publ
|
|
|
446
459
|
*/
|
|
447
460
|
function planDocs(root, manager) {
|
|
448
461
|
const rootManifest = readManifest(root, "");
|
|
449
|
-
const
|
|
450
|
-
|
|
462
|
+
const directories = ["", ...workspaceDirectories(root)];
|
|
463
|
+
const manifests = directories.map((directory) => directory ? readManifest(root, directory) : rootManifest);
|
|
464
|
+
const versions = /* @__PURE__ */ new Map();
|
|
465
|
+
for (const { name, version } of manifests) if (name && version) versions.set(name, version);
|
|
466
|
+
const unresolved = [];
|
|
467
|
+
const packages = directories.map((directory, index) => {
|
|
468
|
+
const manifest = manifests[index];
|
|
451
469
|
return {
|
|
452
470
|
directory,
|
|
453
471
|
name: manifest.name,
|
|
454
472
|
published: !directory || !manifest.private,
|
|
455
473
|
node: manifest.engines?.node,
|
|
456
|
-
ranges: manifest.private ? /* @__PURE__ */ new Map() : declaredRanges(manifest)
|
|
474
|
+
ranges: manifest.private ? /* @__PURE__ */ new Map() : declaredRanges(manifest, versions, unresolved)
|
|
457
475
|
};
|
|
458
476
|
});
|
|
459
477
|
const qualifying = packages.filter(({ ranges }) => ranges.size > 0);
|
|
@@ -463,6 +481,7 @@ function planDocs(root, manager) {
|
|
|
463
481
|
errors: [],
|
|
464
482
|
exists: (path) => existsSync(join(root, path))
|
|
465
483
|
};
|
|
484
|
+
for (const spec of new Set(unresolved)) plan.errors.push(`${spec} names no workspace package version, so the docs-compat block cannot show the range pnpm pack writes.`);
|
|
466
485
|
const shared = sharesLockfile(root);
|
|
467
486
|
const documents = /* @__PURE__ */ new Map();
|
|
468
487
|
const locks = new Map(qualifying.map(({ directory }) => [directory, manager === "pnpm" ? readLock(root, shared, directory, documents) : void 0]));
|
|
@@ -2,7 +2,7 @@ import { s as parseManifest } from "./package-7oylgBeT.mjs";
|
|
|
2
2
|
import { t as typescript6_default } from "./typescript6-HdyOMBv3.mjs";
|
|
3
3
|
import { n as installedCompilerDefaults, r as installedTypeScriptMajor } from "./installed-typescript-CF_FR9DV.mjs";
|
|
4
4
|
import { c as resolveRevision, l as trackedManifests } from "./files-C0avD1Eo.mjs";
|
|
5
|
-
import { n as workspaceDirectories, r as workspacePatterns } from "./docs-compat-
|
|
5
|
+
import { n as workspaceDirectories, r as workspacePatterns } from "./docs-compat-_tK_pTpu.mjs";
|
|
6
6
|
import { i as revisionSuppressions, n as countSuppressions } from "./suppressions-BWTxQbDL.mjs";
|
|
7
7
|
import { copyFileSync, existsSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, symlinkSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { dirname, isAbsolute, join, matchesGlob, relative, resolve, sep } from "node:path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antelopejs/tooling-configs",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3-next.386.g90a4f74",
|
|
4
4
|
"description": "Shared tooling presets for AntelopeJS repositories: oxlint (with the vendored anti-slop rules), oxfmt, ESLint for Nuxt layers, Knip, and a dependency range check",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"engines": {
|
|
153
153
|
"node": ">=22.18.0"
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "90a4f749b044846302e3b928572dc44a0bc219b2",
|
|
156
156
|
"scripts": {
|
|
157
157
|
"build": "tsdown",
|
|
158
158
|
"lint": "oxlint",
|