@apollo/rover 0.5.2 → 0.5.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.
package/README.md CHANGED
@@ -37,7 +37,7 @@ rover graph publish --schema ./path-to-valid-schema test@cats
37
37
  ## Command-line options
38
38
 
39
39
  ```console
40
- Rover 0.5.2
40
+ Rover 0.5.3
41
41
 
42
42
  Rover - Your Graph Companion
43
43
  Read the getting started guide by running:
@@ -141,7 +141,7 @@ To install a specific version of Rover (note the `v` prefixing the version numbe
141
141
  > Note: If you're installing Rover in a CI environment, it's best to target a specific version rather than using the latest URL, since future major breaking changes could affect CI workflows otherwise.
142
142
 
143
143
  ```bash
144
- curl -sSL https://rover.apollo.dev/nix/v0.5.2 | sh
144
+ curl -sSL https://rover.apollo.dev/nix/v0.5.3 | sh
145
145
  ```
146
146
 
147
147
  You will need `curl` installed on your system to run the above installation commands. You can get the latest version from [the curl downloads page](https://curl.se/download.html).
@@ -159,7 +159,7 @@ To install a specific version of Rover (note the `v` prefixing the version numbe
159
159
  > Note: If you're installing Rover in a CI environment, it's best to target a specific version rather than using the latest URL, since future major breaking changes could affect CI workflows otherwise.
160
160
 
161
161
  ```bash
162
- iwr 'https://rover.apollo.dev/win/v0.5.2' | iex
162
+ iwr 'https://rover.apollo.dev/win/v0.5.3' | iex
163
163
  ```
164
164
 
165
165
  #### npm installer
package/binary.js CHANGED
@@ -2,7 +2,6 @@ const { Binary } = require("binary-install");
2
2
  const os = require("os");
3
3
  const cTable = require("console.table");
4
4
  const libc = require("detect-libc");
5
- const { join } = require("path");
6
5
  const { configureProxy } = require("axios-proxy-builder");
7
6
 
8
7
  const error = (msg) => {
@@ -116,7 +115,13 @@ const install = () => {
116
115
  );
117
116
  };
118
117
 
118
+ const run = () => {
119
+ const binary = getBinary();
120
+ binary.run();
121
+ };
122
+
119
123
  module.exports = {
120
124
  install,
125
+ run,
121
126
  getBinary,
122
127
  };
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@apollo/rover",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "The new Apollo CLI",
5
5
  "main": "index.js",
6
+ "bin": {
7
+ "rover": "run.js"
8
+ },
6
9
  "scripts": {
7
10
  "prepack": "cp ../../README.md . && cp ../../LICENSE .",
8
11
  "postinstall": "node ./install.js",
package/run.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { run } = require("./binary");
4
+ run();