@samva/cli 0.1.0 → 0.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samva/cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Samva CLI — email and platform operations from your terminal",
5
5
  "keywords": [
6
6
  "cli",
@@ -18,20 +18,22 @@
18
18
  "repository": {
19
19
  "type": "git",
20
20
  "url": "https://github.com/AryaLabsHQ/samva.git",
21
- "directory": "apps/cli"
21
+ "directory": "packages/cli"
22
22
  },
23
23
  "bin": {
24
- "samva": "./bin/samva"
24
+ "samva": "./bin/samva.cjs"
25
25
  },
26
26
  "files": [
27
- "bin/samva",
28
- "install.cjs",
29
- "package.json",
27
+ "bin/samva.cjs",
28
+ "dist/bin.mjs",
30
29
  "README.md",
31
30
  "AGENTS.md",
32
31
  "LICENSE"
33
32
  ],
34
33
  "type": "module",
34
+ "exports": {
35
+ "./package.json": "./package.json"
36
+ },
35
37
  "publishConfig": {
36
38
  "access": "public"
37
39
  },
@@ -39,33 +41,31 @@
39
41
  "samva": "bun src/bin.ts",
40
42
  "build": "tsdown",
41
43
  "build:release-artifacts": "bun run scripts/build-release-artifacts.ts",
42
- "test:package": "vitest run --root ../.. --project cli apps/cli/tests/package-install.e2e.test.ts",
43
44
  "test": "vitest run --root ../.. --project cli",
45
+ "test:package": "vitest run --root ../.. --project cli packages/cli/tests/package-install.e2e.test.ts",
44
46
  "typecheck": "tsgo --noEmit"
45
47
  },
46
48
  "dependencies": {
47
49
  "@effect/platform-bun": "4.0.0-beta.102",
48
- "@samva/contracts": "0.0.0",
49
- "@samva/core": "0.0.0",
50
- "@samva/markup": "0.0.0",
51
- "@samva/vite": "0.1.0",
50
+ "@samva/markup": "0.1.1",
51
+ "@samva/vite": "0.1.1",
52
52
  "effect": "4.0.0-beta.102",
53
- "samva": "0.0.1"
53
+ "samva": "0.1.1"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@effect/vitest": "4.0.0-beta.102",
57
57
  "@types/node": "^26.1.1",
58
58
  "tsdown": "^0.22.13",
59
59
  "typescript": "^6.0.3",
60
- "vite": "~8.2.0",
61
60
  "vitest": "^4.1.10"
62
61
  },
63
- "peerDependencies": {
64
- "vite": "^7.0.0 || ^8.0.0"
62
+ "optionalDependencies": {
63
+ "@samva/cli-darwin-arm64": "0.1.1",
64
+ "@samva/cli-darwin-x64": "0.1.1",
65
+ "@samva/cli-linux-arm64": "0.1.1",
66
+ "@samva/cli-linux-x64": "0.1.1"
65
67
  },
66
- "peerDependenciesMeta": {
67
- "vite": {
68
- "optional": true
69
- }
68
+ "engines": {
69
+ "node": ">=18"
70
70
  }
71
71
  }
package/bin/samva DELETED
@@ -1,3 +0,0 @@
1
- #!/bin/sh
2
- echo "samva: native executable was not installed; reinstall @samva/cli with lifecycle scripts enabled" >&2
3
- exit 1
package/install.cjs DELETED
@@ -1,35 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { chmodSync, copyFileSync, renameSync, rmSync } = require("node:fs");
4
- const { dirname, join } = require("node:path");
5
-
6
- const target = `${process.platform}-${process.arch}`;
7
- const supported = new Set(["darwin-arm64", "darwin-x64", "linux-arm64", "linux-x64"]);
8
-
9
- if (!supported.has(target)) {
10
- console.error(
11
- `samva: unsupported platform ${target}; supported platforms are ${[...supported].join(", ")}`,
12
- );
13
- process.exit(1);
14
- }
15
-
16
- const packageName = `@samva/cli-${target}`;
17
- let manifest;
18
- // oxlint-disable-next-line samva/no-try-catch-or-throw -- install-time CommonJS boundary must report a missing optional platform package
19
- try {
20
- manifest = require.resolve(`${packageName}/package.json`, { paths: [__dirname] });
21
- } catch {
22
- console.error(
23
- `samva: ${packageName} is missing; reinstall @samva/cli without omitting optional dependencies`,
24
- );
25
- process.exit(1);
26
- }
27
-
28
- const source = join(dirname(manifest), "samva");
29
- const destination = join(__dirname, "bin", "samva");
30
- const temporary = `${destination}.installing`;
31
-
32
- rmSync(temporary, { force: true });
33
- copyFileSync(source, temporary);
34
- chmodSync(temporary, 0o755);
35
- renameSync(temporary, destination);