fallback on package.json if component.json not available