fix MCP path to assets
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
import { fileURLToPath } from 'url';
|
||||||
import { log } from '../../scripts/modules/utils.js';
|
import { log } from '../../scripts/modules/utils.js';
|
||||||
|
|
||||||
// Import the shared MCP configuration helper
|
// Import the shared MCP configuration helper
|
||||||
@@ -198,7 +199,9 @@ export function convertRuleToProfileRule(sourcePath, targetPath, profile) {
|
|||||||
* Convert all Cursor rules to profile rules for a specific profile
|
* Convert all Cursor rules to profile rules for a specific profile
|
||||||
*/
|
*/
|
||||||
export function convertAllRulesToProfileRules(projectDir, profile) {
|
export function convertAllRulesToProfileRules(projectDir, profile) {
|
||||||
const sourceDir = path.join(process.cwd(), 'assets', 'rules');
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = path.dirname(__filename);
|
||||||
|
const sourceDir = path.join(__dirname, '..', '..', 'assets', 'rules');
|
||||||
const targetDir = path.join(projectDir, profile.rulesDir);
|
const targetDir = path.join(projectDir, profile.rulesDir);
|
||||||
|
|
||||||
// Ensure target directory exists
|
// Ensure target directory exists
|
||||||
|
|||||||
Reference in New Issue
Block a user