Skip to content

Commit ae30205

Browse files
committed
Update Node version in README on build.
1 parent bcc6acd commit ae30205

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# readable-stream
22

3-
***Node-core streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream)
3+
***Node-core v0.0.0 streams for userland*** [![Build Status](https://travis-ci.org/nodejs/readable-stream.svg?branch=master)](https://travis-ci.org/nodejs/readable-stream)
44

55

66
[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/)

build/build.js

100755100644
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const hyperquest = require('hyperzip')(require('hyperdirect'))
88
, encoding = 'utf8'
99
, nodeVersion = process.argv[2]
1010
, nodeVersionRegexString = '\\d+\\.\\d+\\.\\d+'
11+
, readmePath = path.join(__dirname, '..', 'README.md')
1112
, files = require('./files')
1213
, testReplace = require('./test-replacements')
1314
, docReplace = require('./doc-replacements')
@@ -101,3 +102,13 @@ processFile(
101102
, path.join(testourroot, '../common.js')
102103
, testReplace['common.js']
103104
)
105+
106+
//--------------------------------------------------------------------
107+
// Update Node version in README
108+
109+
processFile(readmePath, readmePath, [
110+
[
111+
RegExp('(Node-core v)' + nodeVersionRegexString, 'g')
112+
, "$1" + nodeVersion
113+
]
114+
])

0 commit comments

Comments
 (0)