|
1 | 1 | { |
2 | 2 | "name": "expresso-sequelize", |
3 | 3 | "version": "5.0.3", |
4 | | - "description": "expresso sequelize, postgesql, redis, aws s3", |
5 | | - "main": "./dist/server.js", |
6 | | - "private": true, |
| 4 | + "description": "expressjs, typescript, sequelize, gcp, aws, minio", |
| 5 | + "main": "./dist/main.js", |
7 | 6 | "scripts": { |
8 | 7 | "key:generate": "node ./dist/scripts/generate.js", |
9 | 8 | "clean": "rimraf dist coverage", |
10 | 9 | "typecheck": "tsc --noEmit", |
11 | 10 | "lint": "npx eslint '*/**/*.{js,jsx,ts,tsx}' --quiet --fix", |
12 | 11 | "prebuild": "npm-run-all clean lint typecheck", |
13 | 12 | "build": "npx swc src -d dist", |
14 | | - "start": "nodemon --exec node ./dist/server.js", |
| 13 | + "start": "nodemon --exec node ./dist/main.js", |
15 | 14 | "dev": "npm-run-all build start", |
16 | 15 | "dev:watch": "concurrently \"npm run watch-compile\" \"npm run watch-dev\"", |
17 | 16 | "watch-compile": "npx swc src -w --out-dir dist", |
18 | | - "watch-dev": "nodemon --watch \"dist/**/*\" -e js ./dist/server.js", |
| 17 | + "watch-dev": "nodemon --watch \"dist/**/*\" -e js ./dist/main.js", |
19 | 18 | "db:migrate": "npx sequelize-cli db:migrate", |
20 | 19 | "db:migrate-fresh": "npx sequelize-cli db:migrate:undo:all && npm run db:migrate", |
21 | 20 | "db:seed": "npx sequelize-cli db:seed:all", |
22 | 21 | "db:drop": "npx sequelize-cli db:drop", |
23 | 22 | "db:create": "npx sequelize-cli db:create", |
24 | 23 | "db:reset": "npm-run-all db:drop db:create db:migrate db:seed", |
25 | 24 | "deploy:pm2": "npm run build && npx pm2 reload ecosystem.config.js", |
26 | | - "serve:staging": "NODE_ENV=staging node ./dist/server.js", |
27 | | - "serve:production": "NODE_ENV=production node ./dist/server.js", |
28 | | - "serve:staging-docker": "NODE_ENV=staging pm2-runtime ./dist/server.js", |
29 | | - "serve:production-docker": "NODE_ENV=production pm2-runtime ./dist/server.js", |
| 25 | + "serve:staging": "NODE_ENV=staging node ./dist/main.js", |
| 26 | + "serve:production": "NODE_ENV=production node ./dist/main.js", |
| 27 | + "serve:staging-docker": "NODE_ENV=staging pm2-runtime ./dist/main.js", |
| 28 | + "serve:production-docker": "NODE_ENV=production pm2-runtime ./dist/main.js", |
30 | 29 | "test": "jest", |
31 | 30 | "test:watch": "jest --watchAll", |
32 | 31 | "prerelease": "npm run prebuild", |
|
36 | 35 | "release:minor": "npm run release -- --release-as minor", |
37 | 36 | "release:major": "npm run release -- --release-as major" |
38 | 37 | }, |
| 38 | + "keywords": [ |
| 39 | + "expressjs", |
| 40 | + "typescript", |
| 41 | + "typeorm", |
| 42 | + "gcp", |
| 43 | + "aws", |
| 44 | + "minio" |
| 45 | + ], |
39 | 46 | "author": "masb0ymas <n.fajri@mail.com>", |
40 | 47 | "license": "MIT", |
| 48 | + "private": true, |
41 | 49 | "engines": { |
42 | 50 | "node": ">= 16.x" |
43 | 51 | }, |
44 | 52 | "dependencies": { |
45 | | - "@aws-sdk/client-s3": "^3.344.0", |
46 | | - "@aws-sdk/s3-request-presigner": "^3.344.0", |
| 53 | + "@aws-sdk/client-s3": "^3.345.0", |
| 54 | + "@aws-sdk/s3-request-presigner": "^3.345.0", |
47 | 55 | "@google-cloud/storage": "^6.10.1", |
48 | 56 | "axios": "^1.4.0", |
49 | 57 | "bcrypt": "^5.1.0", |
|
53 | 61 | "cookie-parser": "^1.4.6", |
54 | 62 | "cors": "^2.8.5", |
55 | 63 | "date-fns": "^2.30.0", |
56 | | - "dotenv": "^16.1.3", |
| 64 | + "dotenv": "^16.1.4", |
57 | 65 | "express": "^4.18.2", |
58 | 66 | "express-async-handler": "^1.2.0", |
59 | 67 | "express-rate-limit": "^6.7.0", |
60 | 68 | "express-useragent": "^1.0.15", |
61 | | - "expresso-core": "^0.6.0", |
62 | | - "expresso-hooks": "^0.6.0", |
63 | | - "expresso-provider": "^0.6.0", |
64 | | - "expresso-query": "^0.6.0", |
| 69 | + "expresso-core": "^0.7.0", |
| 70 | + "expresso-hooks": "^0.7.0", |
| 71 | + "expresso-provider": "^0.7.0", |
| 72 | + "expresso-query": "^0.7.0", |
65 | 73 | "handlebars": "^4.7.7", |
66 | | - "helmet": "^6.2.0", |
| 74 | + "helmet": "^7.0.0", |
67 | 75 | "hpp": "^0.2.3", |
68 | 76 | "i18next": "^22.5.0", |
69 | 77 | "i18next-fs-backend": "^2.1.2", |
70 | 78 | "i18next-http-middleware": "^3.3.1", |
71 | | - "ioredis": "^5.3.2", |
72 | 79 | "jsonwebtoken": "^9.0.0", |
73 | | - "libphonenumber-js": "^1.10.31", |
74 | 80 | "lodash": "^4.17.21", |
75 | 81 | "minio": "^7.1.1", |
76 | | - "module-alias": "^2.2.2", |
| 82 | + "module-alias": "^2.2.3", |
77 | 83 | "morgan": "^1.10.0", |
78 | 84 | "multer": "1.4.5-lts.1", |
79 | 85 | "node-cron": "^3.0.2", |
80 | 86 | "npm-run-all": "^4.1.5", |
81 | 87 | "pg": "^8.11.0", |
82 | 88 | "pg-hstore": "^2.3.4", |
83 | 89 | "pm2": "^5.3.0", |
| 90 | + "qs": "^6.11.2", |
84 | 91 | "reflect-metadata": "^0.1.13", |
85 | 92 | "request-ip": "^3.3.0", |
86 | 93 | "sequelize": "^6.32.0", |
87 | | - "sequelize-cli": "^6.6.0", |
| 94 | + "sequelize-cli": "^6.6.1", |
88 | 95 | "sequelize-typescript": "^2.1.5", |
89 | 96 | "slugify": "^1.6.6", |
90 | 97 | "swagger-jsdoc": "^6.2.8", |
|
98 | 105 | "@commitlint/config-conventional": "^17.6.5", |
99 | 106 | "@jest/globals": "^29.5.0", |
100 | 107 | "@swc/cli": "^0.1.62", |
101 | | - "@swc/core": "^1.3.61", |
| 108 | + "@swc/core": "^1.3.62", |
102 | 109 | "@types/bcrypt": "^5.0.0", |
103 | 110 | "@types/compression": "^1.7.2", |
104 | 111 | "@types/cookie-parser": "^1.4.3", |
105 | 112 | "@types/cors": "^2.8.13", |
106 | 113 | "@types/express": "^4.17.17", |
107 | 114 | "@types/express-useragent": "^1.0.2", |
108 | 115 | "@types/hpp": "^0.2.2", |
109 | | - "@types/ioredis-mock": "^8.2.2", |
110 | 116 | "@types/jest": "^29.5.2", |
111 | 117 | "@types/jsonwebtoken": "^9.0.2", |
112 | 118 | "@types/lodash": "^4.14.195", |
113 | 119 | "@types/minio": "^7.1.0", |
114 | 120 | "@types/module-alias": "^2.0.1", |
115 | 121 | "@types/morgan": "^1.9.4", |
116 | 122 | "@types/multer": "^1.4.7", |
117 | | - "@types/node": "^18.16.16", |
| 123 | + "@types/node": "^20.2.5", |
118 | 124 | "@types/node-cron": "^3.0.7", |
| 125 | + "@types/qs": "^6.9.7", |
119 | 126 | "@types/request-ip": "^0.0.37", |
120 | 127 | "@types/supertest": "^2.0.12", |
121 | 128 | "@types/swagger-jsdoc": "^6.0.1", |
122 | 129 | "@types/swagger-ui-express": "^4.1.3", |
123 | 130 | "@types/uuid": "^9.0.1", |
124 | 131 | "@typescript-eslint/eslint-plugin": "^5.59.8", |
125 | 132 | "@typescript-eslint/parser": "^5.59.8", |
126 | | - "eslint": "^8.41.0", |
| 133 | + "eslint": "^8.42.0", |
127 | 134 | "eslint-config-prettier": "^8.8.0", |
128 | | - "eslint-config-standard-with-typescript": "^34.0.1", |
| 135 | + "eslint-config-standard-with-typescript": "^35.0.0", |
129 | 136 | "eslint-import-resolver-alias": "^1.1.2", |
130 | 137 | "eslint-plugin-import": "^2.27.5", |
131 | 138 | "eslint-plugin-n": "^15.7.0", |
132 | 139 | "eslint-plugin-prettier": "^4.2.1", |
133 | 140 | "eslint-plugin-promise": "^6.1.1", |
134 | 141 | "husky": "^8.0.3", |
135 | | - "ioredis-mock": "^8.7.0", |
136 | 142 | "jest": "^29.5.0", |
137 | 143 | "nodemon": "^2.0.22", |
138 | 144 | "prettier": "^2.8.8", |
139 | | - "rimraf": "^4.4.1", |
| 145 | + "rimraf": "^5.0.1", |
140 | 146 | "standard-version": "^9.5.0", |
141 | 147 | "supertest": "^6.3.3", |
142 | 148 | "ts-jest": "^29.1.0", |
143 | | - "typescript": "^4.9.5" |
| 149 | + "typescript": "^5.1.3" |
144 | 150 | }, |
145 | 151 | "_moduleAliases": { |
146 | 152 | "~/*": "dist/*" |
| 153 | + }, |
| 154 | + "jest": { |
| 155 | + "preset": "ts-jest", |
| 156 | + "testEnvironment": "node", |
| 157 | + "transform": { |
| 158 | + "^.+\\.ts?$": "ts-jest" |
| 159 | + }, |
| 160 | + "modulePaths": [ |
| 161 | + "src" |
| 162 | + ], |
| 163 | + "moduleDirectories": [ |
| 164 | + "node_modules" |
| 165 | + ], |
| 166 | + "moduleNameMapper": { |
| 167 | + "^~(.*)$": "<rootDir>/src$1" |
| 168 | + }, |
| 169 | + "modulePathIgnorePatterns": [ |
| 170 | + "<rootDir>/dist/" |
| 171 | + ], |
| 172 | + "transformIgnorePatterns": [ |
| 173 | + "<rootDir>/node_modules/" |
| 174 | + ], |
| 175 | + "testTimeout": 30000 |
147 | 176 | } |
148 | 177 | } |
0 commit comments