mc-build / mcb

in dev mcb standalone project
MIT License
6 stars 1 forks source link

Project root relative imports #18

Open Piripe opened 1 month ago

Piripe commented 1 month ago

I'd like to be able to import templates and scripts using the same path everytime to avoid imports like import ../../../templates/log.mcbt

My solution may to add a new prefix pointing to the root folder. Maybe */ to keep the same as root reference for functions, or @/ to defer a bit from root reference for functions (And because root reference for functions actually point to the current namespace, where root reference for imports would point to project's src folder)

IanSSenne commented 4 days ago

will publish alongside #20 once that's in, should be in a day or so.