Add bootstrap entrypoint and migrate DB schema setup to SQL files. Introduces bootstrap.js, many data/ddl/*.sql files, and a new runDDL() in modules/database.js (exports pool and runDDL). Remove legacy modules/databaseGlobals.js. Update repositories and code to use database.pool.query calls. Bump package version and set main to bootstrap.js. Clean up server.js to remove inline DB/cert init (now handled by bootstrap). Overall: refactor DB initialization to run ordered SQL DDL files and centralize startup logic.
50 lines
1.2 KiB
JSON
50 lines
1.2 KiB
JSON
{
|
|
"name": "yggdrasil",
|
|
"version": "0.0.5-alpha",
|
|
"description": "",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitea.azures.fr/azures04/Yggdrasil"
|
|
},
|
|
"license": "AGPL-3.0-only",
|
|
"author": {
|
|
"name": "azures04",
|
|
"url": "https://gitea.azures.fr/azures04/Yggdrasil",
|
|
"email": "gilleslazure04@gmail.com"
|
|
},
|
|
"type": "commonjs",
|
|
"main": "bootstrap.js",
|
|
"scripts": {
|
|
"start:dev": "nodemon .",
|
|
"start": "node .",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix"
|
|
},
|
|
"homepage": "https://gitea.azures.fr/azures04/Yggdrasil",
|
|
"readme": "https://gitea.azures.fr/azures04/Yggdrasil/src/branch/main/README.md",
|
|
"dependencies": {
|
|
"@mgalacyber/discord-oauth2": "^1.9.6",
|
|
"bcryptjs": "^3.0.3",
|
|
"colors": "^1.4.0",
|
|
"cookie-parser": "^1.4.7",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^17.2.3",
|
|
"express": "^5.2.1",
|
|
"express-rate-limit": "^8.2.1",
|
|
"helmet": "^8.1.0",
|
|
"hpp": "^0.2.3",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"mariadb": "^3.4.5",
|
|
"multer": "^2.0.2",
|
|
"path-to-regexp": "^8.3.0",
|
|
"ssrfcheck": "^1.2.0",
|
|
"zod": "^4.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.2",
|
|
"eslint": "^9.39.2",
|
|
"globals": "^16.5.0",
|
|
"nodemon": "^3.1.11"
|
|
}
|
|
}
|