mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
update scripts to typescript
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
const dashboardPath = path.join(__dirname, '../../dashboard');
|
||||
|
||||
@@ -13,5 +13,5 @@ const logNames = [
|
||||
|
||||
for (const logName of logNames) {
|
||||
const logFullPath = path.join(dashboardPath, logName);
|
||||
fs.rmSync(logFullPath);
|
||||
if (fs.existsSync(logFullPath)) fs.rmSync(logFullPath);
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const { SharedHelper } = require('../shared-helper.js');
|
||||
|
||||
import { SharedHelper } from "../helpers/shared-helper";
|
||||
import path from "path";
|
||||
|
||||
const helper = new SharedHelper(path.join(__dirname, '../../dashboard/shared'))
|
||||
|
||||
Reference in New Issue
Block a user