nl_tokens: NODE_MODULES_PATHS ( START ) 1 . let PARTS = path split ( START ) 2 . let I = count of PARTS - 1 3 . let DIRS = [] 4 . while I > = 0 a . if PARTS [ I ] = node_modules CONTINUE c . DIR = path join ( PARTS [ 0 .. I ] + node_modules ) b . DIRS = DIRS + DIR c . let I = I - 1 5 . return DIRS Alloy doesn t like it when you include the file extension ...
pl_tokens: function convert_to_alloy_path ( resolved_path ) { var parsed_path = path . posix . <mask> ( resolved_path ) ; return path . posix . join ( parsed_path . dir , parsed_path . name ) ; }