mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
release: cd to Etherpad root directory
This commit is contained in:
parent
565d020876
commit
1ada0ab5d6
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,7 @@ process.on('unhandledRejection', (err) => { throw err; });
|
|||
|
||||
const fs = require('fs');
|
||||
const childProcess = require('child_process');
|
||||
const path = require('path');
|
||||
const semver = require('semver');
|
||||
|
||||
/*
|
||||
|
@ -25,6 +26,9 @@ if (!release) {
|
|||
throw new Error('No release type included');
|
||||
}
|
||||
|
||||
const cwd = path.join(fs.realpathSync(__dirname), '../../');
|
||||
process.chdir(cwd);
|
||||
|
||||
const readJson = (filename) => JSON.parse(fs.readFileSync(filename, {encoding: 'utf8', flag: 'r'}));
|
||||
const writeJson = (filename, obj) => {
|
||||
let json = JSON.stringify(obj, null, 2);
|
||||
|
|
Loading…
Reference in a new issue