Updated setup to vite and moved to hooks instead of class

This commit is contained in:
Hubert Walczak
2023-11-02 12:11:03 +01:00
parent 44f173f23c
commit f88baa5fc9
90 changed files with 7411 additions and 2706 deletions
+8 -5
View File
@@ -1,7 +1,10 @@
const path = require('path');
const fs = require('fs');
const crypto = require('crypto');
const jwt = require('jsonwebtoken');
import path from 'path';
import fs from 'fs';
import crypto from 'crypto';
import jwt from 'jsonwebtoken';
import { fileURLToPath } from 'url';
const __esm_dirname = path.dirname(fileURLToPath(import.meta.url));
const sign = () => {
const getAllFilesToSign = (hudDir) => {
@@ -17,7 +20,7 @@ const sign = () => {
return files;
}
const dir = path.join(__dirname, 'build');
const dir = path.join(__esm_dirname, 'build');
const keyFile = path.join(dir, 'key');