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

Define and query information about a kit package

  • 0.4.15
  • Source
  • npm
  • Socket score

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

@rnx-kit/config

Build npm version

Define and query information about a kit package.

This is designed to be part of the tooling pipeline, so it assumes it is running in a node environment.

getKitConfig([options]): KitConfig | null

Read configuration data for a kit package.

OptionDescription
moduleModule name of the kit package. The module is located via require.resolve, which means it needs to be a visible dependency of some sort.
cwdPath to the kit package, or a directory within it.

The kit package is located via options.module, options.cwd, or the current working directory (in that order). The location is then used as a starting-point for a cosmiconfig search using the key "rnx-kit". cosmiconfig will match either rnx-kit.config.js, an "rnx-kit" section of package.json, or any of the other standard ways of supplying configuration.

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 01 Nov 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