@seyuna/cli 0.0.2-dev.2 → 0.0.2-dev.4

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 CHANGED
Binary file
package/deno-wrapper.ts CHANGED
@@ -5,13 +5,7 @@ import { ensureDir, existsSync } from "jsr:@std/fs@^0.224.0";
5
5
 
6
6
  const scriptDir = dirname(fromFileUrl(import.meta.url));
7
7
 
8
- // Get version from deno.json located relative to this script file
9
- async function getVersion(): Promise<string> {
10
- const configPath = join(scriptDir, "deno.json");
11
- const text = await Deno.readTextFile(configPath);
12
- const config = JSON.parse(text);
13
- return config.version;
14
- }
8
+ const version = "0.0.2-dev.4";
15
9
 
16
10
  // Download a file from a URL to a destination path
17
11
  async function downloadFile(url: string, dest: string): Promise<void> {
@@ -33,8 +27,6 @@ async function main() {
33
27
  if (!existsSync(binPath)) {
34
28
  console.log("seyuna binary not found, downloading...");
35
29
 
36
- const version = await getVersion();
37
-
38
30
  let target: string;
39
31
  switch (platform) {
40
32
  case "windows":
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seyuna/cli",
3
- "version": "0.0.2-dev.2",
3
+ "version": "0.0.2-dev.4",
4
4
  "description": "Seyuna CLI",
5
5
  "bin": {
6
6
  "seyuna": "./deno-wrapper.ts"
package/node-install.js CHANGED
@@ -6,6 +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.4";
9
10
 
10
11
  async function downloadFile(url, dest) {
11
12
  const res = await fetch(url);
@@ -26,15 +27,7 @@ async function downloadFile(url, dest) {
26
27
  });
27
28
  }
28
29
 
29
- async function getVersion() {
30
- const pkgPath = path.join(__dirname, "package.json");
31
- const pkgJson = await readFile(pkgPath, "utf8");
32
- return JSON.parse(pkgJson).version;
33
- }
34
-
35
30
  async function main() {
36
- const version = await getVersion();
37
-
38
31
  const platform = process.platform;
39
32
  let target;
40
33
  if (platform === "win32") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seyuna/cli",
3
- "version": "0.0.2-dev.2",
3
+ "version": "0.0.2-dev.4",
4
4
  "bin": {
5
5
  "seyuna": "./bin/seyuna"
6
6
  },