pre writes moduleMap.json