@prevsh/cli 0.0.1 → 0.2.7

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/prev +1 -1
  2. package/install.js +1 -1
  3. package/package.json +7 -7
package/bin/prev CHANGED
@@ -4,7 +4,7 @@ const { execFileSync } = require("child_process");
4
4
  const path = require("path");
5
5
 
6
6
  const ext = process.platform === "win32" ? ".exe" : "";
7
- const binary = path.join(__dirname, `prev${ext}`);
7
+ const binary = path.join(__dirname, `prev-binary${ext}`);
8
8
 
9
9
  try {
10
10
  execFileSync(binary, process.argv.slice(2), { stdio: "inherit" });
package/install.js CHANGED
@@ -63,7 +63,7 @@ async function main() {
63
63
  const version = getVersion();
64
64
  const url = `https://github.com/${REPO}/releases/download/${version}/${binaryName}`;
65
65
 
66
- const destName = process.platform === "win32" ? "prev.exe" : "prev";
66
+ const destName = process.platform === "win32" ? "prev-binary.exe" : "prev-binary";
67
67
  const dest = path.join(BINARY_DIR, destName);
68
68
 
69
69
  console.log(`Downloading prev ${version} for ${process.platform}/${process.arch}...`);
package/package.json CHANGED
@@ -1,16 +1,19 @@
1
1
  {
2
2
  "name": "@prevsh/cli",
3
- "version": "0.0.1",
3
+ "version": "0.2.7",
4
4
  "description": "Prev CLI - Preview environments for web projects",
5
5
  "homepage": "https://prev.sh",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/pepperpark/apt"
8
+ "url": "https://github.com/pepperpark/prev"
9
9
  },
10
10
  "license": "MIT",
11
11
  "bin": {
12
12
  "prev": "bin/prev"
13
13
  },
14
+ "scripts": {
15
+ "postinstall": "node install.js"
16
+ },
14
17
  "os": [
15
18
  "darwin",
16
19
  "linux",
@@ -25,8 +28,5 @@
25
28
  "preview",
26
29
  "deploy",
27
30
  "cli"
28
- ],
29
- "scripts": {
30
- "postinstall": "node install.js"
31
- }
32
- }
31
+ ]
32
+ }