remove unneeded exports to optimize loc

This commit is contained in:
Joe Danziger
2025-05-27 14:52:09 -04:00
parent 5149aaa56f
commit 9681c9171c
10 changed files with 86 additions and 101 deletions

View File

@@ -1,8 +1,8 @@
// Cline conversion profile for rule-transformer
import { createProfile, COMMON_TOOL_MAPPINGS } from './base-profile.js';
// Create cline profile using the base factory
const clineProfile = createProfile({
// Create and export cline profile using the base factory
export const clineProfile = createProfile({
name: 'cline',
displayName: 'Cline',
url: 'cline.bot',
@@ -18,18 +18,3 @@ const clineProfile = createProfile({
'cursor_rules.mdc': 'cline_rules.md'
}
});
// Export all the standard profile properties
export const {
conversionConfig,
fileMap,
globalReplacements,
profileName,
displayName,
profileDir,
rulesDir,
mcpConfig,
mcpConfigName,
mcpConfigPath,
getTargetRuleFilename
} = clineProfile;

View File

@@ -1,8 +1,8 @@
// Cursor conversion profile for rule-transformer
import { createProfile, COMMON_TOOL_MAPPINGS } from './base-profile.js';
// Create cursor profile using the base factory
const cursorProfile = createProfile({
// Create and export cursor profile using the base factory
export const cursorProfile = createProfile({
name: 'cursor',
displayName: 'Cursor',
url: 'cursor.so',
@@ -18,18 +18,3 @@ const cursorProfile = createProfile({
'cursor_rules.mdc': 'cursor_rules.mdc' // Keep the same name for cursor
}
});
// Export all the standard profile properties
export const {
conversionConfig,
fileMap,
globalReplacements,
profileName,
displayName,
profileDir,
rulesDir,
mcpConfig,
mcpConfigName,
mcpConfigPath,
getTargetRuleFilename
} = cursorProfile;

View File

@@ -102,8 +102,8 @@ function onPostConvertRulesProfile(targetDir) {
onAddRulesProfile(targetDir);
}
// Create roo profile using the base factory
const rooProfile = createProfile({
// Create and export roo profile using the base factory
export const rooProfile = createProfile({
name: 'roo',
displayName: 'Roo Code',
url: 'roocode.com',
@@ -123,20 +123,5 @@ const rooProfile = createProfile({
onPostConvert: onPostConvertRulesProfile
});
// Export all the standard profile properties and lifecycle functions
export const {
conversionConfig,
fileMap,
globalReplacements,
profileName,
displayName,
profileDir,
rulesDir,
mcpConfig,
mcpConfigName,
mcpConfigPath,
getTargetRuleFilename
} = rooProfile;
// Export lifecycle functions separately to avoid naming conflicts
export { onAddRulesProfile, onRemoveRulesProfile, onPostConvertRulesProfile };

View File

@@ -1,8 +1,8 @@
// Trae conversion profile for rule-transformer
import { createProfile, COMMON_TOOL_MAPPINGS } from './base-profile.js';
// Create trae profile using the base factory
const traeProfile = createProfile({
// Create and export trae profile using the base factory
export const traeProfile = createProfile({
name: 'trae',
displayName: 'Trae',
url: 'trae.ai',
@@ -15,18 +15,3 @@ const traeProfile = createProfile({
targetExtension: '.md',
toolMappings: COMMON_TOOL_MAPPINGS.STANDARD // Trae uses standard tool names
});
// Export all the standard profile properties
export const {
conversionConfig,
fileMap,
globalReplacements,
profileName,
displayName,
profileDir,
rulesDir,
mcpConfig,
mcpConfigName,
mcpConfigPath,
getTargetRuleFilename
} = traeProfile;

View File

@@ -1,8 +1,8 @@
// Windsurf conversion profile for rule-transformer
import { createProfile, COMMON_TOOL_MAPPINGS } from './base-profile.js';
// Create windsurf profile using the base factory
const windsurfProfile = createProfile({
// Create and export windsurf profile using the base factory
export const windsurfProfile = createProfile({
name: 'windsurf',
displayName: 'Windsurf',
url: 'windsurf.com',
@@ -15,18 +15,3 @@ const windsurfProfile = createProfile({
targetExtension: '.md',
toolMappings: COMMON_TOOL_MAPPINGS.STANDARD // Windsurf uses standard tool names
});
// Export all the standard profile properties
export const {
conversionConfig,
fileMap,
globalReplacements,
profileName,
displayName,
profileDir,
rulesDir,
mcpConfig,
mcpConfigName,
mcpConfigPath,
getTargetRuleFilename
} = windsurfProfile;