Files
multy-stub/package.json
Primakov Alexandr Alexandrovich e5d6b7cecd feat: добавление скрипта postinstall и обновление package-lock.json
- Добавлен скрипт postinstall для автоматического создания файлов .env и .env.example.
- Обновлен package-lock.json для отражения изменений в зависимостях.
2025-05-08 14:30:39 +03:00

62 lines
2.2 KiB
JSON

{
"name": "multi-stub",
"version": "1.2.1",
"description": "",
"main": "server/index.ts",
"type": "commonjs",
"scripts": {
"start": "cross-env NODE_ENV=\"development\" ts-node-dev .",
"build": "tsc",
"up:prod": "node dist/server/index.js",
"eslint": "npx eslint ./server",
"eslint:fix": "npx eslint ./server --fix",
"test": "jest",
"postinstall": "node -e \"const fs = require('fs'); const envExample = `# Настройки сервера\\nPORT=3000\\nNODE_ENV=development\\n\\n# Настройки базы данных\\nMONGODB_URI=mongodb://localhost:27017/multi-stub\\n\\n# Настройки JWT\\nJWT_SECRET=your_jwt_secret\\nJWT_EXPIRES_IN=7d\\n\\n# Прочие настройки\\nLOG_LEVEL=info`; if (!fs.existsSync('.env.example')) { fs.writeFileSync('.env.example', envExample); console.log('Created .env.example file'); } if (!fs.existsSync('.env')) { fs.copyFileSync('.env.example', '.env'); console.log('Created .env file from .env.example'); }\""
},
"repository": {
"type": "git",
"url": "git+ssh://git@bitbucket.org/online-mentor/multi-stub.git"
},
"keywords": [],
"author": "",
"license": "MIT",
"homepage": "https://bitbucket.org/online-mentor/multi-stub#readme",
"dependencies": {
"ai": "^4.1.13",
"axios": "^1.7.7",
"bcrypt": "^5.1.0",
"body-parser": "^1.19.0",
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"crypto-js": "^4.2.0",
"dotenv": "^16.4.7",
"express": "5.0.1",
"express-jwt": "^8.5.1",
"express-session": "^1.18.1",
"jsdom": "^25.0.1",
"jsonwebtoken": "^9.0.2",
"mongodb": "^6.12.0",
"mongoose": "^8.9.2",
"mongoose-sequence": "^6.0.1",
"morgan": "^1.10.0",
"multer": "^1.4.5-lts.1",
"pbkdf2-password": "^1.2.1",
"rotating-file-stream": "^3.2.5",
"socket.io": "^4.8.1",
"uuid": "^11.0.3"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@types/node": "22.10.2",
"eslint": "^9.17.0",
"globals": "^15.14.0",
"jest": "^29.7.0",
"mockingoose": "^2.16.2",
"nodemon": "3.1.9",
"supertest": "^7.0.0",
"ts-node-dev": "2.0.0",
"typescript": "5.7.3"
}
}