Allow importing save and restore without side effects

This commit is contained in:
Denis Isaev 2020-05-04 15:24:18 +03:00
parent 9ceee97d99
commit b59f08bcf9
No known key found for this signature in database
GPG key ID: B1866FBC94B37EDF
7 changed files with 175 additions and 89 deletions

View file

@ -112,6 +112,4 @@ async function run(): Promise<void> {
}
}
run();
export default run;

3
src/restore_main.ts Normal file
View file

@ -0,0 +1,3 @@
import run from "./restore";
run();

View file

@ -79,6 +79,4 @@ async function run(): Promise<void> {
}
}
run();
export default run;

3
src/save_main.ts Normal file
View file

@ -0,0 +1,3 @@
import run from "./save";
run();