@railway/cli 3.0.7 → 3.0.12

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.
@@ -6,7 +6,7 @@ export const CONFIG = {
6
6
  * The name of the binary
7
7
  * @type {string}
8
8
  */
9
- name: "railway{{ext}}",
9
+ name: "railway",
10
10
 
11
11
  /**
12
12
  * Where to save the unzipped files
@@ -20,12 +20,7 @@ async function install() {
20
20
  // Fetch Static Config
21
21
  let { name: binName, path: binPath, url } = CONFIG;
22
22
  let triple = triples.platformArchTriples[process.platform][process.arch][0];
23
- if (process.platform === "win32") {
24
- triple.ext = ".exe";
25
- } else {
26
- triple.ext = "";
27
- }
28
- binName = binName.replace(/{{ext}}/g, triple.ext);
23
+
29
24
  url = url.replace(/{{triple}}/g, triple.raw);
30
25
  url = url.replace(/{{version}}/g, version);
31
26
  url = url.replace(/{{bin_name}}/g, binName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railway/cli",
3
- "version": "3.0.7",
3
+ "version": "3.0.12",
4
4
  "description": "Develop and deploy code with zero configuration",
5
5
  "type": "module",
6
6
  "author": "Jake Runzer",