Actually fixed setup 😭

pull/126/head
tycrek 2 years ago
parent c697a7c5e5
commit 0abc56c5f7
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -57,7 +57,7 @@ function getConfirmSchema(description) {
// If directly called on the command line, run setup script // If directly called on the command line, run setup script
function doSetup() { function doSetup() {
const path = (...paths) => require('path').join(process.cwd(), ...paths); const path = (...paths) => require('path').join(process.cwd(), ...paths);
const { TLog } = require('@tycrek/log'); const { TLog, getChalk } = require('@tycrek/log');
const fs = require('fs-extra'); const fs = require('fs-extra');
const prompt = require('prompt'); const prompt = require('prompt');
const token = require('./generators/token'); const token = require('./generators/token');
@ -245,7 +245,7 @@ function doSetup() {
// Verify information is correct // Verify information is correct
.then(() => log .then(() => log
.blank() .blank()
.info('Please verify your information', '\n'.concat(Object.entries(results).map(([setting, value]) => `${' '}${log.chalk.dim.gray('-->')} ${log.chalk.bold.white(`${setting}:`)} ${log.chalk.white(value)}`).join('\n'))) .info('Please verify your information', '\n'.concat(Object.entries(results).map(([setting, value]) => `${' '}${getChalk().dim.gray('-->')} ${getChalk().bold.white(`${setting}:`)} ${getChalk().white(value)}`).join('\n')))
.blank()) .blank())
// Apply old configs // Apply old configs

Loading…
Cancel
Save