move rules-setup.js to /src/utils
This commit is contained in:
@@ -25,7 +25,7 @@ import boxen from 'boxen';
|
||||
import gradient from 'gradient-string';
|
||||
import { isSilentMode } from './modules/utils.js';
|
||||
import { convertAllRulesToBrandRules } from './modules/rule-transformer.js';
|
||||
import { runInteractiveRulesSetup } from './modules/rules-setup.js';
|
||||
import { runInteractiveRulesSetup } from '../src/utils/rules-setup.js';
|
||||
import { execSync } from 'child_process';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
|
||||
@@ -86,7 +86,7 @@ import {
|
||||
isValidBrand,
|
||||
getBrandProfile
|
||||
} from './rule-transformer.js';
|
||||
import { runInteractiveRulesSetup } from './rules-setup.js';
|
||||
import { runInteractiveRulesSetup } from '../../src/utils/rules-setup.js';
|
||||
|
||||
/**
|
||||
* Runs the interactive setup process for model configuration.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import readline from 'readline';
|
||||
import inquirer from 'inquirer';
|
||||
import chalk from 'chalk';
|
||||
import { BRAND_PROFILES, BRAND_NAMES } from './rule-transformer.js';
|
||||
import { BRAND_PROFILES, BRAND_NAMES } from '../../scripts/modules/rule-transformer.js';
|
||||
|
||||
// Dynamically generate availableBrandRules from BRAND_NAMES and brand profiles
|
||||
const availableBrandRules = BRAND_NAMES.map((name) => {
|
||||
@@ -44,4 +44,4 @@ export async function runInteractiveRulesSetup() {
|
||||
};
|
||||
const { brandRules } = await inquirer.prompt([brandRulesQuestion]);
|
||||
return brandRules;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user