Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

relay-compiler-language-js-flow-uncommented

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

relay-compiler-language-js-flow-uncommented

Language plugin for Relay that generates the same output as the default compiler, but with Flow types as actual source and not inside comments.

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
5
-54.55%
Maintainers
1
Weekly downloads
 
Created
Source

relay-compiler-language-js-flow-uncommented

Language plugin for Relay that generates the same output as the default compiler, but with Flow types as actual source and not inside comments.

Why?

Some IDEs/editors (like WebStorm/IDEA) do not understand Flow when it's inside comments (even though that's actually valid Flow). This thin language plugin solves that.

Usage

Install the package.

yarn add --dev relay-compiler-language-js-flow-uncommented

In your script that runs the compiler, add --language js-flow-uncommented. Example as a script in package.json:

...
"scripts": {
  ...
  "relay": "relay-compiler --src src --schema src/config/schema.graphql --language js-flow-uncommented"
  ...
}
...

Keywords

relay

FAQs

Package last updated on 10 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts