relay-compiler 0.0.0-main-b450cee4 → 0.0.0-main-a1f7aba0

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
@@ -29,12 +29,8 @@ containing `graphql` literals) and the GraphQL schema for the project.
29
29
  ```
30
30
  Relay Compiler will automatically discover the config if:
31
31
 
32
- - There is a `relay.config.json`, `relay.config.js`, `relay.config.cjs`
33
- or `relay.config.mjs` file at the root of the project (i.e. in the same folder
34
- as the `package.json` file).
35
- - There is a `.relayrc.json`, `.relayrc.js`, `.relayrc.cjs`, `.relayrc.mjs`
36
- or `.relayrc` file at the root of the project (i.e. in the same folder as
37
- the `package.json` file).
32
+ - There is a `relay.config.json`, `relay.config.js` file at the root of the
33
+ project (i.e. in the same folder as the `package.json` file).
38
34
  - The `package.json` file contains a `"relay"` key.
39
35
 
40
36
  Additionally, this config file can be specified with the CLI argument `--config`
@@ -50,9 +46,12 @@ or with yarn
50
46
  yarn relay --config ./relay.json
51
47
  ```
52
48
 
49
+ Please note, that if you pass configuration options via --cli arguments, you'll
50
+ need to provide a separate configuration for the [babel plugin](https://www.npmjs.com/package/babel-plugin-relay).
51
+
53
52
  ## File Finder
54
53
  Relay compiler uses [`watchman`](https://facebook.github.io/watchman/) to find
55
- file souces, and "listen" to the file changes in the "watch" mode.
54
+ file sources, and "listen" to the file changes in the "watch" mode.
56
55
  If `watchman` is not available, the compiler will
57
56
  use [glob](https://docs.rs/glob/latest/glob/) to query the filesystem for files.
58
57
 
@@ -88,6 +87,14 @@ use [glob](https://docs.rs/glob/latest/glob/) to query the filesystem for files.
88
87
  - `params` The document will be in a `POST`
89
88
  parameter `text`. This map can contain additional
90
89
  parameters to send. [object]
90
+ - `codegenCommand` Command name that for relay compiler. [string]
91
+
92
+ - `isDevVariableName` Name of the global variable for dev mode (`__DEV__`).
93
+ [string]
94
+ - `jsModuleFormat` Formatting style for generated files. `commonjs`
95
+ or `haste`. Default is `commonjs`.
96
+ [string]
97
+
91
98
 
92
99
  ### CLI configuration
93
100
 
package/linux-x64/relay CHANGED
Binary file
package/macos-arm64/relay CHANGED
Binary file
package/macos-x64/relay CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relay-compiler",
3
3
  "description": "A compiler tool for building GraphQL-driven applications.",
4
- "version": "0.0.0-main-b450cee4",
4
+ "version": "0.0.0-main-a1f7aba0",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"
package/win-x64/relay.exe CHANGED
Binary file