factoriolib / flib

A set of high-quality, commonly-used utilities for creating Factorio mods.
https://mods.factorio.com/mod/flib
MIT License
64 stars 15 forks source link

Shorten require paths #7

Closed 0ptera closed 4 years ago

0ptera commented 4 years ago

From the perspective of someone using the library control in require(__flib__.control.migration.function) feels redundant.

I'd like to change that to require(__flib__.migration.function). Option 1) Keep all modules in root, which will quickly become a mess.

Option 2) Change modules to directly return functions and keep the file in a folder called migration. nevermind, I remembered how this works wrong