@seyuna/cli 0.0.2-dev.5 → 0.0.2-dev.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/seyuna-linux CHANGED
Binary file
package/deno-wrapper.ts CHANGED
@@ -1,7 +1,11 @@
1
- import { join } from "https://deno.land/std/path/mod.ts";
1
+ import { fromFileUrl, dirname, join } from "jsr:@std/path@^0.224.0";
2
2
 
3
+ // Get the directory where this script is located
4
+ const scriptDir = dirname(fromFileUrl(import.meta.url));
5
+
6
+ // Use scriptDir instead of cwd
3
7
  function getWritableDir(): string {
4
- return join(Deno.cwd(), ".seyuna");
8
+ return join(scriptDir, ".seyuna");
5
9
  }
6
10
 
7
11
  const platform = Deno.build.os;
@@ -11,7 +15,7 @@ const binaryName = platform === "windows"
11
15
  ? "seyuna-macos"
12
16
  : "seyuna-linux";
13
17
 
14
- const version = "0.0.2-dev.5";
18
+ const version = "0.0.2-dev.6";
15
19
  const url = `https://github.com/seyuna-corp/seyuna-cli/releases/download/v${version}/${binaryName}`;
16
20
 
17
21
  const binDir = getWritableDir();
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seyuna/cli",
3
- "version": "0.0.2-dev.5",
3
+ "version": "0.0.2-dev.6",
4
4
  "description": "Seyuna CLI",
5
5
  "bin": {
6
6
  "seyuna": "./deno-wrapper.ts"
package/node-install.js CHANGED
@@ -6,7 +6,7 @@ import { fileURLToPath } from "url";
6
6
  import process from "process";
7
7
 
8
8
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
9
- const version = "0.0.2-dev.5";
9
+ const version = "0.0.2-dev.6";
10
10
 
11
11
  async function downloadFile(url, dest) {
12
12
  const res = await fetch(url);
@@ -43,12 +43,7 @@ async function main() {
43
43
  }
44
44
 
45
45
  const releaseUrl = `https://github.com/seyuna-corp/seyuna-cli/releases/download/v${version}/${target}`;
46
- const binaryName = platform === "windows"
47
- ? "seyuna-windows.exe"
48
- : platform === "darwin"
49
- ? "seyuna-macos"
50
- : "seyuna-linux";
51
- const dest = path.join(__dirname, "bin", binaryName);
46
+ const dest = path.join(__dirname, "bin", target);
52
47
 
53
48
  try {
54
49
  await downloadFile(releaseUrl, dest);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seyuna/cli",
3
- "version": "0.0.2-dev.5",
3
+ "version": "0.0.2-dev.6",
4
4
  "bin": {
5
5
  "seyuna": "./bin/seyuna"
6
6
  },
package/bin/seyuna DELETED
Binary file