(bump = true)
| 27 | let rootVersion: string; |
| 28 | |
| 29 | function getRootVersion(bump = true): string { |
| 30 | if (rootVersion) { |
| 31 | return rootVersion; |
| 32 | } |
| 33 | |
| 34 | rootVersion = require(resolve(root, './lerna.json')).version.replace(/^(\d+\.\d+\.\d+)-?.*$/, '$1'); |
| 35 | |
| 36 | if (bump) { |
| 37 | const parts = rootVersion.split('.'); |
| 38 | parts[2] = `${+parts[2] + 1}`; |
| 39 | rootVersion = parts.join('.'); |
| 40 | } |
| 41 | |
| 42 | return rootVersion; |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Checks next dev version number based on the `crawlee` meta package via `npm show`. |
no outgoing calls
no test coverage detected
searching dependent graphs…