{
  "version": 2,
  "outputCapture": "direct-nodejs",
  "cli": "nx",
  "$id": "NxReactNativeBundle",
  "$schema": "https://json-schema.org/schema",
  "title": "Offline JS Bundle for React Native",
  "description": "JS Bundle target options.",
  "type": "object",
  "presets": [
    {
      "name": "Bundle for a specific platform",
      "keys": ["platform"]
    },
    {
      "name": "Bundle a development build",
      "keys": ["dev"]
    },
    {
      "name": "Bundle to a specific output path",
      "keys": ["bundleOutput"]
    },
    {
      "name": "Bundle without global cache",
      "keys": ["resetCache"]
    }
  ],
  "properties": {
    "entryFile": {
      "type": "string",
      "description": "The entry file relative to project root.",
      "x-completion-type": "file",
      "x-completion-glob": "main@(.js|.ts)"
    },
    "platform": {
      "enum": ["ios", "android"],
      "alias": "p",
      "description": "Platform to build for."
    },
    "transformer": {
      "type": "string",
      "description": "Specify a custom transformer to be used."
    },
    "dev": {
      "type": "boolean",
      "description": "Generate a development build.",
      "default": true
    },
    "minify": {
      "type": "boolean",
      "description": "Allows overriding whether bundle is minified."
    },
    "bundleOutput": {
      "type": "string",
      "description": "The output path of the generated files.",
      "x-completion-type": "directory"
    },
    "maxWorkers": {
      "type": "number",
      "description": "The number of workers we should parallelize the transformer on."
    },
    "sourcemapOutput": {
      "type": "string",
      "description": "File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map."
    },
    "sourcemapSourcesRoot": {
      "type": "string",
      "description": "Path to make sourcemaps sources entries relative to, ex. /root/dir."
    },
    "sourcemapUseAbsolutePath": {
      "type": "boolean",
      "description": "Report SourceMapURL using its full path.",
      "default": false
    },
    "assetsDest": {
      "type": "string",
      "description": "Directory name where to store assets referenced in the bundle."
    },
    "resetCache": {
      "type": "boolean",
      "description": "Removes cached files.",
      "default": false
    },
    "readGlobalCache": {
      "type": "boolean",
      "description": "Try to fetch transformed JS code from the global cache, if configured.",
      "default": false
    }
  },
  "required": ["platform", "entryFile", "bundleOutput"],
  "examplesFile": "../../../docs/bundle-examples.md"
}
