@stll/oxlint-config 1.0.2 → 1.1.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/README.md +85 -4
- package/dist/cloud-setup-cli.cjs +62 -21
- package/dist/cloud-setup-cli.cjs.map +1 -1
- package/dist/cloud-setup-cli.mjs +63 -22
- package/dist/cloud-setup-cli.mjs.map +1 -1
- package/dist/consumer-compat-cli.cjs +7 -6
- package/dist/consumer-compat-cli.cjs.map +1 -1
- package/dist/consumer-compat-cli.mjs +7 -6
- package/dist/consumer-compat-cli.mjs.map +1 -1
- package/dist/git-tracked-output.cjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/publish-build-target-vite-dts-helper.mjs +1 -2
- package/dist/publish-build-target-vite-dts-helper2.cjs +5 -5
- package/dist/publish-build-target-vite-dts-helper2.cjs.map +1 -1
- package/dist/publish-contract-cli.cjs +17 -16
- package/dist/publish-contract-cli.cjs.map +1 -1
- package/dist/publish-contract-cli.mjs +6 -5
- package/dist/publish-contract-cli.mjs.map +1 -1
- package/dist/publish-contract.cjs +1 -1
- package/dist/publish-contract.cjs.map +1 -1
- package/dist/publish-contract.mjs +1 -1
- package/dist/rolldown-runtime.cjs +1 -1
- package/dist/toolchain-changed.cjs +19 -14
- package/dist/toolchain-changed.cjs.map +1 -1
- package/dist/toolchain-changed.mjs +21 -16
- package/dist/toolchain-changed.mjs.map +1 -1
- package/dist/toolchain-check-cli.cjs.map +1 -1
- package/dist/toolchain-check-cli.mjs.map +1 -1
- package/dist/toolchain-guard.cjs +66 -50
- package/dist/toolchain-guard.cjs.map +1 -1
- package/dist/toolchain-guard.mjs +73 -57
- package/dist/toolchain-guard.mjs.map +1 -1
- package/dist/toolchain-inputs.cjs +670 -32
- package/dist/toolchain-inputs.cjs.map +1 -1
- package/dist/toolchain-inputs.mjs +647 -33
- package/dist/toolchain-inputs.mjs.map +1 -1
- package/dist/toolchain-schema.cjs +1 -1
- package/dist/toolchain-schema.cjs.map +1 -1
- package/dist/toolchain-schema.mjs +2 -2
- package/dist/typecheck-parity-cli.cjs.map +1 -1
- package/dist/typecheck-parity-cli.mjs.map +1 -1
- package/dist/typecheck-parity.cjs +8 -7
- package/dist/typecheck-parity.cjs.map +1 -1
- package/dist/typecheck-parity.mjs +6 -5
- package/dist/typecheck-parity.mjs.map +1 -1
- package/dist/typecheck-probe-cli.cjs +1 -1
- package/dist/typecheck-probe-cli.cjs.map +1 -1
- package/dist/typecheck-probe-cli.mjs +1 -1
- package/package.json +6 -6
|
@@ -3,9 +3,9 @@ import { n as isCompilerPackage } from "./compiler-packages.mjs";
|
|
|
3
3
|
import { execFile, spawn } from "node:child_process";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { satisfies, valid, validRange } from "semver";
|
|
6
|
-
import {
|
|
6
|
+
import { parse as parse$1 } from "smol-toml";
|
|
7
7
|
import { promisify } from "node:util";
|
|
8
|
-
import {
|
|
8
|
+
import { parseAllDocuments, parseDocument } from "yaml";
|
|
9
9
|
//#region src/toolchain-changed-locks.ts
|
|
10
10
|
const toolchainChangedTools = [
|
|
11
11
|
"bun",
|
|
@@ -202,11 +202,13 @@ const lockSourceProof = (raw) => {
|
|
|
202
202
|
source(raw[0]);
|
|
203
203
|
source(raw[1]);
|
|
204
204
|
digest("integrity", raw[3]);
|
|
205
|
-
} else if (changedRecord(raw))
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
205
|
+
} else if (changedRecord(raw)) {
|
|
206
|
+
if (changedRecord(raw["metadata"])) {
|
|
207
|
+
metadata(raw["metadata"]);
|
|
208
|
+
const descriptor = raw["descriptor"];
|
|
209
|
+
source(typeof descriptor === "string" ? descriptor.replace(/^\//, "") : descriptor);
|
|
210
|
+
} else metadata(raw);
|
|
211
|
+
}
|
|
210
212
|
if (sources.some((value) => {
|
|
211
213
|
if (/(?:^|@)(?:link:|portal:|workspace:)/i.test(value)) return true;
|
|
212
214
|
const local = /(?:^|@)file:(.*)$/i.exec(value)?.[1];
|
|
@@ -501,7 +503,7 @@ const readTree = async ({ repo, ref }) => {
|
|
|
501
503
|
], {
|
|
502
504
|
cwd: repo,
|
|
503
505
|
encoding: "utf8",
|
|
504
|
-
maxBuffer:
|
|
506
|
+
maxBuffer: 33554432
|
|
505
507
|
});
|
|
506
508
|
const entries = /* @__PURE__ */ new Map();
|
|
507
509
|
for (const entry of stdout.split("\0")) {
|
|
@@ -534,7 +536,7 @@ const readBlobs = async ({ repo, oids }) => {
|
|
|
534
536
|
let size = 0;
|
|
535
537
|
child.stdout.on("data", (chunk) => {
|
|
536
538
|
size += chunk.length;
|
|
537
|
-
if (size >
|
|
539
|
+
if (size > 134217728) {
|
|
538
540
|
child.kill();
|
|
539
541
|
reject(/* @__PURE__ */ new Error("Toolchain Git snapshot exceeds the read limit"));
|
|
540
542
|
return;
|
|
@@ -943,7 +945,7 @@ const setupRuntimeFileVersion = ({ snapshot, file, runtime }) => {
|
|
|
943
945
|
return stableVersion(toolchain.slice(2));
|
|
944
946
|
}
|
|
945
947
|
if (file.endsWith(".toml")) {
|
|
946
|
-
const value = parse$
|
|
948
|
+
const value = parse$1(text);
|
|
947
949
|
if (!changedRecord(value)) throw new Error("Unclassifiable setup runtime TOML");
|
|
948
950
|
if (runtime === "rust" && changedRecord(value["toolchain"])) return setupRuntimeVersion(value["toolchain"]["channel"]);
|
|
949
951
|
if (runtime === "python") return setupRuntimeVersion(value["python-version"]);
|
|
@@ -1093,10 +1095,11 @@ const parseSnapshot = (snapshot) => {
|
|
|
1093
1095
|
const visit = (entry, at) => {
|
|
1094
1096
|
if (!changedRecord(entry)) return;
|
|
1095
1097
|
for (const [name, specifier] of Object.entries(entry)) {
|
|
1096
|
-
|
|
1098
|
+
const target = typeof specifier === "string" ? packageTarget({
|
|
1097
1099
|
name,
|
|
1098
1100
|
specifier
|
|
1099
|
-
}) : name
|
|
1101
|
+
}) : name;
|
|
1102
|
+
if (changedPackageTool(target) === "typescript") tools.typescript.add(`${file}:${at}:${name}:${stableJson(specifier)}`);
|
|
1100
1103
|
visit(specifier, `${at}:${name}`);
|
|
1101
1104
|
}
|
|
1102
1105
|
};
|
|
@@ -1164,7 +1167,7 @@ const parseSnapshot = (snapshot) => {
|
|
|
1164
1167
|
} else if (isMiseConfigPath(file)) {
|
|
1165
1168
|
tools.bun.add(`${file}:${text}`);
|
|
1166
1169
|
tools.typescript.add(`${file}:${text}`);
|
|
1167
|
-
const parsed = parse$
|
|
1170
|
+
const parsed = parse$1(text);
|
|
1168
1171
|
if (changedRecord(parsed) && changedRecord(parsed["tools"])) for (const [tool, selector] of Object.entries(parsed["tools"])) {
|
|
1169
1172
|
const value = changedRecord(selector) ? selector["version"] : selector;
|
|
1170
1173
|
const values = Array.isArray(value) ? value : [value];
|
|
@@ -1203,7 +1206,8 @@ const parseSnapshot = (snapshot) => {
|
|
|
1203
1206
|
if (isComposeDefinitionPath(file) || /(?:^|\n)\s*(?:apiVersion|kind)\s*:/.test(text)) throw new Error(`Unreadable container declaration: ${file}`);
|
|
1204
1207
|
continue;
|
|
1205
1208
|
}
|
|
1206
|
-
const
|
|
1209
|
+
const value = document.toJS({ maxAliasCount: 100 });
|
|
1210
|
+
const container = containerDocumentImages(value, file);
|
|
1207
1211
|
if (container === void 0) {
|
|
1208
1212
|
if (isComposeDefinitionPath(file)) throw new Error(`Unclassifiable Compose declaration: ${file}`);
|
|
1209
1213
|
continue;
|
|
@@ -1304,10 +1308,11 @@ const parseSnapshot = (snapshot) => {
|
|
|
1304
1308
|
if (!changedRecord(dependencies)) throw new Error(`Invalid manifest dependency table: ${file}`);
|
|
1305
1309
|
for (const [dependency, specifier] of Object.entries(dependencies)) {
|
|
1306
1310
|
if (typeof specifier !== "string") throw new Error(`Invalid dependency specifier: ${file}`);
|
|
1307
|
-
|
|
1311
|
+
const declaredTarget = packageTarget({
|
|
1308
1312
|
name: dependency,
|
|
1309
1313
|
specifier
|
|
1310
|
-
})
|
|
1314
|
+
});
|
|
1315
|
+
if (changedPackageTool(declaredTarget) === void 0 && changedPackageTool(dependency) === void 0 && !compilerNames.has(dependency)) continue;
|
|
1311
1316
|
const effectiveSpecifier = effectiveCatalogSpecifier({
|
|
1312
1317
|
snapshot,
|
|
1313
1318
|
file,
|