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:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -76,14 +76,6 @@ blob-report/
|
||||
# TypeScript
|
||||
*.tsbuildinfo
|
||||
|
||||
# Prevent compiled files in source directories
|
||||
libs/*/src/**/*.js
|
||||
libs/*/src/**/*.d.ts
|
||||
libs/*/src/**/*.d.ts.map
|
||||
apps/*/src/**/*.js
|
||||
apps/*/src/**/*.d.ts
|
||||
apps/*/src/**/*.d.ts.map
|
||||
|
||||
# Misc
|
||||
*.pem
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "@automaker/types",
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"description": "Shared type definitions for AutoMaker",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
||||
@@ -13,7 +13,7 @@ export type {
|
||||
InstallationStatus,
|
||||
ValidationResult,
|
||||
ModelDefinition,
|
||||
} from './provider';
|
||||
} from './provider.js';
|
||||
|
||||
// Feature types
|
||||
export type {
|
||||
@@ -21,7 +21,7 @@ export type {
|
||||
FeatureImagePath,
|
||||
FeatureStatus,
|
||||
PlanningMode,
|
||||
} from './feature';
|
||||
} from './feature.js';
|
||||
|
||||
// Session types
|
||||
export type {
|
||||
@@ -29,43 +29,43 @@ export type {
|
||||
SessionListItem,
|
||||
CreateSessionParams,
|
||||
UpdateSessionParams,
|
||||
} from './session';
|
||||
} from './session.js';
|
||||
|
||||
// Error types
|
||||
export type {
|
||||
ErrorType,
|
||||
ErrorInfo,
|
||||
} from './error';
|
||||
} from './error.js';
|
||||
|
||||
// Image types
|
||||
export type {
|
||||
ImageData,
|
||||
ImageContentBlock,
|
||||
} from './image';
|
||||
} from './image.js';
|
||||
|
||||
// Model types and constants
|
||||
export {
|
||||
CLAUDE_MODEL_MAP,
|
||||
DEFAULT_MODELS,
|
||||
type ModelAlias,
|
||||
} from './model';
|
||||
} from './model.js';
|
||||
|
||||
// Event types
|
||||
export type {
|
||||
EventType,
|
||||
EventCallback,
|
||||
} from './event';
|
||||
} from './event.js';
|
||||
|
||||
// Spec types
|
||||
export type {
|
||||
SpecOutput,
|
||||
} from './spec';
|
||||
} from './spec.js';
|
||||
export {
|
||||
specOutputSchema,
|
||||
} from './spec';
|
||||
} from './spec.js';
|
||||
|
||||
// Enhancement types
|
||||
export type {
|
||||
EnhancementMode,
|
||||
EnhancementExample,
|
||||
} from './enhancement';
|
||||
} from './enhancement.js';
|
||||
|
||||
Reference in New Issue
Block a user