Skip to content

Commit 01208ca

Browse files
Remove unnecessary docs
Don't want to imply that using system-installed `copilot` is a good idea as the version can be wrong.
1 parent fb67979 commit 01208ca

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

nodejs/README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -850,26 +850,6 @@ try {
850850
- Node.js >= 18.0.0
851851
- GitHub Copilot CLI installed and in PATH (or provide custom `cliPath`)
852852

853-
### CJS / CommonJS Support
854-
855-
The SDK ships both ESM and CJS builds. Node.js and bundlers (esbuild, webpack, etc.) automatically select the correct format via the `exports` field in `package.json`:
856-
857-
- `import` / `from` → ESM (`dist/index.js`)
858-
- `require()` → CJS (`dist/cjs/index.cjs`)
859-
860-
This means the SDK works out of the box in CJS environments such as VS Code extensions bundled with `esbuild format:"cjs"`.
861-
862-
### System-installed CLI (winget, brew, apt)
863-
864-
If you installed the Copilot CLI separately rather than relying on the SDK's bundled copy, pass `cliPath` explicitly:
865-
866-
```typescript
867-
const client = new CopilotClient({
868-
cliPath: '/usr/local/bin/copilot', // macOS/Linux
869-
// cliPath: 'C:\\path\\to\\copilot.exe', // Windows (winget, etc.)
870-
});
871-
```
872-
873853
## License
874854

875855
MIT

0 commit comments

Comments
 (0)