Skip to content

Commit b8ca4dc

Browse files
committed
fix windows compability for cli tool
1 parent 15131e1 commit b8ca4dc

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# mycoder
22

3+
## 0.0.21
4+
5+
### Patch Changes
6+
7+
- Fix windows compatibility for cli tool.
8+
39
## 0.0.20
410

511
### Patch Changes

bin/cli.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
#!/usr/bin/env node
2-
import "../dist/index.js";
2+
import { fileURLToPath } from 'url';
3+
import { dirname } from 'path';
4+
import { join } from 'path';
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = dirname(__filename);
8+
9+
await import(join(__dirname, '..', 'dist', 'index.js'));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mycoder",
33
"description": "A command line tool using agent that can do arbitrary tasks, including coding tasks",
4-
"version": "0.0.20",
4+
"version": "0.0.21",
55
"type": "module",
66
"bin": "./bin/cli.js",
77
"main": "./dist/index.js",

0 commit comments

Comments
 (0)