mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 10:53:51 +00:00
Deps migration (#1988)
* chore: migrate eslint to oxlint * chore: migrate prettier to oxfmt * chore: migrate typescript * chore: toThrow should have a expected value * chore: cast test value as Day * chore: small title fix * chore: mocks should be hoisted * chore: incorrect async useage * chore: test should be inside description * chore: test sohuld include an expeced * chore: oxfmt --------- Co-authored-by: alex-Arc <omnivox@LAPTOP-RC5SNBVV.localdomain>
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
* - 2. the public directory, exposed by getAppDataPath()
|
||||
*/
|
||||
|
||||
import { fileURLToPath } from 'url';
|
||||
import { dirname, join } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
import { config } from './config.js';
|
||||
import { ensureDirectory } from '../utils/fileManagement.js';
|
||||
import { config } from './config.js';
|
||||
import { isProduction } from './environment.js';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { copyFileSync } from 'fs';
|
||||
import { copyDirectory, ensureDirectory } from '../utils/fileManagement.js';
|
||||
|
||||
import { copyDirectory, ensureDirectory } from '../utils/fileManagement.js';
|
||||
import { publicDir, publicFiles, srcDir, srcFiles } from './index.js';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { copyFileSync } from 'fs';
|
||||
import { ensureDirectory } from '../utils/fileManagement.js';
|
||||
|
||||
import { publicDir, srcFiles } from './index.js';
|
||||
import { basename, join } from 'path';
|
||||
|
||||
import { ensureDirectory } from '../utils/fileManagement.js';
|
||||
import { publicDir, srcFiles } from './index.js';
|
||||
|
||||
/**
|
||||
* @description ensures directories exist and populates ontime logo
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { copyFileSync, existsSync } from 'fs';
|
||||
|
||||
import { ensureDirectory } from '../utils/fileManagement.js';
|
||||
|
||||
import { publicDir, publicFiles, srcFiles } from './index.js';
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { copyFileSync, existsSync, writeFileSync } from 'fs';
|
||||
|
||||
import { ensureDirectory } from '../utils/fileManagement.js';
|
||||
import { defaultTranslation } from '../user/translations/bundledTranslations.js';
|
||||
|
||||
import { ensureDirectory } from '../utils/fileManagement.js';
|
||||
import { publicDir, publicFiles, srcFiles } from './index.js';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user