refactor: Update .gitignore and enhance error handling in feature-loader

Changes:
- Removed specific compiled file patterns from .gitignore to simplify ignore rules.
- Modified error handling in feature-loader.ts to rethrow errors instead of keeping original paths, preventing potential broken references.
- Added ".js" extensions to import statements in types package for ESM compliance.

Benefits:
 Cleaner .gitignore for better maintainability
 Improved error handling logic in feature-loader
 Consistent import paths for ESM compatibility

All tests passing.
This commit is contained in:
Kacper
2025-12-21 01:23:39 +01:00
parent 3928539ade
commit 55c49516c8
4 changed files with 14 additions and 20 deletions

View File

@@ -143,8 +143,9 @@ export class FeatureLoader {
}
} catch (error) {
logger.error(`Failed to migrate image:`, error);
// Keep original path if migration fails
updatedPaths.push(imagePath);
// Rethrow error to let caller decide how to handle it
// Keeping original path could lead to broken references
throw error;
}
}