|
3 | 3 | "version": "1.0.0", |
4 | 4 | "description": "Serverless framework ExpressJS TypeScript", |
5 | 5 | "scripts": { |
6 | | - "dev:db": "ts-node --esm scripts/database.mts", |
| 6 | + "dev:db": "ts-node --esm scripts/database.ts", |
7 | 7 | "dev:server": "cross-env NODE_ENV=development sls offline start --stage offline", |
8 | 8 | "dev": "run-p dev:*", |
9 | 9 | "tail-log": "sls logs -f app -t", |
10 | | - "deploy-prod": "cross-env NODE_ENV=production sls deploy --stage prod", |
| 10 | + "deploy:db": "dotenv -e .env.production -c -- ts-node --esm scripts/deployDbProd.ts", |
| 11 | + "deploy:app": "cross-env NODE_ENV=production sls deploy --stage prod", |
| 12 | + "deploy-prod": "run-s deploy:*", |
11 | 13 | "remove-prod": "cross-env NODE_ENV=production sls remove --stage prod", |
12 | | - "clean": "rimraf dist .webpack .serverless", |
| 14 | + "clean": "rimraf dist .esbuild .serverless", |
13 | 15 | "lint": "eslint .", |
14 | 16 | "format": "eslint --fix . && prettier '**/*.{json,yaml}' --write --ignore-path .gitignore", |
15 | 17 | "check-types": "tsc --noEmit --pretty", |
16 | | - "test": "jest", |
17 | 18 | "commit": "cz", |
| 19 | + "test": "jest", |
18 | 20 | "test:dev": "start-server-and-test dev http://localhost:4000 'curl --head http://localhost:4000'", |
| 21 | + "db:push": "prisma db push", |
19 | 22 | "prepare": "husky install", |
20 | 23 | "postinstall": "prisma generate" |
21 | 24 | }, |
|
32 | 35 | "@commitlint/cz-commitlint": "^17.5.0", |
33 | 36 | "@semantic-release/changelog": "^6.0.3", |
34 | 37 | "@semantic-release/git": "^10.0.1", |
35 | | - "@swc/core": "^1.3.44", |
| 38 | + "@swc/core": "^1.3.46", |
36 | 39 | "@swc/jest": "^0.2.24", |
| 40 | + "@types/cross-spawn": "^6.0.2", |
37 | 41 | "@types/express": "^4.17.17", |
38 | 42 | "@types/jest": "^29.5.0", |
39 | 43 | "@types/supertest": "^2.0.12", |
40 | | - "@typescript-eslint/eslint-plugin": "^5.57.0", |
41 | | - "@typescript-eslint/parser": "^5.57.0", |
| 44 | + "@typescript-eslint/eslint-plugin": "^5.57.1", |
| 45 | + "@typescript-eslint/parser": "^5.57.1", |
42 | 46 | "commitizen": "^4.3.0", |
43 | 47 | "cross-env": "^7.0.3", |
| 48 | + "cross-spawn": "^7.0.3", |
| 49 | + "esbuild": "~0.16.17", |
44 | 50 | "eslint": "^8.37.0", |
45 | 51 | "eslint-config-airbnb-base": "^15.0.0", |
46 | 52 | "eslint-config-airbnb-typescript": "^17.0.0", |
|
51 | 57 | "eslint-plugin-prettier": "^4.2.1", |
52 | 58 | "eslint-plugin-simple-import-sort": "^10.0.0", |
53 | 59 | "eslint-plugin-unused-imports": "^2.0.0", |
54 | | - "execa": "^7.1.1", |
55 | 60 | "husky": "^8.0.3", |
56 | 61 | "jest": "^29.5.0", |
57 | | - "lint-staged": "^13.2.0", |
58 | | - "mongodb-memory-server": "^8.12.1", |
| 62 | + "lint-staged": "^13.2.1", |
| 63 | + "mongodb-memory-server": "^8.12.2", |
59 | 64 | "npm-run-all": "^4.1.5", |
60 | | - "p-retry": "^5.1.2", |
| 65 | + "p-retry": "^4.6.2", |
61 | 66 | "prettier": "^2.8.7", |
62 | 67 | "prisma": "^4.12.0", |
63 | 68 | "rimraf": "^4.4.1", |
64 | 69 | "semantic-release": "^19.0.5", |
65 | | - "serverless": "^3.29.0", |
66 | | - "serverless-bundle": "^5.5.0", |
| 70 | + "serverless": "^3.30.1", |
67 | 71 | "serverless-dotenv-plugin": "^6.0.0", |
| 72 | + "serverless-esbuild": "^1.43.0", |
68 | 73 | "serverless-offline": "^12.0.4", |
69 | 74 | "start-server-and-test": "^2.0.0", |
70 | 75 | "supertest": "^6.3.3", |
71 | 76 | "ts-node": "^10.9.1", |
| 77 | + "tsconfig-paths": "^4.2.0", |
72 | 78 | "typescript": "^4.9.5" |
73 | 79 | }, |
74 | 80 | "config": { |
|
0 commit comments