@railway/cli 1.1.2 → 1.2.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/README.md CHANGED
@@ -28,7 +28,7 @@ npm i -g @railway/cli
28
28
  ### Yarn
29
29
 
30
30
  ```shell
31
- yarn add global @railway/cli
31
+ yarn global add @railway/cli
32
32
  ```
33
33
 
34
34
  ### curl
package/bin/railway.js CHANGED
@@ -1,11 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { execFileSync } from "child_process";
3
3
  import path from "path";
4
+ import { exit } from "process";
4
5
  import { fileURLToPath } from "url";
5
6
 
6
7
  const __filename = fileURLToPath(import.meta.url);
7
8
  const __dirname = path.dirname(__filename);
8
9
 
9
- execFileSync(path.resolve(`${__dirname}/railway`), process.argv.slice(2), {
10
- stdio: "inherit",
11
- });
10
+ try {
11
+ execFileSync(path.resolve(`${__dirname}/railway`), process.argv.slice(2), {
12
+ stdio: "inherit",
13
+ });
14
+ } catch (e) {
15
+ exit(1)
16
+ }
17
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railway/cli",
3
- "version": "1.1.2",
3
+ "version": "1.2.1",
4
4
  "description": "Develop and deploy code with zero configuration",
5
5
  "type": "module",
6
6
  "author": "Jake Runzer",