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,26 @@
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { dirname, resolve } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { defineConfig } from 'tsdown';
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
const pkg = JSON.parse(readFileSync(resolve(__dirname, 'package.json'), 'utf-8'));
|
||||
|
||||
export default defineConfig({
|
||||
entry: { index: './src/index.ts' },
|
||||
platform: 'node',
|
||||
format: 'es',
|
||||
clean: true,
|
||||
banner: { js: '#!/usr/bin/env node' },
|
||||
noExternal: ['site'],
|
||||
define: {
|
||||
__CLI_VERSION__: JSON.stringify(pkg.version),
|
||||
},
|
||||
alias: {
|
||||
'@/utils/installation/codegen': resolve(__dirname, '../../site/src/utils/installation/codegen.ts'),
|
||||
'@/utils/installation/types': resolve(__dirname, '../../site/src/utils/installation/types.ts'),
|
||||
'@/utils/installation/cdn-code': resolve(__dirname, '../../site/src/utils/installation/cdn-code.ts'),
|
||||
'@/utils/installation/detect-renderer': resolve(__dirname, '../../site/src/utils/installation/detect-renderer.ts'),
|
||||
'@/consts': resolve(__dirname, '../../site/src/consts.ts'),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user