Open ysulyma opened 10 years ago
Would it be better to modify the import algorithm, or create text.styl
which calls @import 'text/index'
?
I had a similar issue with a lib having a normalize.styl
which is inappropriately imported by nib.
Fixed it for my project at F4-Group/nib@9cfa2fa24685259c8004d90a5e9d5565cdf8af7a
Steps to reproduce
Create two files in the same directory,
a.styl
andtext.styl
:On the command line, enter
This prints
rather than nothing (which I would expect).
Cause
lib/nib/index.styl
imports several other files, among them@import 'text'
. However, there is notext.styl
file, instead there is atext/index.styl
file. Presumably the import algorithm looks for more$name.styl
files before looking for$name/index.styl
files.