0.1.1 • Published 3 years ago

@recordreplay/sourcemap-upload-cli v0.1.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
3 years ago

@recordreplay/sourcemap-upload-cli

Provides a CLI application that allows uploading production sourcemaps to Replay's servers so that they can be used when viewing recordings.

replay-sourcemap-upload CLI command

The CLI command replay-sourcemap-upload [opts] <paths...> has the following options:

  • <paths>: (Required) A set of files or directories to search for generated files and sourcemap files.
  • --group: (Required) To allow for tracking and browsing of maps that have been uploaded, we require uploaded names to have an overall group name associated with them. This could for instance be a version number, or commit hash.
  • --key: The API key to use when connecting to Replay's servers. Defaults to process.env.RECORD_REPLAY_API_KEY.
  • --root: Set the directory that relative paths should be computed with respect to. The relative path of sourcemaps is included in the uploaded entry, and will be visible in the uploaded-asset UI, so this can be used to strip off unimportant directories in the build path. Defaults to process.cwd().
  • --ignore: Provide an ignore pattern for files to ignore when searching for sourcemap-related data. This may be passed multiple times to ignore multiple things.
  • --quiet: Tell the CLI to output nothing to stdout. Errors will still log to stderr.
  • --verbose: Output additional information about the sourcemap map search.
  • --dry-run: Run all of the local processing and searching for maps, but skip uploading them.
  • --extensions: The comma-separated set of file extensions to search for sourcemap-related data. Defaults to ".js,.map".