@seedvault/cli 0.1.1 → 0.1.3

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.
Files changed (3) hide show
  1. package/bin/sv.mjs +10 -0
  2. package/dist/sv.js +1 -1
  3. package/package.json +4 -3
package/bin/sv.mjs ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import { execFileSync } from "child_process";
3
+ import { join, dirname } from "path";
4
+ import { fileURLToPath } from "url";
5
+ const __dirname = dirname(fileURLToPath(import.meta.url));
6
+ try {
7
+ execFileSync("bun", [join(__dirname, "..", "dist", "sv.js"), ...process.argv.slice(2)], { stdio: "inherit" });
8
+ } catch (e) {
9
+ process.exit(e.status || 1);
10
+ }
package/dist/sv.js CHANGED
@@ -2664,7 +2664,7 @@ async function main() {
2664
2664
  return;
2665
2665
  }
2666
2666
  if (cmd === "--version" || cmd === "-v") {
2667
- console.log("0.1.1");
2667
+ console.log("0.1.3");
2668
2668
  return;
2669
2669
  }
2670
2670
  try {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@seedvault/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "bin": {
6
- "sv": "./dist/sv.js"
6
+ "sv": "bin/sv.mjs"
7
7
  },
8
8
  "scripts": {
9
9
  "build": "bun build src/index.ts --outfile dist/sv.js --target bun",
@@ -12,7 +12,8 @@
12
12
  "prepublishOnly": "bun run build"
13
13
  },
14
14
  "files": [
15
- "dist"
15
+ "dist",
16
+ "bin"
16
17
  ],
17
18
  "dependencies": {
18
19
  "chokidar": "^4"