relay-compiler 0.0.0-main-4109d4ad → 0.0.0-main-14550c8b

Sign up to get free protection for your applications and to get access to all the features.
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/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Copyright (c) Facebook, Inc. and its affiliates.
3
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
4
4
  *
5
5
  * This source code is licensed under the MIT license found in the
6
6
  * LICENSE file in the root directory of this source tree.
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
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-4109d4ad",
4
+ "version": "0.0.0-main-14550c8b",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"
package/win-x64/relay.exe CHANGED
Binary file