@stll/oxlint-config 0.7.0 → 0.9.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/toolchain-check-cli.cjs +214 -0
- package/dist/toolchain-check-cli.cjs.map +1 -0
- package/dist/toolchain-check-cli.d.cts +1 -0
- package/dist/toolchain-check-cli.d.mts +1 -0
- package/dist/toolchain-check-cli.mjs +191 -0
- package/dist/toolchain-check-cli.mjs.map +1 -0
- package/dist/typecheck-parity-cli.cjs +870 -0
- package/dist/typecheck-parity-cli.cjs.map +1 -0
- package/dist/typecheck-parity-cli.d.cts +1 -0
- package/dist/typecheck-parity-cli.d.mts +1 -0
- package/dist/typecheck-parity-cli.mjs +870 -0
- package/dist/typecheck-parity-cli.mjs.map +1 -0
- package/package.json +10 -4
- package/toolchain.json +32 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typecheck-parity-cli.mjs","names":[],"sources":["../src/typecheck-parity.ts","../src/typecheck-parity-cli.ts"],"sourcesContent":["import { spawnSync } from \"node:child_process\";\nimport { readFileSync, realpathSync, statSync } from \"node:fs\";\nimport {\n mkdtemp,\n mkdir,\n readFile,\n rm,\n writeFile,\n symlink,\n} from \"node:fs/promises\";\nimport { createRequire } from \"node:module\";\nimport { tmpdir } from \"node:os\";\nimport { resolve, join, relative, dirname, basename } from \"node:path\";\nimport { performance } from \"node:perf_hooks\";\nimport { stripVTControlCharacters } from \"node:util\";\n\nexport const fixtures = [\n {\n name: \"module-detection\",\n flags: [\"noUnusedLocals\"],\n files: { \"input.ts\": \"const unused = 1;\" },\n codes: [6133],\n },\n {\n name: \"skip-declaration-check\",\n flags: [\"skipLibCheck\"],\n files: { \"input.d.ts\": \"export declare const value: MissingType;\" },\n codes: [],\n },\n {\n name: \"json-import\",\n flags: [\"resolveJsonModule\"],\n files: {\n \"data.json\": '{ \"name\": \"value\" }',\n \"input.ts\":\n 'import data from \"./data.json\"; export const value: string = data.name;',\n },\n codes: [],\n },\n {\n name: \"interop-import\",\n flags: [\"esModuleInterop\"],\n files: {\n \"types.d.cts\": \"declare const value: string; export = value;\",\n \"input.ts\":\n 'import value from \"./types.cjs\"; export const result: string = value;',\n },\n codes: [],\n },\n {\n name: \"valid-control\",\n flags: [],\n files: { \"input.ts\": 'export const value: string = \"correct\";' },\n codes: [],\n },\n {\n name: \"type-mismatch\",\n flags: [],\n files: { \"input.ts\": 'export const value: number = \"wrong\";' },\n codes: [2322],\n },\n {\n name: \"missing-property\",\n flags: [],\n files: { \"input.ts\": \"export const value: { name: string } = {};\" },\n codes: [2741],\n },\n {\n name: \"strict-null\",\n flags: [\"strictNullChecks\"],\n files: { \"input.ts\": \"export const value: string = null;\" },\n codes: [2322],\n },\n {\n name: \"unchecked-index\",\n flags: [\"noUncheckedIndexedAccess\"],\n files: { \"input.ts\": 'export const value: string = [\"value\"][1];' },\n codes: [2322],\n },\n {\n name: \"unused-local\",\n flags: [\"noUnusedLocals\"],\n files: { \"input.ts\": \"const unused = 1; export {};\" },\n codes: [6133],\n },\n {\n name: \"unused-parameter\",\n flags: [\"noUnusedParameters\"],\n files: { \"input.ts\": \"export const value = (unused: string) => 1;\" },\n codes: [6133],\n },\n {\n name: \"implicit-any\",\n flags: [\"noImplicitAny\"],\n files: { \"input.ts\": \"export const value = (input) => input;\" },\n codes: [7006],\n },\n {\n name: \"missing-import\",\n flags: [],\n files: {\n \"input.ts\": 'import { value } from \"./missing.js\"; export { value };',\n },\n codes: [2307],\n },\n {\n name: \"side-effect-import\",\n flags: [\"noUncheckedSideEffectImports\"],\n files: { \"input.ts\": 'import \"./missing.js\";' },\n codes: [2882],\n },\n {\n name: \"generic-constraint\",\n flags: [],\n files: {\n \"input.ts\":\n \"type Box<T extends string> = { value: T }; export type Value = Box<number>;\",\n },\n codes: [2344],\n },\n {\n name: \"exact-optional\",\n flags: [\"exactOptionalPropertyTypes\"],\n files: {\n \"input.ts\":\n \"export const value: { optional?: string } = { optional: undefined };\",\n },\n codes: [2375],\n },\n {\n name: \"fallthrough\",\n flags: [\"noFallthroughCasesInSwitch\"],\n files: {\n \"input.ts\":\n \"export const run = (value: number) => { switch (value) { case 0: value++; case 1: return value; default: return 0; } };\",\n },\n codes: [7029],\n },\n {\n name: \"implicit-override\",\n flags: [\"noImplicitOverride\"],\n files: {\n \"input.ts\":\n \"class Base { value = 1; } export class Child extends Base { value = 2; }\",\n },\n codes: [4114],\n },\n {\n name: \"implicit-return\",\n flags: [\"noImplicitReturns\"],\n files: {\n \"input.ts\":\n \"export const run = (value: boolean) => { if (value) return 1; };\",\n },\n codes: [7030],\n },\n {\n name: \"unknown-catch\",\n flags: [\"useUnknownInCatchVariables\"],\n files: {\n \"input.ts\":\n \"export const run = () => { try { return 1; } catch (error) { return error.message; } };\",\n },\n codes: [18046],\n },\n {\n name: \"index-property\",\n flags: [\"noPropertyAccessFromIndexSignature\"],\n files: {\n \"input.ts\":\n \"export const run = (value: Record<string, string>) => value.name;\",\n },\n codes: [4111],\n },\n {\n name: \"erasable-syntax\",\n flags: [\"erasableSyntaxOnly\"],\n files: { \"input.ts\": \"export enum Value { First }\" },\n codes: [1294],\n },\n {\n name: \"type-only-import\",\n flags: [\"verbatimModuleSyntax\"],\n files: {\n \"types.ts\": \"export type Value = string;\",\n \"input.ts\":\n 'import { Value } from \"./types.js\"; export const value: Value = \"value\";',\n },\n codes: [1484],\n },\n {\n name: \"checked-javascript\",\n flags: [\"allowJs\", \"checkJs\"],\n files: {\n \"input.js\": '/** @type {number} */\\nexport const value = \"wrong\";',\n },\n codes: [2322],\n },\n {\n name: \"strict-function\",\n flags: [\"strictFunctionTypes\"],\n files: {\n \"input.ts\":\n \"export const value: (input: string | number) => void = (input: string) => { input.toUpperCase(); };\",\n },\n codes: [2322],\n },\n {\n name: \"strict-initialization\",\n flags: [\"strictPropertyInitialization\"],\n files: { \"input.ts\": \"export class Value { name: string; }\" },\n codes: [2564],\n },\n {\n name: \"strict-bind\",\n flags: [\"strictBindCallApply\"],\n files: {\n \"input.ts\":\n \"const value = (input: string) => input; export const result = value.call(undefined, 1);\",\n },\n codes: [2345],\n },\n {\n name: \"implicit-this\",\n flags: [\"noImplicitThis\"],\n files: { \"input.ts\": \"export function value() { return this.name; }\" },\n codes: [2683],\n },\n {\n name: \"strict-iterator\",\n flags: [\"strictBuiltinIteratorReturn\"],\n files: {\n \"input.ts\":\n 'export const value: string = [\"value\"].values().next().value;',\n },\n codes: [2322],\n },\n {\n name: \"always-strict\",\n flags: [\"alwaysStrict\"],\n files: { \"input.ts\": \"export const value = (eval: string) => eval;\" },\n codes: [1215],\n },\n {\n name: \"file-casing\",\n flags: [\"forceConsistentCasingInFileNames\"],\n files: {\n \"named.ts\": 'export const name = \"value\";',\n \"Named.ts\": 'export const name = \"value\";',\n \"input.ts\":\n 'import { name } from \"./named.js\"; import { name as other } from \"./Named.js\"; export const value = name + other;',\n },\n codes: [1149, 1261],\n anyCode: true,\n },\n];\nexport const diagnosticCodes = (text: string) =>\n [\n ...new Set(\n [...text.matchAll(/(?:TS|(?:error|warning)\\s+)(\\d{4,5})/g)].map((match) =>\n Number(match.at(1)),\n ),\n ),\n ].sort((a, b) => a - b);\n\ntype DiagnosticCheckResult = { status: number | null; output: string };\ntype DiagnosticParityOptions = {\n expected: readonly number[];\n match: \"all\" | \"any\";\n baseline: DiagnosticCheckResult;\n candidate: DiagnosticCheckResult;\n repo?: string;\n};\nexport const diagnosticParity = ({\n expected,\n match,\n baseline,\n candidate,\n}: DiagnosticParityOptions) => {\n const tscCodes = diagnosticCodes(baseline.output);\n const bunCodes = diagnosticCodes(candidate.output);\n const seeded =\n match === \"any\"\n ? expected.some((code) => tscCodes.includes(code))\n : expected.every((code) => tscCodes.includes(code));\n const missing = tscCodes.filter((code) => !bunCodes.includes(code));\n const extra = bunCodes.filter((code) => !tscCodes.includes(code));\n const exitsMatch =\n expected.length === 0\n ? baseline.status === 0 &&\n candidate.status === 0 &&\n tscCodes.length === 0 &&\n bunCodes.length === 0\n : baseline.status !== null &&\n baseline.status !== 0 &&\n candidate.status !== null &&\n candidate.status !== 0;\n return {\n tscCodes,\n bunCodes,\n missing,\n extra,\n passed:\n seeded &&\n exitsMatch &&\n baseline.status === candidate.status &&\n missing.length === 0 &&\n extra.length === 0,\n };\n};\n\nconst configurationDiagnostics = (output: string, repo: string) =>\n diagnosticSet(output, repo).filter(\n (diagnostic) =>\n /^(?:<config>:0:|.*\\.json:[0-9]+:)(?:[56][0-9]{3}|1800[23]|2688)(?::|$)/.test(\n diagnostic,\n ) || /:1800[23](?::|$)/.test(diagnostic),\n );\n\ntype FixtureParityOptions = DiagnosticParityOptions & {\n seedFiles: readonly string[];\n};\nexport const fixtureParity = (options: FixtureParityOptions) => {\n const result = diagnosticParity(options);\n const { baseline, candidate, expected, match } = options;\n const identityParity = compareDiagnosticSets(\n {\n status: baseline.status,\n diagnostics: diagnosticSet(\n baseline.output,\n options.repo ?? process.cwd(),\n ),\n },\n {\n status: candidate.status,\n diagnostics: diagnosticSet(\n candidate.output,\n options.repo ?? process.cwd(),\n ),\n },\n );\n const configDiagnostics = [\n ...configurationDiagnostics(\n baseline.output,\n options.repo ?? process.cwd(),\n ).map((diagnostic) => `TypeScript: ${diagnostic}`),\n ...configurationDiagnostics(\n candidate.output,\n options.repo ?? process.cwd(),\n ).map((diagnostic) => `Bun: ${diagnostic}`),\n ];\n const seedFiles = new Set(\n options.seedFiles.map((file) =>\n resolve(options.repo ?? process.cwd(), file),\n ),\n );\n const seededCodes = new Set(\n diagnosticSet(baseline.output, options.repo ?? process.cwd()).flatMap(\n (diagnostic) => {\n const diagnosticMatch = /^(.*):[0-9]+:([0-9]+)$/.exec(diagnostic);\n const file = diagnosticMatch?.at(1);\n const code = diagnosticMatch?.at(2);\n return file !== undefined &&\n code !== undefined &&\n seedFiles.has(resolve(options.repo ?? process.cwd(), file))\n ? [Number(code)]\n : [];\n },\n ),\n );\n const active =\n expected.length > 0 &&\n (match === \"any\"\n ? expected.some((code) => seededCodes.has(code))\n : expected.every((code) => seededCodes.has(code)));\n const validExits =\n baseline.status !== null &&\n candidate.status !== null &&\n (result.tscCodes.length === 0\n ? baseline.status === 0\n : baseline.status !== 0) &&\n (result.bunCodes.length === 0\n ? candidate.status === 0\n : candidate.status !== 0);\n return {\n ...result,\n active,\n configurationDiagnostics: configDiagnostics,\n identityMissing: identityParity.missing,\n identityExtra: identityParity.extra,\n passed:\n configDiagnostics.length === 0 &&\n identityParity.passed &&\n validExits &&\n baseline.status === candidate.status &&\n result.missing.length === 0 &&\n result.extra.length === 0,\n };\n};\n\nexport const fixtureRunPassed = (\n results: { active: boolean; passed: boolean }[],\n) =>\n results.some(({ active }) => active) && results.every(({ passed }) => passed);\n\nconst diagnosticLocation = (file: string, repo: string) => {\n const normalized = file.replaceAll(\"\\\\\", \"/\");\n const bundled = /^bundled:\\/\\/\\/libs\\/(lib\\.[^/]+\\.d\\.ts)$/.exec(normalized);\n const installed =\n /(?:^|\\/)node_modules\\/(?:typescript|@typescript\\/(?:native|typescript-[^/]+))\\/(?:.*\\/)?(lib\\.[^/]+\\.d\\.ts)$/.exec(\n normalized,\n );\n const library = bundled?.at(1) ?? installed?.at(1);\n return library === undefined\n ? relative(repo, resolve(repo, file)).replaceAll(\"\\\\\", \"/\")\n : `<lib>/${library}`;\n};\nconst globalDiagnosticKey = (code: string, message: string) =>\n `<config>:0:${code}:${message.trim().replaceAll(/\\s+/g, \" \")}`;\n\nexport const diagnosticSet = (output: string, repo: string) => {\n const clean = stripVTControlCharacters(output);\n const diagnostics = new Set<string>();\n for (const block of clean.matchAll(/<error\\b([^>]*)>([\\s\\S]*?)<\\/error>/g)) {\n const attributes = new Map(\n [...(block.at(1) ?? \"\").matchAll(/(\\w+)=\"([^\"]*)\"/g)].map((match) => [\n match.at(1),\n match.at(2),\n ]),\n );\n const file = attributes.get(\"file\");\n const row = attributes.get(\"line\");\n const code = attributes.get(\"code\");\n if (code === undefined || !/^TS\\d+$/.test(code)) continue;\n if (file !== undefined && row !== undefined && row !== \"0\")\n diagnostics.add(\n `${diagnosticLocation(file, repo)}:${row}:${code.slice(2)}`,\n );\n else {\n const message =\n (block.at(2) ?? \"\").split(/<(?:source|related)\\b/).at(0) ?? \"\";\n diagnostics.add(globalDiagnosticKey(code.slice(2), message));\n }\n }\n for (const line of clean.split(\"\\n\")) {\n if (line.startsWith(\"<error \")) continue;\n const match =\n /^(.*?)\\((\\d+),\\d+\\):\\s*(?:error|warning) TS(\\d+)/.exec(line) ??\n /^(.*?):(\\d+):\\d+:\\s*(?:error|warning) (?:TS)?(\\d+)/.exec(line);\n if (match) {\n const [, file = \"\", row = \"\", code = \"\"] = match;\n diagnostics.add(`${diagnosticLocation(file, repo)}:${row}:${code}`);\n } else {\n const global = /^(?:error|warning) TS(\\d+):\\s*(.*)/.exec(line);\n if (global)\n diagnostics.add(\n globalDiagnosticKey(global.at(1) ?? \"\", global.at(2) ?? \"\"),\n );\n }\n }\n return [...diagnostics].sort();\n};\n\ntype DiagnosticSetResult = { status: number | null; diagnostics: string[] };\nexport const compareDiagnosticSets = (\n baseline: DiagnosticSetResult,\n candidate: DiagnosticSetResult,\n) => {\n const missing = baseline.diagnostics.filter(\n (item) => !candidate.diagnostics.includes(item),\n );\n const extra = candidate.diagnostics.filter(\n (item) => !baseline.diagnostics.includes(item),\n );\n const valid = (result: DiagnosticSetResult) =>\n result.status !== null &&\n (result.diagnostics.length === 0\n ? result.status === 0\n : result.status !== 0);\n return {\n missing,\n extra,\n passed:\n valid(baseline) &&\n valid(candidate) &&\n baseline.status === candidate.status &&\n missing.length === 0 &&\n extra.length === 0,\n };\n};\n\nexport const assertUnshadowedCheck = async (repo: string) => {\n const manifest: unknown = JSON.parse(\n await readFile(join(repo, \"package.json\"), \"utf8\"),\n );\n if (typeof manifest !== \"object\" || manifest === null)\n throw new Error(\"Invalid repository package.json\");\n if (\n \"scripts\" in manifest &&\n typeof manifest.scripts === \"object\" &&\n manifest.scripts !== null &&\n \"check\" in manifest.scripts\n )\n throw new Error(\n 'Repository package.json must not define a \"check\" script: it shadows Bun typechecking; rename that script before running parity',\n );\n};\n\nexport const resolveCompiler = async (repo: string, policy: unknown) => {\n if (\n typeof policy !== \"object\" ||\n policy === null ||\n !(\"typescriptInstallLayouts\" in policy) ||\n !Array.isArray(policy.typescriptInstallLayouts)\n )\n throw new Error(\"toolchain.json must define typescriptInstallLayouts\");\n const manifest: unknown = JSON.parse(\n await readFile(join(repo, \"package.json\"), \"utf8\"),\n );\n if (typeof manifest !== \"object\" || manifest === null)\n throw new Error(\"Invalid repository package.json\");\n const dependencies = new Map<string, unknown>();\n for (const key of [\"dependencies\", \"devDependencies\"]) {\n if (!(key in manifest)) continue;\n const section = Reflect.get(manifest, key);\n if (typeof section === \"object\" && section !== null)\n for (const [name, specifier] of Object.entries(section))\n dependencies.set(name, specifier);\n }\n const require = createRequire(join(repo, \"package.json\"));\n // Prefer the explicit split compiler over its compatibility installation.\n for (const layout of [...policy.typescriptInstallLayouts].reverse()) {\n if (\n typeof layout !== \"object\" ||\n layout === null ||\n !(\"compilerPackage\" in layout) ||\n typeof layout.compilerPackage !== \"string\"\n )\n throw new Error(\"Invalid TypeScript install layout\");\n if (!dependencies.has(layout.compilerPackage)) continue;\n const packagePath = require.resolve(\n `${layout.compilerPackage}/package.json`,\n );\n const installed: unknown = JSON.parse(await readFile(packagePath, \"utf8\"));\n if (\n typeof installed !== \"object\" ||\n installed === null ||\n !(\"bin\" in installed) ||\n typeof installed.bin !== \"object\" ||\n installed.bin === null ||\n !(\"tsc\" in installed.bin) ||\n typeof installed.bin.tsc !== \"string\"\n )\n throw new Error(`${layout.compilerPackage} must expose a tsc binary`);\n if (\n !(\"compilerSpecifier\" in layout) ||\n typeof layout.compilerSpecifier !== \"string\"\n )\n throw new Error(\n \"TypeScript install layout must define compilerSpecifier\",\n );\n const expectedVersion = layout.compilerSpecifier.replace(\n /^npm:typescript@/,\n \"\",\n );\n if (!(\"version\" in installed) || installed.version !== expectedVersion)\n throw new Error(\n `${layout.compilerPackage} must install TypeScript ${expectedVersion}`,\n );\n return resolve(packagePath, \"..\", installed.bin.tsc);\n }\n throw new Error(\n \"Repository must declare a compiler from typescriptInstallLayouts\",\n );\n};\n\nexport const assertBunVersion = (bun: string, policy: unknown) => {\n if (\n typeof policy !== \"object\" ||\n policy === null ||\n !(\"bun\" in policy) ||\n typeof policy.bun !== \"string\"\n )\n throw new Error(\"toolchain.json must define bun\");\n const result = spawnSync(bun, [\"--version\"], { encoding: \"utf8\" });\n if (result.error) throw result.error;\n const installed = result.stdout.trim();\n if (result.status !== 0 || installed !== policy.bun)\n throw new Error(\n `Bun must be ${policy.bun}; selected runtime reports ${installed || \"no version\"}`,\n );\n};\n\nexport const bunCheckArgs = (project?: string, build = false) => [\n \"check\",\n \"--no-pretty\",\n \"--all\",\n ...(build ? [\"--build\"] : []),\n ...(project === undefined ? [] : [`--project=${project}`]),\n];\n\nconst canonicalOptions = (value: unknown): string => {\n if (Array.isArray(value)) return `[${value.map(canonicalOptions).join(\",\")}]`;\n if (typeof value === \"object\" && value !== null)\n return `{${Object.keys(value)\n .sort()\n .map(\n (key) =>\n `${JSON.stringify(key)}:${canonicalOptions(Reflect.get(value, key))}`,\n )\n .join(\",\")}}`;\n if (\n value !== null &&\n typeof value !== \"string\" &&\n typeof value !== \"number\" &&\n typeof value !== \"boolean\"\n )\n throw new Error(\"Invalid effective compiler option\");\n return JSON.stringify(value);\n};\n\n// Emit and build settings do not belong in diagnostic-only fixture projects.\nconst EMIT_ONLY_OPTIONS = new Set([\n \"composite\",\n \"declaration\",\n \"declarationDir\",\n \"declarationMap\",\n \"emitDeclarationOnly\",\n \"outDir\",\n \"outFile\",\n \"rootDir\",\n \"sourceMap\",\n \"inlineSourceMap\",\n \"inlineSources\",\n \"incremental\",\n \"tsBuildInfoFile\",\n \"noEmitOnError\",\n \"importHelpers\",\n \"noEmitHelpers\",\n \"emitBOM\",\n \"mapRoot\",\n \"sourceRoot\",\n \"newLine\",\n \"preserveConstEnums\",\n \"removeComments\",\n \"stripInternal\",\n \"downlevelIteration\",\n \"isolatedDeclarations\",\n \"noEmit\",\n]);\n\ntype FixtureCompilerOptionsArgs = {\n compilerOptions: unknown;\n configPath: string;\n};\nconst resolvedCompilerOptions = ({\n compilerOptions,\n configPath,\n}: FixtureCompilerOptionsArgs) => {\n if (\n typeof compilerOptions !== \"object\" ||\n compilerOptions === null ||\n Array.isArray(compilerOptions)\n )\n throw new Error(`Invalid compiler options: ${configPath}`);\n const options: Record<string, unknown> = Object.fromEntries(\n Object.entries(compilerOptions),\n );\n const directory = dirname(configPath);\n const rootDir = options[\"rootDir\"];\n if (rootDir !== undefined && typeof rootDir !== \"string\")\n throw new Error(`Invalid rootDir: ${configPath}`);\n if (typeof rootDir === \"string\")\n options[\"rootDir\"] = resolve(directory, rootDir);\n let resolutionDirectory = directory;\n const absolutePaths = (value: unknown) => {\n if (\n !Array.isArray(value) ||\n !value.every((entry: unknown) => typeof entry === \"string\")\n )\n throw new Error(`Invalid compiler path option: ${configPath}`);\n return value.map((entry) => resolve(resolutionDirectory, entry));\n };\n for (const name of [\"rootDirs\", \"typeRoots\"])\n if (name in options) options[name] = absolutePaths(options[name]);\n if (\"baseUrl\" in options) {\n const baseUrl = options[\"baseUrl\"];\n if (typeof baseUrl !== \"string\")\n throw new Error(`Invalid baseUrl: ${configPath}`);\n resolutionDirectory = resolve(directory, baseUrl);\n options[\"baseUrl\"] = resolutionDirectory;\n }\n if (\"paths\" in options) {\n const paths = options[\"paths\"];\n if (typeof paths !== \"object\" || paths === null || Array.isArray(paths))\n throw new Error(`Invalid paths: ${configPath}`);\n options[\"paths\"] = Object.fromEntries(\n Object.entries(paths).map(([key, value]) => [key, absolutePaths(value)]),\n );\n }\n return options;\n};\n\nexport const fixtureCompilerOptions = (args: FixtureCompilerOptionsArgs) => {\n const options = Object.fromEntries(\n Object.entries(resolvedCompilerOptions(args)).filter(\n ([name]) => !EMIT_ONLY_OPTIONS.has(name),\n ),\n );\n options[\"noEmit\"] = true;\n return options;\n};\n\ntype FixtureInputOptions = {\n files: readonly string[];\n compilerOptions: Record<string, unknown>;\n};\nexport const fixtureInputs = ({\n files,\n compilerOptions,\n}: FixtureInputOptions) => {\n const inputs = files.filter((file) => /\\.(?:[cm]?[jt]sx?|json)$/.test(file));\n for (const input of inputs) {\n if (/\\.[cm]?jsx?$/.test(input) && compilerOptions[\"allowJs\"] !== true)\n return {\n status: \"inapplicable\",\n reason: `${input} requires allowJs`,\n } as const;\n if (\n input.endsWith(\".json\") &&\n compilerOptions[\"resolveJsonModule\"] !== true\n )\n return {\n status: \"inapplicable\",\n reason: `${input} requires resolveJsonModule`,\n } as const;\n }\n return { status: \"applicable\", files: inputs } as const;\n};\n\nexport const fixturePackageContext = (configPath: string) => {\n for (let folder = dirname(configPath); ; folder = dirname(folder)) {\n try {\n const manifest: unknown = JSON.parse(\n readFileSync(join(folder, \"package.json\"), \"utf8\"),\n );\n if (typeof manifest !== \"object\" || manifest === null)\n throw new Error(`Invalid package.json: ${folder}`);\n if (!(\"type\" in manifest)) return {};\n if (manifest.type !== \"module\" && manifest.type !== \"commonjs\")\n throw new Error(`Invalid package type: ${folder}`);\n return { type: manifest.type };\n } catch (error) {\n if (\n !(error instanceof Error) ||\n !(\"code\" in error) ||\n error.code !== \"ENOENT\"\n )\n throw error;\n }\n if (dirname(folder) === folder) return {};\n }\n};\n\ntype CompilerConfig = {\n path: string;\n compilerOptions: unknown;\n packageContext?: unknown;\n};\nexport const groupCompilerConfigs = (configs: CompilerConfig[]) => {\n const groups = new Map<\n string,\n {\n path: string;\n projects: string[];\n compilerOptions: unknown;\n packageContext?: unknown;\n }\n >();\n for (const config of configs) {\n const compilerOptions = fixtureCompilerOptions({\n compilerOptions: config.compilerOptions,\n configPath: config.path,\n });\n const key = canonicalOptions({\n compilerOptions,\n resolutionContext:\n \"typeRoots\" in compilerOptions ? null : dirname(config.path),\n packageContext: config.packageContext ?? {},\n });\n const existing = groups.get(key);\n if (existing) existing.projects.push(config.path);\n else\n groups.set(key, {\n path: config.path,\n projects: [config.path],\n compilerOptions: config.compilerOptions,\n ...(config.packageContext === undefined\n ? {}\n : { packageContext: config.packageContext }),\n });\n }\n return [...groups.values()];\n};\n\ntype DiscoverConfigGroupsOptions = { repo: string; compiler: string };\nexport const discoverConfigGroups = ({\n repo,\n compiler,\n}: DiscoverConfigGroupsOptions) => {\n const configs: CompilerConfig[] = [];\n const visited = new Set<string>();\n const projects: {\n path: string;\n compilerOptions: unknown;\n files: string[];\n references: string[];\n }[] = [];\n let build = false;\n const visit = (project: string) => {\n const path = realpathSync(\n statSync(project).isDirectory()\n ? join(project, \"tsconfig.json\")\n : project,\n );\n if (visited.has(path)) return;\n visited.add(path);\n const result = spawnSync(\n process.execPath,\n [compiler, \"--showConfig\", \"--project\", path],\n { cwd: repo, encoding: \"utf8\", maxBuffer: 64 * 1024 * 1024 },\n );\n if (result.error) throw result.error;\n if (result.status !== 0) throw new Error(result.stdout + result.stderr);\n const config: unknown = JSON.parse(result.stdout);\n if (typeof config !== \"object\" || config === null)\n throw new Error(`Invalid resolved config: ${path}`);\n const references: unknown[] =\n \"references\" in config && Array.isArray(config.references)\n ? config.references\n : [];\n build ||= references.length > 0;\n const compilerOptions =\n \"compilerOptions\" in config ? config.compilerOptions : {};\n if (\n typeof compilerOptions !== \"object\" ||\n compilerOptions === null ||\n Array.isArray(compilerOptions)\n )\n throw new Error(`Invalid compiler options: ${path}`);\n const rawFiles: unknown = \"files\" in config ? config.files : [];\n if (!Array.isArray(rawFiles))\n throw new Error(`Invalid project files: ${path}`);\n const files = rawFiles.map((file: unknown) => {\n if (typeof file !== \"string\")\n throw new Error(`Invalid project file: ${path}`);\n return resolve(dirname(path), file);\n });\n const referencePaths: string[] = [];\n projects.push({ path, compilerOptions, files, references: referencePaths });\n if (files.length > 0 || references.length === 0)\n configs.push({\n path,\n compilerOptions,\n packageContext: fixturePackageContext(path),\n });\n for (const reference of references) {\n if (\n typeof reference !== \"object\" ||\n reference === null ||\n !(\"path\" in reference) ||\n typeof reference.path !== \"string\"\n )\n throw new Error(`Invalid project reference: ${path}`);\n const referencedProject = resolve(dirname(path), reference.path);\n const referencePath = realpathSync(\n statSync(referencedProject).isDirectory()\n ? join(referencedProject, \"tsconfig.json\")\n : referencedProject,\n );\n referencePaths.push(referencePath);\n visit(referencePath);\n }\n };\n visit(join(repo, \"tsconfig.json\"));\n const groups = groupCompilerConfigs(configs);\n if (groups.length === 0)\n throw new Error(\"No consumer compiler configurations to compare\");\n return { build, groups, projects };\n};\n\ntype TimedCommandOptions = { command: string; args: string[]; repo: string };\nconst timedCommand = ({ command, args, repo }: TimedCommandOptions) => {\n const started = performance.now();\n const timerFlag = process.platform === \"darwin\" ? \"-l\" : \"-v\";\n const result = spawnSync(\"/usr/bin/time\", [timerFlag, command, ...args], {\n cwd: repo,\n encoding: \"utf8\",\n maxBuffer: 64 * 1024 * 1024,\n });\n if (result.error) throw result.error;\n const rss =\n process.platform === \"darwin\"\n ? /([0-9]+)\\s+maximum resident set size/.exec(result.stderr)\n : /Maximum resident set size \\(kbytes\\):\\s*([0-9]+)/.exec(result.stderr);\n if (!rss) throw new Error(\"Cannot measure maximum RSS with /usr/bin/time\");\n return {\n status: result.status,\n output: result.stdout + result.stderr,\n wall: (performance.now() - started) / 1000,\n maxRssKiB: Number(rss[1]) / (process.platform === \"darwin\" ? 1024 : 1),\n };\n};\n\nconst NO_WORK_MAX_RSS_KIB = 16 * 1024;\nconst NO_WORK_MAX_WALL_SECONDS = 0.25;\n\ntype SourceDiagnosticSetOptions = {\n output: string;\n repo: string;\n scratch: string;\n configPaths: readonly string[];\n};\nexport const sourceDiagnosticSet = ({\n output,\n repo,\n scratch,\n configPaths,\n}: SourceDiagnosticSetOptions) => {\n const configs = new Set(configPaths.map((path) => resolve(path)));\n const invalid = new Set(configurationDiagnostics(output, repo));\n return diagnosticSet(output, repo).filter((diagnostic) => {\n if (invalid.has(diagnostic)) return false;\n if (diagnostic.startsWith(\"<config>:\")) return true;\n const file = /^(.*):[0-9]+:[0-9]+$/.exec(diagnostic)?.at(1);\n if (file === undefined) return false;\n const path = resolve(repo, file);\n return (\n !configs.has(path) && path !== scratch && !path.startsWith(scratch + \"/\")\n );\n });\n};\n\ntype DiagnosticExitStatusOptions = {\n status: number | null;\n output: string;\n repo: string;\n};\nexport const diagnosticExitStatus = ({\n status,\n output,\n repo,\n}: DiagnosticExitStatusOptions) =>\n status === 2 &&\n configurationDiagnostics(output, repo).length === 0 &&\n diagnosticSet(output, repo).some(\n (diagnostic) => !diagnostic.startsWith(\"<config>:\"),\n )\n ? 1\n : status;\n\ntype CompareRepositoryArgs = {\n repo: string;\n compiler: string;\n bun: string;\n graph: ReturnType<typeof discoverConfigGroups>;\n};\n\ntype RepositoryDiagnosticComparisonOptions = {\n baseline: { status: number | null; output: string };\n candidate: { status: number | null; output: string };\n repo: string;\n scratch: string;\n configPaths: readonly string[];\n};\nexport const repositoryDiagnosticComparison = ({\n baseline,\n candidate,\n repo,\n scratch,\n configPaths,\n}: RepositoryDiagnosticComparisonOptions) => {\n const configs = new Set(configPaths.map((path) => resolve(path)));\n const configurationErrors = (output: string) => [\n ...new Set([\n ...configurationDiagnostics(output, repo),\n ...diagnosticSet(output, repo).filter((diagnostic) => {\n const file = /^(.*):[0-9]+:[0-9]+$/.exec(diagnostic)?.at(1);\n return file !== undefined && configs.has(resolve(repo, file));\n }),\n ]),\n ];\n const configurationErrorsFound = [\n ...configurationErrors(baseline.output).map(\n (diagnostic) => `TypeScript: ${diagnostic}`,\n ),\n ...configurationErrors(candidate.output).map(\n (diagnostic) => `Bun: ${diagnostic}`,\n ),\n ];\n const diagnostics = (output: string) =>\n sourceDiagnosticSet({ output, repo, scratch, configPaths });\n const comparison = compareDiagnosticSets(\n { status: baseline.status, diagnostics: diagnostics(baseline.output) },\n { status: candidate.status, diagnostics: diagnostics(candidate.output) },\n );\n return {\n ...comparison,\n passed: configurationErrorsFound.length === 0 && comparison.passed,\n configurationDiagnostics: configurationErrorsFound,\n };\n};\n\ntype TemporaryProjectTreeOptions = {\n scratch: string;\n projects: readonly string[];\n};\nconst temporaryProjectTree = async ({\n scratch,\n projects,\n}: TemporaryProjectTreeOptions) => {\n const contexts = new Map<\n string,\n { path: string; folder: string; outputFolder: string }\n >();\n const linkedFolders = new Set<string>();\n for (const project of projects) {\n const path = join(scratch, \"projects\", relative(resolve(\"/\"), project));\n const folder = dirname(path);\n await mkdir(folder, { recursive: true });\n for (let original = dirname(project); ; original = dirname(original)) {\n if (!linkedFolders.has(original)) {\n linkedFolders.add(original);\n const modules = join(original, \"node_modules\");\n try {\n if (statSync(modules).isDirectory()) {\n const destination = join(\n scratch,\n \"projects\",\n relative(resolve(\"/\"), original),\n );\n await mkdir(destination, { recursive: true });\n await symlink(modules, join(destination, \"node_modules\"), \"dir\");\n }\n } catch (error) {\n if (\n !(error instanceof Error) ||\n !(\"code\" in error) ||\n error.code !== \"ENOENT\"\n )\n throw error;\n }\n }\n if (dirname(original) === original) break;\n }\n contexts.set(project, {\n path,\n folder,\n outputFolder: join(folder, `${basename(path)}.parity-output`),\n });\n }\n return contexts;\n};\n\nexport const compareRepository = async ({\n repo,\n compiler,\n bun,\n graph,\n}: CompareRepositoryArgs) => {\n const scratch = await mkdtemp(join(tmpdir(), \"parity-repository-\"));\n try {\n const contexts = await temporaryProjectTree({\n scratch,\n projects: graph.projects.map(({ path }) => path),\n });\n const configPaths = new Map(\n [...contexts].map(([original, context]) => [original, context.path]),\n );\n const requiredOutputs = new Set(\n graph.projects.flatMap(({ references }) => references),\n );\n for (const project of graph.projects) {\n const context = contexts.get(project.path);\n if (context === undefined)\n throw new Error(`Missing temporary project: ${project.path}`);\n const { path: configPath, outputFolder } = context;\n const options = resolvedCompilerOptions({\n configPath: project.path,\n compilerOptions: project.compilerOptions,\n });\n const declarationsRequired =\n graph.build &&\n requiredOutputs.has(project.path) &&\n options[\"composite\"] === true;\n options[\"noEmit\"] =\n !graph.build || (options[\"noEmit\"] === true && !declarationsRequired);\n const relocatesOutput =\n options[\"noEmit\"] !== true ||\n \"outDir\" in options ||\n \"declarationDir\" in options;\n // Explicit source/output directories enforce containment in noEmit checks.\n if (!(\"rootDir\" in options) && relocatesOutput)\n options[\"rootDir\"] = dirname(project.path);\n if (relocatesOutput) options[\"outDir\"] = join(outputFolder, \"output\");\n const emitsDeclarations =\n options[\"declaration\"] === true ||\n (options[\"composite\"] === true && options[\"declaration\"] !== false);\n if ((graph.build && emitsDeclarations) || \"declarationDir\" in options)\n options[\"declarationDir\"] = join(outputFolder, \"declarations\");\n if (\n graph.build ||\n options[\"incremental\"] === true ||\n options[\"composite\"] === true\n )\n options[\"tsBuildInfoFile\"] = join(outputFolder, \"project.tsbuildinfo\");\n if (graph.build) {\n options[\"declarationMap\"] = false;\n if (emitsDeclarations) options[\"emitDeclarationOnly\"] = true;\n options[\"noEmitOnError\"] = false;\n }\n delete options[\"outFile\"];\n await writeFile(\n configPath,\n JSON.stringify({\n compilerOptions: options,\n files: project.files,\n include: [],\n references: project.references.map((path) => {\n const temporary = configPaths.get(path);\n if (temporary === undefined)\n throw new Error(`Missing referenced temporary project: ${path}`);\n return { path: temporary };\n }),\n }),\n );\n }\n const root = configPaths.get(realpathSync(join(repo, \"tsconfig.json\")));\n if (root === undefined) throw new Error(\"Missing temporary root config\");\n const baselineRaw = timedCommand({\n command: process.execPath,\n args: [\n compiler,\n ...(graph.build\n ? [\"--build\", \"--force\", root]\n : [\"--noEmit\", \"--project\", root]),\n \"--pretty\",\n \"false\",\n ],\n repo,\n });\n const candidate = timedCommand({\n command: bun,\n args: bunCheckArgs(root, graph.build),\n repo,\n });\n const sourceDiagnostics = (output: string) =>\n sourceDiagnosticSet({\n output,\n repo,\n scratch,\n configPaths: graph.projects.map(({ path }) => path),\n });\n const baselineDiagnostics = sourceDiagnostics(baselineRaw.output);\n // TypeScript can report source diagnostics as 2 even for declaration-only noEmit inputs.\n const baseline = {\n ...baselineRaw,\n rawStatus: baselineRaw.status,\n status: diagnosticExitStatus({\n status: baselineRaw.status,\n output: baselineRaw.output,\n repo,\n }),\n diagnostics: baselineDiagnostics,\n };\n const repository = repositoryDiagnosticComparison({\n baseline,\n candidate,\n repo,\n scratch,\n configPaths: [\n ...graph.projects.map(({ path }) => path),\n ...configPaths.values(),\n ],\n });\n return {\n baseline,\n candidate: {\n ...candidate,\n rawStatus: candidate.status,\n diagnostics: sourceDiagnostics(candidate.output),\n },\n repository,\n };\n } finally {\n await rm(scratch, { recursive: true, force: true });\n }\n};\n\ntype RunTypecheckParityOptions = {\n repo: string;\n policy: unknown;\n bun?: string;\n};\nexport const runTypecheckParity = async ({\n repo,\n policy,\n bun = process.versions.bun ? process.execPath : \"bun\",\n}: RunTypecheckParityOptions) => {\n await assertUnshadowedCheck(repo);\n assertBunVersion(bun, policy);\n const compiler = await resolveCompiler(repo, policy);\n const graph = discoverConfigGroups({ repo, compiler });\n const { groups } = graph;\n const { baseline, candidate, repository } = await compareRepository({\n repo,\n compiler,\n bun,\n graph,\n });\n console.log(\"Class | TypeScript diagnostics | Bun diagnostics | Result\");\n console.log(\n `repository | ${baseline.diagnostics.join(\",\")} | ${candidate.diagnostics.join(\",\")} | ${repository.passed ? \"PASS\" : \"FAIL\"}`,\n );\n console.log(\n `repository tsc: wall=${baseline.wall.toFixed(3)}s maxRSS=${baseline.maxRssKiB}KiB exit=${baseline.rawStatus}`,\n );\n console.log(\n `repository bun: wall=${candidate.wall.toFixed(3)}s maxRSS=${candidate.maxRssKiB}KiB exit=${candidate.rawStatus}`,\n );\n for (const diagnostic of repository.configurationDiagnostics)\n console.error(`FAIL: invalid repository configuration: ${diagnostic}`);\n const scratch = await mkdtemp(join(tmpdir(), \"typecheck-parity-\"));\n const groupResults = [];\n try {\n for (const [index, group] of groups.entries()) {\n console.log(\n `Config group ${index + 1}: ${relative(repo, group.path)} (${group.projects.length} projects)`,\n );\n const results = [];\n let tscWall = 0;\n let bunWall = 0;\n let tscRss = 0;\n let bunRss = 0;\n const contexts = await temporaryProjectTree({\n scratch: join(scratch, `config-${index + 1}`),\n projects: [group.path],\n });\n const context = contexts.get(group.path);\n if (context === undefined)\n throw new Error(`Missing temporary fixture context: ${group.path}`);\n const groupFolder = context.folder;\n const compilerOptions = fixtureCompilerOptions({\n compilerOptions: group.compilerOptions,\n configPath: group.path,\n });\n await writeFile(\n join(groupFolder, \"package.json\"),\n JSON.stringify(\n group.packageContext ?? fixturePackageContext(group.path),\n ),\n );\n for (const fixture of fixtures) {\n const inputs = fixtureInputs({\n files: Object.keys(fixture.files),\n compilerOptions,\n });\n if (inputs.status === \"inapplicable\") {\n console.log(\n `${fixture.name} (inactive under this config: ${inputs.reason}) | | | INACTIVE`,\n );\n continue;\n }\n const folder = join(groupFolder, fixture.name);\n await mkdir(folder);\n await writeFile(\n join(folder, \"tsconfig.json\"),\n JSON.stringify({\n compilerOptions,\n files: inputs.files,\n include: [],\n exclude: [],\n }),\n );\n for (const [name, content] of Object.entries(fixture.files))\n await writeFile(join(folder, name), content);\n const tsc = timedCommand({\n command: process.execPath,\n args: [compiler, \"--noEmit\", \"--pretty\", \"false\", \"-p\", folder],\n repo: folder,\n });\n const checked = timedCommand({\n command: bun,\n args: [...bunCheckArgs(folder), \"--threads=1\"],\n repo: folder,\n });\n const result = fixtureParity({\n seedFiles: inputs.files,\n expected: fixture.codes,\n match: fixture.anyCode ? \"any\" : \"all\",\n repo: folder,\n baseline: {\n ...tsc,\n status: diagnosticExitStatus({\n status: tsc.status,\n output: tsc.output,\n repo: folder,\n }),\n },\n candidate: checked,\n });\n results.push(result);\n tscWall += tsc.wall;\n bunWall += checked.wall;\n tscRss = Math.max(tscRss, tsc.maxRssKiB);\n bunRss = Math.max(bunRss, checked.maxRssKiB);\n if (result.configurationDiagnostics.length > 0) {\n console.error(\n `FAIL: invalid fixture configuration for ${fixture.name}: ${result.configurationDiagnostics.join(\"; \")}`,\n );\n console.log(\n `${fixture.name} | configuration error | configuration error | FAIL`,\n );\n continue;\n }\n let outcome = \"INACTIVE\";\n if (result.active) outcome = result.passed ? \"PASS\" : \"FAIL\";\n console.log(\n `${fixture.name}${result.active ? \"\" : \" (inactive under this config)\"} | ${result.tscCodes.join(\",\")} | ${result.bunCodes.join(\",\")} | ${outcome}`,\n );\n if (!result.active && !result.passed)\n console.error(\n `FAIL: diagnostic comparison differs for inactive class ${fixture.name}: TypeScript exit=${tsc.status}, Bun exit=${checked.status}; missing=${result.identityMissing.join(\",\")}; extra=${result.identityExtra.join(\",\")}`,\n );\n if (result.active && result.bunCodes.length === 0) {\n console.error(\n `FAIL: Bun returned zero diagnostics for active class ${fixture.name} (exit ${checked.status})`,\n );\n if (\n checked.maxRssKiB <= NO_WORK_MAX_RSS_KIB &&\n checked.wall <= NO_WORK_MAX_WALL_SECONDS\n )\n console.error(\n `Bun measured little checker work: wall=${checked.wall.toFixed(3)}s maxRSS=${checked.maxRssKiB}KiB; verify the checker invocation`,\n );\n }\n }\n console.log(\n `fixtures tsc: wall=${tscWall.toFixed(3)}s maxRSS=${tscRss}KiB`,\n );\n console.log(\n `fixtures bun: wall=${bunWall.toFixed(3)}s maxRSS=${bunRss}KiB`,\n );\n if (!results.some(({ active }) => active))\n console.error(\n `FAIL: zero seeded fixture classes active under config group ${index + 1}`,\n );\n groupResults.push(fixtureRunPassed(results));\n }\n } finally {\n await rm(scratch, { recursive: true, force: true });\n }\n return repository.passed && groupResults.every((passed) => passed);\n};\n","#!/usr/bin/env node\nimport { readFile } from \"node:fs/promises\";\n\nimport { runTypecheckParity } from \"./typecheck-parity\";\n\nconst main = async () => {\n if (process.argv.slice(2).length > 0)\n throw new Error(\"Usage: stll-typecheck-parity (run from repository root)\");\n const policy: unknown = JSON.parse(\n await readFile(new URL(\"../toolchain.json\", import.meta.url), \"utf8\"),\n );\n if (!(await runTypecheckParity({ repo: process.cwd(), policy })))\n process.exitCode = 1;\n};\n\nmain().catch((error: unknown) => {\n process.stderr.write(\n `typecheck-parity: ${error instanceof Error ? error.message : String(error)}\\n`,\n );\n process.exitC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aAAa,OAAO,WAAW,MAAM;AACnE;;;AC90CA,MAAM,OAAO,YAAY;CACvB,IAAI,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,GACjC,MAAM,IAAI,MAAM,yDAAyD;CAC3E,MAAM,SAAkB,KAAK,MAC3B,MAAM,SAAS,IAAI,IAAI,qBAAqB,OAAO,KAAK,GAAG,GAAG,MAAM,CACtE;CACA,IAAI,CAAE,MAAM,mBAAmB;EAAE,MAAM,QAAQ,IAAI;EAAG;CAAO,CAAC,GAC5D,QAAQ,WAAW;AACvB;AAEA,KAAK,CAAC,CAAC,OAAO,UAAmB;CAC/B,QAAQ,OAAO,MACb,qBAAqB,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,EAAE,GAC9E;CACA,QAAQ,WAAW;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/oxlint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Shared general oxlint configuration for stella packages.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,8 +8,13 @@
|
|
|
8
8
|
"url": "git+https://github.com/stella/tooling.git",
|
|
9
9
|
"directory": "packages/oxlint-config"
|
|
10
10
|
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"stll-toolchain-check": "./dist/toolchain-check-cli.mjs",
|
|
13
|
+
"stll-typecheck-parity": "./dist/typecheck-parity-cli.mjs"
|
|
14
|
+
},
|
|
11
15
|
"files": [
|
|
12
|
-
"dist"
|
|
16
|
+
"dist",
|
|
17
|
+
"toolchain.json"
|
|
13
18
|
],
|
|
14
19
|
"type": "module",
|
|
15
20
|
"main": "dist/index.mjs",
|
|
@@ -47,14 +52,15 @@
|
|
|
47
52
|
"default": "./dist/no-raw-colors.cjs"
|
|
48
53
|
},
|
|
49
54
|
"default": "./dist/no-raw-colors.mjs"
|
|
50
|
-
}
|
|
55
|
+
},
|
|
56
|
+
"./toolchain.json": "./toolchain.json"
|
|
51
57
|
},
|
|
52
58
|
"publishConfig": {
|
|
53
59
|
"access": "public"
|
|
54
60
|
},
|
|
55
61
|
"scripts": {
|
|
56
62
|
"build": "tsdown",
|
|
57
|
-
"typecheck": "
|
|
63
|
+
"typecheck": "bun check",
|
|
58
64
|
"test": "bun test",
|
|
59
65
|
"format": "oxfmt ."
|
|
60
66
|
},
|
package/toolchain.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bun": "1.4.3",
|
|
3
|
+
"typescript": "7.0.2",
|
|
4
|
+
"oxlint": "1.81.0",
|
|
5
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
6
|
+
"typescriptInstallLayouts": [
|
|
7
|
+
{
|
|
8
|
+
"type": "direct",
|
|
9
|
+
"compilerPackage": "typescript",
|
|
10
|
+
"compilerSpecifier": "7.0.2",
|
|
11
|
+
"typecheckCommand": "bun check"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "split-compatibility",
|
|
15
|
+
"compilerPackage": "@typescript/native",
|
|
16
|
+
"compilerSpecifier": "npm:typescript@7.0.2",
|
|
17
|
+
"compatibilityPackage": "typescript",
|
|
18
|
+
"compatibilitySpecifier": "6.0.3",
|
|
19
|
+
"typecheckCommand": "bun check"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"typescript6Compatibility": {
|
|
23
|
+
"version": "6.0.3",
|
|
24
|
+
"packageAlias": "typescript-compat",
|
|
25
|
+
"apiConsumers": ["TypeScript compiler API"],
|
|
26
|
+
"peerBlockers": [
|
|
27
|
+
"@astrojs/check",
|
|
28
|
+
"@typescript-eslint/utils",
|
|
29
|
+
"dependency-cruiser"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|