Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rnx-kit/config

Package Overview
Dependencies
Maintainers
7
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rnx-kit/config

Package for defining and querying information about rnx kits

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
increased by35.3%
Maintainers
7
Weekly downloads
 
Created
Source

@rnx-kit/config

Build npm version

A package for configuring and extracting configuration information about rnx-kits.

This is designed to be part of the tooling pipeline, thus it runs in the node environment.

getKitConfig([options]): KitConfig | null

This is the core routine to retrieve information about an rnx-kit. By default this will load information about the current package. It will look for kit information in the current working directory using cosmiconfig to match either rnx-kit.config.js, a "rnx-kit" section of package.json, or any of the other standard ways of supplying configuration.

Additional Options

The routine can also be configured with the following options:

OptionDescription
moduleName of a module to look up kit information for. Note that this will be loaded via require, which means it needs to be a visible dependency of some sort.
cwdDo the lookup from the specified working directory

Future Work

This package is a work in progress. Future work may include:

  • Dependency gathering, both deep and direct. Required for platform bundling in both dynamic metro configs as well as the babel transform. For performance (and flexibility) the platform bundling step should produce generated output to track the explicit list included.
  • Definitions of how a platform bundle was produced, including where a shipped version can be found.
  • Configuration of how a platform bundle should be consumed
  • Platform masking of configurations, likely needed for specialized out of tree platform handling in metro configs
  • Special handling instructions for bundling
  • Special handling instructions for testing

FAQs

Package last updated on 12 Jul 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc