VueTorrent/write-version.cjs
2023-12-07 19:50:37 +01:00

8 lines
241 B
JavaScript

const fs = require('fs')
const path = require('path')
const packageJson = require('./package.json')
const version = packageJson.version
const filePath = path.join(__dirname, 'vuetorrent', 'version.txt')
fs.writeFileSync(filePath, version)