Changesets · Branches · Tags · Compare
| Changeset | 231e99760742beef93f061ebbb69c1df04e5031a301583c9884f5d8864ac4072 |
|---|---|
| Author | Nate <sestinj@gmail.com> · 2025-08-22 21:49 -07:00 |
| Committer | Nate <sestinj@gmail.com> · 2025-08-22 21:49 -07:00 |
| Parents | 9f1ca54f3895 |
1 file changed
modified extensions/cli/build.mjs +12 −6
| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | #!/usr/bin/env node |
| 2 | 2 | |
| 3 | 3 | import * as esbuild from "esbuild"; |
| 4 | -import { writeFileSync, chmodSync } from "fs"; | |
| 5 | -import { resolve, dirname } from "path"; | |
| 4 | +import { chmodSync, writeFileSync } from "fs"; | |
| 5 | +import { dirname, resolve } from "path"; | |
| 6 | 6 | import { fileURLToPath } from "url"; |
| 7 | 7 | |
| 8 | 8 | const __dirname = dirname(fileURLToPath(import.meta.url)); |
| @@ -59,9 +59,15 @@ | ||
| 59 | 59 | __dirname, |
| 60 | 60 | "../../packages/config-types/dist/index.js", |
| 61 | 61 | ), |
| 62 | - "core": resolve(__dirname, "../../core"), | |
| 63 | - "@continuedev/fetch": resolve(__dirname, "../../packages/fetch/dist/index.js"), | |
| 64 | - "@continuedev/llm-info": resolve(__dirname, "../../packages/llm-info/dist/index.js"), | |
| 62 | + core: resolve(__dirname, "../../core"), | |
| 63 | + "@continuedev/fetch": resolve( | |
| 64 | + __dirname, | |
| 65 | + "../../packages/fetch/dist/index.js", | |
| 66 | + ), | |
| 67 | + "@continuedev/llm-info": resolve( | |
| 68 | + __dirname, | |
| 69 | + "../../packages/llm-info/dist/index.js", | |
| 70 | + ), | |
| 65 | 71 | }, |
| 66 | 72 | |
| 67 | 73 | // Add banner to create require for CommonJS packages |
| @@ -76,7 +82,7 @@ | ||
| 76 | 82 | |
| 77 | 83 | // Create wrapper script with shebang |
| 78 | 84 | writeFileSync("dist/cn.js", "#!/usr/bin/env node\nimport('./index.js');"); |
| 79 | - | |
| 85 | + | |
| 80 | 86 | // Make the wrapper script executable |
| 81 | 87 | chmodSync("dist/cn.js", 0o755); |
| 82 | 88 |