@seyuna/cli 0.0.2-dev.7 → 0.0.2-dev.9

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/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.7";
9
+ const version = "0.0.2-dev.9";
10
10
 
11
11
  async function downloadFile(url, dest) {
12
12
  const res = await fetch(url);
@@ -43,7 +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 dest = path.join(__dirname, "bin", target);
46
+ const dest = path.join(__dirname, "bin", "seyuna");
47
47
 
48
48
  try {
49
49
  await downloadFile(releaseUrl, dest);
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@seyuna/cli",
3
- "version": "0.0.2-dev.7",
3
+ "version": "0.0.2-dev.9",
4
4
  "bin": {
5
5
  "seyuna": "./bin/seyuna"
6
6
  },
7
7
  "scripts": {
8
- "prepare": "node node-install.js"
8
+ "postinstall": "node node-install.js"
9
9
  },
10
10
  "description": "Seyuna CLI",
11
11
  "author": "Seyuna",
package/bin/seyuna DELETED
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env node
2
- import { spawn } from "child_process";
3
- import path from "path";
4
- import { fileURLToPath } from "url";
5
- import process from "process";
6
-
7
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
8
- const platform = process.platform;
9
- let target;
10
- if (platform === "win32") {
11
- target = "seyuna-windows.exe";
12
- } else if (platform === "darwin") {
13
- target = "seyuna-macos";
14
- } else if (platform === "linux") {
15
- target = "seyuna-linux";
16
- } else {
17
- console.error(`Unsupported platform: ${platform}`);
18
- process.exit(1);
19
- }
20
- const binPath = path.join(__dirname, target);
21
-
22
- const child = spawn(binPath, process.argv.slice(2), {
23
- stdio: "inherit",
24
- });
25
-
26
- child.on("exit", code => process.exit(code));
package/bin/seyuna-linux DELETED
Binary file
package/deno.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "name": "@seyuna/cli",
3
- "version": "0.0.2-dev.7",
4
- "description": "Seyuna CLI",
5
- "bin": {
6
- "seyuna": "./deno-wrapper.ts"
7
- },
8
- "exports": "./deno-wrapper.ts",
9
- "license": "MIT",
10
- "tasks": {
11
- "install": "deno run --allow-write --allow-net deno-install.ts"
12
- }
13
- }