2D-GameCreator / src /scripts /write-version.js
NERDDISCO's picture
fix(write-version): move the script into src so that it's available when building the docker image
99c964b
raw
history blame
179 Bytes
const fs = require('fs');
const packageJson = require('../../package.json');
const envVars = `NEXT_PUBLIC_VERSION=${packageJson.version}\n`;
fs.appendFileSync('.env', envVars);