Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 949 Bytes

File metadata and controls

47 lines (35 loc) · 949 Bytes

semantic-release-replace-plugin / PluginConfig

Interface: PluginConfig

PluginConfig is used to provide multiple replacement.

[
  "@google/semantic-release-replace-plugin",
  {
    "replacements": [
      {
        "files": ["foo/__init__.py"],
        "from": "__VERSION__ = \".*\"",
        "to": "__VERSION__ = \"${nextRelease.version}\"",
        "results": [
          {
            "file": "foo/__init__.py",
            "hasChanged": true,
            "numMatches": 1,
            "numReplacements": 1
          }
        ],
        "countMatches": true
      }
    ]
  }
]

Table of contents

Properties

Properties

replacements

replacements: Replacement[]

An array of replacements to be made.

Defined in

index.ts:132