Skip to content

Commit

Permalink
🥾 version script to work with prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Dec 26, 2020
1 parent 50d07ac commit 0eebeed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ function dir( file ) {
}

let content = fs.readFileSync( dir('../js/index.js'), 'utf8' );
content = content.replace( /Infinite Scroll v\d+\.\d+\.\d+/,
content = content.replace( /Infinite Scroll v[\w\.\-]+/,
`Infinite Scroll v${version}` );
fs.writeFileSync( dir('../js/index.js'), content, 'utf8' );

0 comments on commit 0eebeed

Please sign in to comment.