🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@turbo-player/build-variant-list

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turbo-player/build-variant-list

CLI tool to build variant lists for turbo player

latest
npmnpm
Version
1.1584.0
Version published
Maintainers
4
Created
Source

@turbo-player/build-variant-list

A command-line tool (CLI) to build and generate variant manifests/lists for the turbo player integration.

This tool uses Puppeteer under the hood to crawl or render the player configurations and export the built variant profiles.

Installation

You can install this package from NPM like this:

# Using npm
npm install @turbo-player/build-variant-list

# Using pnpm
pnpm add @turbo-player/build-variant-list

Usage

This package exposes a CLI executable named build-variant-list.

Command Line

build-variant-list

Environment Variables

The CLI configures itself dynamically using the following environment variables:

  • VARIANTS_MANIFEST: Path to the local compiled variants manifest file (e.g., ./build/variants-manifest.js).
  • INTEGRATION_TAG: The integration tag identifier (e.g., my-integration).
  • JS_FILE: The entry JavaScript filename (e.g., integration.js).
  • OUTPUT_FILE: Path where the generated JSON list should be written (e.g., ./build/variant/list.json).

Example Integration Script

Typically, this tool is run as part of a post-build lifecycle hook in a monorepo setup:

"scripts": {
  "build:variant-list": "VARIANTS_MANIFEST=./build/variants-manifest.js INTEGRATION_TAG=my-integration JS_FILE=integration.js OUTPUT_FILE=./build/variant/list.json pnpm exec build-variant-list"
}

License

This project is licensed under the MIT License.

FAQs

Package last updated on 15 Jul 2026

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