VueTorrent/write-version.cjs

9 lines
241 B
JavaScript
Raw Normal View History

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)