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

@@ -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",

View File

@@ -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';