Skip to content

Commit 6ee7690

Browse files
committed
alternative windows fix
1 parent b8ca4dc commit 6ee7690

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
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.22
4+
5+
### Patch Changes
6+
7+
- Alternative windows fix
8+
39
## 0.0.21
410

511
### Patch Changes

bin/cli.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env node
2-
import { fileURLToPath } from 'url';
3-
import { dirname } from 'path';
4-
import { join } from 'path';
2+
import { fileURLToPath } from "url";
3+
import { dirname } from "path";
4+
import { join } from "path";
55

6-
const __filename = fileURLToPath(import.meta.url);
7-
const __dirname = dirname(__filename);
6+
const cliUrl = import.meta.url;
7+
const distIndex = cliUrl.replace("bin/cli.js", "dist/index.js");
88

9-
await import(join(__dirname, '..', 'dist', 'index.js'));
9+
await import(distIndex);

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.21",
4+
"version": "0.0.22",
55
"type": "module",
66
"bin": "./bin/cli.js",
77
"main": "./dist/index.js",

0 commit comments

Comments
 (0)