{ "$schema": "https://json-schema.org/schema", "version": 2, "title": "Build executor", "description": "Transpiles TS files with SWC to specified JS module type, Generates rolluped .d.ts + api.md, transforms *.styles.* files via Babel(Griffel) and copies provided Assets.", "type": "object", "properties": { "sourceRoot": { "type": "string", "description": "Directory where the source files are located (relative to {projectRoot})." }, "outputPathRoot": { "type": "string", "description": "Root directory where all output assets will live. Relative to {workspaceRoot}" }, "moduleOutput": { "type": "array", "description": "Which JS module type to use to transpile to provided output.", "items": { "type": "object", "properties": { "module": { "type": "string", "enum": ["es6", "commonjs", "amd"], "description": "The module type" }, "outputPath": { "type": "string", "description": "The output path of the generated files (relative to {outputPathRoot})" } }, "required": ["module", "outputPath"] } }, "generateApi": { "oneOf": [ { "type": "boolean" }, { "type": "object", "properties": { "exportSubpaths": { "oneOf": [ { "type": "boolean" }, { "type": "object", "properties": { "apiReport": { "type": "boolean", "description": "Whether to generate api.md reports for each resolved sub-path entry." } }, "additionalProperties": false } ], "description": "Whether to read non-root export map entries from package.json and run api-extractor for each resolved sub-path." } }, "additionalProperties": false } ], "description": "Generate rolluped 'd.ts' bundle including 'api.md' that provides project public API. Pass an object to configure generate-api executor options.", "default": true }, "enableGriffelRawStyles": { "type": "boolean", "description": "Enable Griffel raw styles output. This will generate additional files with '.styles.raw.js' extension that contain Griffel raw styles", "default": false }, "reactCompiler": { "type": "boolean", "description": "Enable babel-plugin-react-compiler processing. When enabled, source is processed with React Compiler as a separate Babel pass before Griffel AOT.", "default": false }, "__esmFirst": { "type": "boolean", "description": "TEMPORARY/INTERNAL: opts this build into ESM-first postprocessing (.cjs extension rewrite + .d.cts types) ahead of the package's own package.json declaring \"type\": \"module\". Exists so the infra can be exercised on a package before it actually flips to ESM. Will be removed once the real migration lands and every opted-in package sets \"type\": \"module\" itself.", "default": false }, "assets": { "type": "array", "description": "List of static assets.", "items": { "oneOf": [ { "type": "object", "properties": { "glob": { "type": "string", "description": "The pattern to match." }, "input": { "type": "string", "description": "The input directory path in which to apply 'glob'" }, "output": { "type": "string", "description": "Absolute path within the output" }, "substitutions": { "type": "object", "description": "Key-value pairs to replace in the output path", "additionalProperties": { "type": "string" } } }, "additionalProperties": false, "required": ["glob", "input", "output"] }, { "type": "string" } ] } }, "clean": { "type": "boolean", "description": "Remove previous output before build", "default": true } }, "required": ["sourceRoot", "outputPathRoot", "moduleOutput"] }