mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
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:
co-authored by
Claude Opus 4.6
parent
9681515446
commit
24b8b77c8a
@@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user