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