mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user