nx/tools/scripts/analyze-docs.mjs
Jack Hsu ec457f72df
chore(repo): add raw-docs (#31640)
This PR adds `raw-docs` integration. See here for more details:
https://github.com/nrwl/raw-docs
2025-06-19 12:53:01 -04:00

19 lines
513 B
JavaScript
Executable File

#!/usr/bin/env node
import { readFileSync } from 'fs';
import { execSync } from 'child_process';
try {
const config = JSON.parse(
readFileSync(new URL('../../.rawdocs.local.json', import.meta.url))
);
execSync(
`node ${config.rawDocsPath}/scripts/analyze-changes.mjs ${process.argv
.slice(2)
.join(' ')}`,
{ stdio: 'inherit' }
);
} catch {
console.log(
`Error: Run installation with:\ngh api repos/nrwl/raw-docs/contents/install.sh --jq '.content' | base64 -d | bash`
);
}