Added a version script

It automaticly update the version number without importing package.json

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2021-06-22 21:40:28 +02:00
parent f858bd5c79
commit 96bc9149c9
5 changed files with 230 additions and 225 deletions

View File

@ -0,0 +1,4 @@
const { version } = require('../package.json')
const fs = require('fs')
fs.writeFileSync('./src/version.json', JSON.stringify({version}))