Skip to content

Commit 78712c9

Browse files
More feedback
1 parent 092ab21 commit 78712c9

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

nodejs/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,12 @@ try {
655655
The SDK can automatically download and manage the Copilot CLI for you. This is useful when you can't rely on the CLI being pre-installed.
656656

657657
```typescript
658+
import { homedir } from "node:os";
659+
import { join } from "node:path";
660+
658661
const client = new CopilotClient({
659662
acquisition: {
660-
downloadDir: "~/.myapp/copilot-cli", // Where to store CLI versions
663+
downloadDir: join(homedir(), ".myapp", "copilot-cli"), // Where to store CLI versions
661664
},
662665
});
663666

nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"type": "module",
1818
"scripts": {
19-
"clean": "rimraf --glob dist *.tgz src/generated",
19+
"clean": "rimraf --glob dist *.tgz src/generatedOnBuild",
2020
"prebuild": "tsx scripts/generate-versions.ts",
2121
"build": "tsx esbuild-copilotsdk-nodejs.ts",
2222
"test": "vitest run",

nodejs/test/e2e/acquisition.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ import { tmpdir, homedir } from "node:os";
99
import { CopilotClient } from "../../src/index.js";
1010
import { acquireCli, PREFERRED_CLI_VERSION } from "../../src/acquisition.js";
1111

12-
/**
13-
* E2E tests for CLI acquisition.
14-
*
15-
* These tests require network access to download from GitHub Releases.
16-
* They are skipped in CI environments without network access.
17-
*/
1812
describe("CLI Acquisition E2E", () => {
1913
let testDir: string;
2014

0 commit comments

Comments
 (0)