This PR adds `raw-docs` integration. See here for more details: https://github.com/nrwl/raw-docs
19 lines
513 B
JavaScript
Executable File
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`
|
|
);
|
|
}
|