Update deps + configuration

Prevent usage of old dependencies & update the whole structure.
This commit is contained in:
theofficialomega
2025-06-23 12:32:56 +02:00
parent 11e3f2cabe
commit cd0327e445
243 changed files with 10302 additions and 6587 deletions

View File

@@ -1,13 +1,8 @@
import { execSync } from 'child_process'
import fs from 'fs-extra'
import { pathToFileURL } from 'node:url'
import os from 'os'
let ENV_VAR = 'SITES_DIR=tests/__data__/input/api_generate/sites API_DIR=tests/__data__/output'
if (os.platform() === 'win32') {
ENV_VAR =
'SET "SITES_DIR=tests/__data__/input/api_generate/sites" && SET "API_DIR=tests/__data__/output" &&'
}
const ENV_VAR = 'cross-env SITES_DIR=tests/__data__/input/api_generate/sites API_DIR=tests/__data__/output'
beforeEach(() => {
fs.emptyDirSync('tests/__data__/output')