JSPM

web-ext-option-types

8.3.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4201
  • Score
    100M100P100Q127381F
  • License MIT

Type definitions for web-ext CLI options

Package Exports

  • web-ext-option-types
  • web-ext-option-types/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (web-ext-option-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

web-ext-option-types

Type definitions for the web-ext CLI options.

This package is updated automatically when a new web-ext version is released, using a custom script that parses the source code of web-ext, extracts the CLI options from the AST, and emits a .d.ts file. This script periodically runs within a GitHub Actions workflow.

Usage

import { RunOptions } from 'web-ext-cli-options'

const options: RunOptions = {
  target: ['firefox-desktop', 'chromium'],
  firefoxBinary: '/path/to/firefox',
  chromiumBinary: '/path/to/chromium',
}

// Do something with the options…

The following types are included:

 

Contributing

Generating the types

pnpm install
pnpm build
node dist/web-ext-types.js generate 8.3.0 -o index.d.ts

Releasing a new version

The release script will:

  • Generate the types for the latest version of web-ext
  • Bump the version in package.json
  • Commit the changes
  • Except when --dry-run is passed:
    • Push the changes
    • Publish to npm
pnpm run release