config.cli: migrate to TypeScript

This commit is contained in:
Jesse Chan
2021-01-30 19:11:22 +08:00
parent d54878d99a
commit 5afa79b274
9 changed files with 39 additions and 55 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
import fs from 'fs';
import path from 'path';
import {tempPath} from '../../config';
import config from '../../config';
fs.mkdirSync(tempPath, {recursive: true});
fs.mkdirSync(config.tempPath, {recursive: true});
export const getTempPath = (filename: string): string => {
return path.join(tempPath, filename);
return path.join(config.tempPath, filename);
};
export const deleteFile = (filename: string): void => {