Bundled version of @stoplight/spectral-cli v1.0.8 providing a self-contained executable for API linting with Spectral, pre-packaged to avoid external dependencies. Requires Node.js >=20. Released under MIT license, updated infrequently (last release 2023). Differentiator: single-file distribution, no need for npm install or separate Spectral CLI setup.
npm install spectral-cli-bundleVerified import paths — ran on the pinned version, not inferred.
Lints an OpenAPI specification file using Spectral CLI bundle and prints the exit code.
Upgrade Node.js to version 20 or later.
Replace all imports from '@stoplight/spectral-cli' with 'spectral-cli-bundle'.
Convert require() to import statement or use dynamic import() if needed.
Use import instead: import { spectral } from 'spectral-cli-bundle'; or use dynamic import()Change import source to 'spectral-cli-bundle'.