Covert to ESM and get it functional locally

This commit is contained in:
Allan Carr
2024-08-27 13:45:12 -07:00
parent e793402a79
commit 36ada6fd1f
19 changed files with 980 additions and 1046 deletions

View File

@@ -7,30 +7,29 @@
},
"type": "module",
"scripts": {
"server": "nodemon server",
"server": "nodemon --loader=ts-node/esm server",
"start": "node dist/server.js",
"build": "tsc -p .",
"makeitpretty": "prettier --write \"**/*.{css,js,json,jsx,scss,ts}\""
},
"dependencies": {
"axios": "^1.7.2",
"bluebird": "^3.7.2",
"axios": "^1.7.5",
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"dotenv": "16.4.5",
"express": "^4.19.2",
"file-type": "^19.2.0",
"file-type": "^19.4.1",
"fs-extra": "^11.2.0",
"gm": "^1.25.0",
"helmet": "^7.1.0",
"image-thumbnail": "^1.0.15",
"image-thumbnail": "^1.0.17",
"jszip": "^3.10.1",
"morgan": "^1.10.0",
"multer": "^1.4.4",
"nocache": "^4.0.0",
"response-time": "^2.3.2",
"simple-thumbnail": "^1.6.5",
"winston": "^3.13.1",
"winston": "^3.14.2",
"winston-daily-rotate-file": "^5.0.0"
},
"devDependencies": {
@@ -40,12 +39,12 @@
"@types/gm": "^1.25.4",
"@types/image-thumbnail": "^1.0.4",
"@types/morgan": "^1.9.9",
"@types/multer": "^1.4.11",
"@types/node": "^20.14.11",
"@types/multer": "^1.4.12",
"@types/node": "^22.5.0",
"@types/response-time": "^2.3.8",
"nodemon": "^3.1.4",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "^5.5.3"
"typescript": "^5.5.4"
}
}