@antelopejs/tooling-configs 0.2.5 → 0.2.6
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/README.md +1 -1
- package/dist/bin/api-diff.mjs +2 -2
- package/dist/bin/check-size.mjs +2 -2
- package/dist/bin/checks.mjs +1 -1
- package/dist/bin/comment-proof.mjs +2 -2
- package/dist/bin/ratchet.mjs +2 -2
- package/dist/bin/sync.mjs +2 -2
- package/dist/{files-CaMy-5ne.mjs → files-BOpSsyuD.mjs} +1 -7
- package/dist/{ratchet-Bz4Rl3_r.mjs → ratchet-EwpOUzaZ.mjs} +2 -2
- package/dist/{size-DYVe2pXo.mjs → size-tl9vdWs0.mjs} +1 -1
- package/dist/{typescript-BlNlyAhQ.mjs → typescript-C8XKk2Ml.mjs} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -182,7 +182,7 @@ When every rule count is zero and `oversizeFiles` is empty, the ratchet is retir
|
|
|
182
182
|
|
|
183
183
|
### Size
|
|
184
184
|
|
|
185
|
-
`antelopejs-check-size` fails on an authored file over 20,000 bytes, tests included. Generated code (`dist`, `coverage`, `.nuxt`, `.output`, and `build` or `output` at the repository root or a package root, never under `src/` or `test/`), fixtures, lockfiles, `CHANGELOG.md`, Markdown and binary assets are excluded.
|
|
185
|
+
`antelopejs-check-size` fails on an authored file over 20,000 bytes, tests included. Generated code (`dist`, `coverage`, `.nuxt`, `.output`, and `build` or `output` at the repository root or a package root, never under `src/` or `test/`), fixtures, lockfiles, `CHANGELOG.md`, Markdown and binary assets are excluded. JSON is data, never code: every `*.json`, `*.jsonc` and `*.json5` file is excluded, wherever it lives. Lint and format still cover it. Files over the limit with a NUL byte in their first 8,000 bytes are binary even without a known extension. Staged checks inspect the index blob. Excluded files are also removed from recorded size allowances on ratchet update.
|
|
186
186
|
|
|
187
187
|
Pass paths to check only those files, as the pre-commit hook does. The command also fails on an `oxlint-disable` or `eslint-disable` directive (line, next-line or file form) that names no rule: oxlint applies such a directive before any rule runs, so `no-comments` cannot report it.
|
|
188
188
|
|
package/dist/bin/api-diff.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as revisionCounts, d as createAddedPolicy, f as describeAllowance, h as runCli, i as repositoryRoot, m as recordVerdict, o as DIRECTORY_LINK, p as fillStars, s as compareRevisions, u as allowedByGlob } from "../files-
|
|
2
|
+
import { c as revisionCounts, d as createAddedPolicy, f as describeAllowance, h as runCli, i as repositoryRoot, m as recordVerdict, o as DIRECTORY_LINK, p as fillStars, s as compareRevisions, u as allowedByGlob } from "../files-BOpSsyuD.mjs";
|
|
3
3
|
import { i as parseManifest, r as packageManager } from "../package-Ckd7e4tA.mjs";
|
|
4
|
-
import { a as unpublishedAt, i as packagesAt, n as isTestSource, r as outputRoot, t as emitPackage } from "../typescript-
|
|
4
|
+
import { a as unpublishedAt, i as packagesAt, n as isTestSource, r as outputRoot, t as emitPackage } from "../typescript-C8XKk2Ml.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { copyFileSync, cpSync, existsSync, mkdirSync, readFileSync, readdirSync, rmSync, symlinkSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { basename, dirname, join, relative, resolve } from "node:path";
|
package/dist/bin/check-size.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { h as runCli, i as repositoryRoot, r as repositoryPath, t as authoredSizes } from "../files-
|
|
3
|
-
import { t as checkSize } from "../size-
|
|
2
|
+
import { h as runCli, i as repositoryRoot, r as repositoryPath, t as authoredSizes } from "../files-BOpSsyuD.mjs";
|
|
3
|
+
import { t as checkSize } from "../size-tl9vdWs0.mjs";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { join, resolve } from "node:path";
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
package/dist/bin/checks.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "../ceilings-BSw9p4YB.mjs";
|
|
3
|
-
import { h as runCli, i as repositoryRoot } from "../files-
|
|
3
|
+
import { h as runCli, i as repositoryRoot } from "../files-BOpSsyuD.mjs";
|
|
4
4
|
import { i as parseManifest, r as packageManager } from "../package-Ckd7e4tA.mjs";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { join } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as revisionCounts, h as runCli, i as repositoryRoot, s as compareRevisions } from "../files-
|
|
3
|
-
import { i as packagesAt, t as emitPackage } from "../typescript-
|
|
2
|
+
import { c as revisionCounts, h as runCli, i as repositoryRoot, s as compareRevisions } from "../files-BOpSsyuD.mjs";
|
|
3
|
+
import { i as packagesAt, t as emitPackage } from "../typescript-C8XKk2Ml.mjs";
|
|
4
4
|
import { copyFileSync, mkdirSync } from "node:fs";
|
|
5
5
|
import { dirname, join, relative } from "node:path";
|
|
6
6
|
//#region src/guardrails/comment-proof.ts
|
package/dist/bin/ratchet.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { s as readCeilings, t as CEILINGS_FILE } from "../ceilings-BSw9p4YB.mjs";
|
|
3
3
|
import { n as renamedPaths } from "../renames-BGO4dWJ8.mjs";
|
|
4
|
-
import { a as resolveRevision, h as runCli, i as repositoryRoot, r as repositoryPath } from "../files-
|
|
5
|
-
import { n as ratchet, r as lintDiagnostics } from "../ratchet-
|
|
4
|
+
import { a as resolveRevision, h as runCli, i as repositoryRoot, r as repositoryPath } from "../files-BOpSsyuD.mjs";
|
|
5
|
+
import { n as ratchet, r as lintDiagnostics } from "../ratchet-EwpOUzaZ.mjs";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
import { execFileSync } from "node:child_process";
|
|
8
8
|
import { parseArgs } from "node:util";
|
package/dist/bin/sync.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as formatCeilings, o as isRetired, s as readCeilings, t as CEILINGS_FILE } from "../ceilings-BSw9p4YB.mjs";
|
|
3
|
-
import { h as runCli, i as repositoryRoot } from "../files-
|
|
3
|
+
import { h as runCli, i as repositoryRoot } from "../files-BOpSsyuD.mjs";
|
|
4
4
|
import { a as repositoryTools, i as parseManifest, n as managedPackage, o as toolingVersions, r as packageManager, t as execCommand } from "../package-Ckd7e4tA.mjs";
|
|
5
|
-
import { t as measureBaseline } from "../ratchet-
|
|
5
|
+
import { t as measureBaseline } from "../ratchet-EwpOUzaZ.mjs";
|
|
6
6
|
import { chmodSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, readlinkSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { dirname, join, resolve } from "node:path";
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
@@ -257,13 +257,7 @@ const SIZE_EXCLUSIONS = [
|
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
kind: "data",
|
|
260
|
-
patterns: [
|
|
261
|
-
"**/locales/**/*.json",
|
|
262
|
-
"**/i18n/**/*.json",
|
|
263
|
-
"**/blocks.json",
|
|
264
|
-
"**/schema.json",
|
|
265
|
-
"**/evals/**/cases.json"
|
|
266
|
-
]
|
|
260
|
+
patterns: ["**/*.{json,jsonc,json5}"]
|
|
267
261
|
},
|
|
268
262
|
{
|
|
269
263
|
kind: "lockfiles",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as formatCeilings, n as MAX_FILE_BYTES, o as isRetired, r as MEASURE_ENV, t as CEILINGS_FILE } from "./ceilings-BSw9p4YB.mjs";
|
|
2
2
|
import { t as readCarriedCeilings } from "./renames-BGO4dWJ8.mjs";
|
|
3
|
-
import { n as gitFiles, r as repositoryPath, t as authoredSizes } from "./files-
|
|
4
|
-
import { n as sizeFailure } from "./size-
|
|
3
|
+
import { n as gitFiles, r as repositoryPath, t as authoredSizes } from "./files-BOpSsyuD.mjs";
|
|
4
|
+
import { n as sizeFailure } from "./size-tl9vdWs0.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { existsSync, mkdtempSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { basename, dirname, join } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./ceilings-BSw9p4YB.mjs";
|
|
2
2
|
import { t as readCarriedCeilings } from "./renames-BGO4dWJ8.mjs";
|
|
3
|
-
import { t as authoredSizes } from "./files-
|
|
3
|
+
import { t as authoredSizes } from "./files-BOpSsyuD.mjs";
|
|
4
4
|
//#region src/guardrails/size.ts
|
|
5
5
|
function sizeFailure(file, size, limit) {
|
|
6
6
|
return `${file}: ${size} bytes, ${size - limit} bytes over the ${limit}-byte ceiling. Split by responsibility into sibling modules, one cohesive group of exports each; keep the original path re-exporting only if it is a public entry point. Split a test file by behaviour under test, one file per describe. Do not minify, strip whitespace, or move code under an excluded path to pass.`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as trackedManifests } from "./files-
|
|
1
|
+
import { l as trackedManifests } from "./files-BOpSsyuD.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { dirname, 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.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Shared tooling presets for AntelopeJS repositories: oxlint (with the vendored anti-slop rules), oxfmt, ESLint for Nuxt layers, Knip, and an interface range check",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antelopejs",
|