We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e9ef07 commit 19ee1e5Copy full SHA for 19ee1e5
tools/version.ts
@@ -4,6 +4,6 @@ const version = require('../package.json').version
4
5
const filePath = 'src/version.ts'
6
7
-const replace = fs.readFileSync(filePath, 'utf-8').replace(/[\d\.]+/g, `${version}`)
+const replace = fs.readFileSync(filePath, 'utf-8').replace(/'.*'/g, `'${version}'`)
8
9
fs.writeFileSync(filePath, replace)
0 commit comments