Open thiagodemellobueno opened 7 years ago
In order to keep performance up, it just checks for one prefixing string... Right now it's @kalastatic/
at the beginning. inheritFilePrefix
at:
https://github.com/kalamuna/metalsmith-metadata-files#configuration
@kalastatic
in this case is not a namespace, but a trigger. It's a trick :wink: ... We could extend it to discover a path, however. Worth considering and brainstorming.
We only have the kalastatic namespace working for this feature, it breaks on @atoms/@molecules/@organisms
Currently if you enter the wrong path, it sometimes does not error... eg
string(46) "@kalastatic/organisms/page-hero/page-hero.json"
fails silently.... should bestring(46) "@kalastatic/COMPONENTS/organisms/page-hero/page-hero.json"
... but being told that the json file in question is not found would avoid long debugging spells.