feat(cli): add @videojs/cli docs command for LLM-friendly installation (#1214)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-04-14 11:07:49 -05:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 9681515446
commit 24b8b77c8a
49 changed files with 2061 additions and 460 deletions
@@ -0,0 +1,27 @@
import { existsSync } from 'node:fs';
import { resolve } from 'node:path';
import { describe, expect, it } from 'vitest';
/**
* The CLI aliases source files from the site package via path aliases in
* tsdown.config.ts and vitest.config.ts. If these files move, the CLI build
* breaks silently. This test makes that failure loud.
*/
const SITE_ROOT = resolve(__dirname, '../../../../../site/src');
const ALIASED_FILES = [
'utils/installation/codegen.ts',
'utils/installation/types.ts',
'utils/installation/cdn-code.ts',
'utils/installation/detect-renderer.ts',
'consts.ts',
];
describe('site source aliases', () => {
for (const file of ALIASED_FILES) {
it(`site/src/${file} exists`, () => {
const fullPath = resolve(SITE_ROOT, file);
expect(existsSync(fullPath), `Aliased site file missing: ${fullPath}`).toBe(true);
});
}
});