From 0ebd746232be217bb02117cf0d642018ebb2030d Mon Sep 17 00:00:00 2001 From: Joe Danziger Date: Mon, 26 May 2025 21:00:04 -0400 Subject: [PATCH] use simpler path --- src/utils/rule-transformer.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils/rule-transformer.js b/src/utils/rule-transformer.js index 3840cbb4..cf44e856 100644 --- a/src/utils/rule-transformer.js +++ b/src/utils/rule-transformer.js @@ -7,7 +7,6 @@ */ import fs from 'fs'; import path from 'path'; -import { fileURLToPath } from 'url'; import { log } from '../../scripts/modules/utils.js'; // Import the shared MCP configuration helper @@ -203,9 +202,7 @@ export function convertRuleToProfileRule(sourcePath, targetPath, profile) { * Convert all Cursor rules to profile rules for a specific profile */ export function convertAllRulesToProfileRules(projectDir, profile) { - const sourceDir = fileURLToPath( - new URL('../../assets/rules', import.meta.url) - ); + const sourceDir = path.join(process.cwd(), 'assets', 'rules'); const targetDir = path.join(projectDir, profile.rulesDir); // Ensure target directory exists