mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-26 17:15:08 +01:00
renamed props.json to config.json
This commit is contained in:
@@ -25,8 +25,8 @@ module.exports = class extends Generator {
|
||||
this.recreate = true;
|
||||
}
|
||||
|
||||
if( fs.existsSync(this.destinationPath('props.json')) ) {
|
||||
this.props = require(this.destinationPath('props.json'));
|
||||
if( fs.existsSync(this.destinationPath('config.json')) ) {
|
||||
this.props = require(this.destinationPath('config.json'));
|
||||
} else {
|
||||
this.props = {
|
||||
'derivation_path': '0/n',
|
||||
@@ -64,7 +64,7 @@ module.exports = class extends Generator {
|
||||
}
|
||||
|
||||
writing() {
|
||||
fs.writeFileSync(this.destinationPath('props.json'), JSON.stringify(this.props, null, 2));
|
||||
fs.writeFileSync(this.destinationPath('config.json'), JSON.stringify(this.props, null, 2));
|
||||
|
||||
for( let m of prompters ) {
|
||||
const name = m.name();
|
||||
|
||||
Reference in New Issue
Block a user