chore: add TypeScript dead-code checks

This commit is contained in:
Andrey Avtomonov 2026-05-13 13:04:30 +02:00
parent 46b013e32a
commit ef3ac8ee91
25 changed files with 818 additions and 252 deletions

View file

@ -22,10 +22,6 @@ function publicPackagePattern(text) {
return new RegExp(text.replaceAll('{package}', escapeRegExp(publicNpmPackageName())));
}
function runtimeWheelPackagePattern(text) {
return new RegExp(text.replaceAll('{package}', escapeRegExp(runtimeWheelPackageName())));
}
describe('standalone example docs', () => {
it('documents the local warehouse example from the examples index', async () => {
const examples = await readText('examples/README.md');

View file

@ -27,8 +27,6 @@ import {
writeArtifactManifest,
} from './package-artifacts.mjs';
const STALE_METABASE_UNSUPPORTED = ['Standalone Metabase scheduled fetch', 'is intentionally unsupported'].join(' ');
async function writeJson(path, value) {
await writeFile(path, `${JSON.stringify(value, null, 2)}\n`);
}

View file

@ -9,7 +9,6 @@ import { runWorkspaceKtx } from './run-ktx.mjs';
const scriptDir = dirname(fileURLToPath(import.meta.url));
const ktxRootDir = resolve(scriptDir, '..');
const repoRootDir = resolve(ktxRootDir, '..');
const defaultProjectDir = resolve(ktxRootDir, 'examples/orbit-relationship-verification');
const defaultReportPath = resolve(
ktxRootDir,