Closed rvanasa closed 2 years ago
import mo from 'motoko'; mo.write('Main.mo', 'actor {}'); mo.write('Other.mo', 'actor {}'); const mainPath = mo.resolveMain(); // 'Main.mo' mo.delete('Main.mo'); const newPath = mo.resolveMain(); // 'Other.mo'