mirror of
https://github.com/zoriya/v10.git
synced 2026-08-05 05:37:21 +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
@@ -170,6 +170,12 @@ const REQUIRED_FIELDS = ['sideEffects', 'files', 'exports'];
|
||||
/** Required only when the package has a root "." export. */
|
||||
const ROOT_EXPORT_FIELDS = ['main', 'module', 'types'];
|
||||
|
||||
/**
|
||||
* Packages excluded from metadata checks.
|
||||
* CLI is bin-only — sideEffects/exports don't apply.
|
||||
*/
|
||||
const METADATA_EXCLUDE = new Set(['cli']);
|
||||
|
||||
function checkPackageMetadata() {
|
||||
const warnings = [];
|
||||
|
||||
@@ -179,6 +185,9 @@ function checkPackageMetadata() {
|
||||
// Skip private packages — they're internal.
|
||||
if (pkg.private) continue;
|
||||
|
||||
// Skip packages that don't need library metadata.
|
||||
if (METADATA_EXCLUDE.has(dir)) continue;
|
||||
|
||||
// publishConfig.access is required for scoped public packages.
|
||||
if (pkg.publishConfig?.access !== 'public') {
|
||||
warnings.push(`${pkg.name}: missing publishConfig.access = "public"`);
|
||||
|
||||
Reference in New Issue
Block a user