update scripts to typescript

This commit is contained in:
Emily
2025-01-28 15:08:42 +01:00
parent a3e74adf9c
commit 19b7c7664a
7 changed files with 18 additions and 46 deletions

View File

@@ -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);
}

View File

@@ -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'))