Skip to content

Commit 0eb0a39

Browse files
committed
build: add regex to release plugin
This commit changes the semantic-release replace plugin replace text from a string to a regex. This is more reliable when trying to find the string in the code base to replace and inline with what's reccomended by the plugin authors. It also fixes the files directory, which was missing the `js` sub directory.
1 parent 547b8ea commit 0eb0a39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@
125125
"replacements": [
126126
{
127127
"files": [
128-
"src/Drift.js"
128+
"src/js/Drift.js"
129129
],
130-
"from": "this.VERSION = '.*'",
131-
"to": "this.VERSION = '${nextRelease.version}'",
130+
"from": "this.VERSION = \".*\"",
131+
"to": "this.VERSION = \"${nextRelease.version}\"",
132132
"results": [
133133
{
134-
"file": "src/Drift.js",
134+
"file": "src/js/Drift.js",
135135
"hasChanged": true,
136136
"numMatches": 1,
137137
"numReplacements": 1

0 commit comments

Comments
 (0)