diff --git a/apps/bank-webhook/src/index.ts b/apps/bank-webhook/src/index.ts index 4172a69..b66a204 100644 --- a/apps/bank-webhook/src/index.ts +++ b/apps/bank-webhook/src/index.ts @@ -72,6 +72,6 @@ app.post("/hdfcWebhook", async (req, res) => { }) +// app.listen(3003); +export default app; - -app.listen(3003); \ No newline at end of file diff --git a/apps/bank-webhook/vercel.json b/apps/bank-webhook/vercel.json index a0a8bcd..628d3bf 100644 --- a/apps/bank-webhook/vercel.json +++ b/apps/bank-webhook/vercel.json @@ -1,16 +1,18 @@ { "version": 2, "builds": [ - { - "src": "app.js", - "use": "@vercel/node", - "config": { "includeFiles": ["dist/**"] } - } + { + "src": "src/index.js", + "use": "@vercel/node", + "config": { + "includeFiles": ["dist/**"] + } + } ], "routes": [ - { - "src": "/(.*)", - "dest": "app.js" - } + { + "src": "/(.*)", + "dest": "src/index.js" + } ] - } \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index b120ebb..8eb5fef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@repo/eslint-config": "*", "@repo/typescript-config": "*", "prettier": "^3.2.5", - "turbo": "latest" + "turbo": "^2.2.3" }, "engines": { "node": ">=18" @@ -51,7 +51,6 @@ } }, "apps/merchant-app": { - "name": "web", "version": "1.0.0", "dependencies": { "@repo/db": "*", @@ -327,7 +326,6 @@ } }, "apps/user-app": { - "name": "docs", "version": "1.0.0", "dependencies": { "@repo/store": "*", @@ -4419,10 +4417,6 @@ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", "dev": true }, - "node_modules/docs": { - "resolved": "apps/user-app", - "link": true - }, "node_modules/doctrine": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", @@ -7854,6 +7848,10 @@ "node": ">= 0.6" } }, + "node_modules/merchant-app": { + "resolved": "apps/merchant-app", + "link": true + }, "node_modules/merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", @@ -10949,26 +10947,26 @@ "dev": true }, "node_modules/turbo": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo/-/turbo-1.13.0.tgz", - "integrity": "sha512-r02GtNmkOPcQvUzVE6lg474QVLyU02r3yh3lUGqrFHf5h5ZEjgDGWILsAUqplVqjri1Y/oOkTssks4CObTAaiw==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/turbo/-/turbo-2.2.3.tgz", + "integrity": "sha512-5lDvSqIxCYJ/BAd6rQGK/AzFRhBkbu4JHVMLmGh/hCb7U3CqSnr5Tjwfy9vc+/5wG2DJ6wttgAaA7MoCgvBKZQ==", "dev": true, "bin": { "turbo": "bin/turbo" }, "optionalDependencies": { - "turbo-darwin-64": "1.13.0", - "turbo-darwin-arm64": "1.13.0", - "turbo-linux-64": "1.13.0", - "turbo-linux-arm64": "1.13.0", - "turbo-windows-64": "1.13.0", - "turbo-windows-arm64": "1.13.0" + "turbo-darwin-64": "2.2.3", + "turbo-darwin-arm64": "2.2.3", + "turbo-linux-64": "2.2.3", + "turbo-linux-arm64": "2.2.3", + "turbo-windows-64": "2.2.3", + "turbo-windows-arm64": "2.2.3" } }, "node_modules/turbo-darwin-64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-1.13.0.tgz", - "integrity": "sha512-ctHeJXtQgBcgxnCXwrJTGiq57HtwF7zWz5NTuSv//5yeU01BtQIt62ArKfjudOhRefWJbX3Z5srn88XTb9hfww==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-2.2.3.tgz", + "integrity": "sha512-Rcm10CuMKQGcdIBS3R/9PMeuYnv6beYIHqfZFeKWVYEWH69sauj4INs83zKMTUiZJ3/hWGZ4jet9AOwhsssLyg==", "cpu": [ "x64" ], @@ -10979,9 +10977,9 @@ ] }, "node_modules/turbo-darwin-arm64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-1.13.0.tgz", - "integrity": "sha512-/Q9/pNFkF9w83tNxwMpgapwLYdQ12p8mpty2YQRoUiS9ClWkcqe136jR0mtuMqzlNlpREOFZaoyIthjt6Sdo0g==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-2.2.3.tgz", + "integrity": "sha512-+EIMHkuLFqUdJYsA3roj66t9+9IciCajgj+DVek+QezEdOJKcRxlvDOS2BUaeN8kEzVSsNiAGnoysFWYw4K0HA==", "cpu": [ "arm64" ], @@ -10992,9 +10990,9 @@ ] }, "node_modules/turbo-linux-64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-1.13.0.tgz", - "integrity": "sha512-hgbT7o020BGV4L7Sd8hhFTd5zVKPKxbsr0dPfel/9NkdTmptz2aGZ0Vb2MAa18SY3XaCQpDxmdYuOzvvRpo5ZA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-2.2.3.tgz", + "integrity": "sha512-UBhJCYnqtaeOBQLmLo8BAisWbc9v9daL9G8upLR+XGj6vuN/Nz6qUAhverN4Pyej1g4Nt1BhROnj6GLOPYyqxQ==", "cpu": [ "x64" ], @@ -11005,9 +11003,9 @@ ] }, "node_modules/turbo-linux-arm64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-1.13.0.tgz", - "integrity": "sha512-WK01i2wDZARrV+HEs495A3hNeGMwQR5suYk7G+ceqqW7b+dOTlQdvUjnI3sg7wAnZPgjafFs/hoBaZdJjVa/nw==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-2.2.3.tgz", + "integrity": "sha512-hJYT9dN06XCQ3jBka/EWvvAETnHRs3xuO/rb5bESmDfG+d9yQjeTMlhRXKrr4eyIMt6cLDt1LBfyi+6CQ+VAwQ==", "cpu": [ "arm64" ], @@ -11018,9 +11016,9 @@ ] }, "node_modules/turbo-windows-64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-1.13.0.tgz", - "integrity": "sha512-hJgSZJZwlWHNwLEthaqJqJWGm4NqF5X/I7vE0sPE4i/jeDl8f0n1hcOkgJkJiNXVxhj+qy/9+4dzbPLKT9imaQ==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-2.2.3.tgz", + "integrity": "sha512-NPrjacrZypMBF31b4HE4ROg4P3nhMBPHKS5WTpMwf7wydZ8uvdEHpESVNMOtqhlp857zbnKYgP+yJF30H3N2dQ==", "cpu": [ "x64" ], @@ -11031,9 +11029,9 @@ ] }, "node_modules/turbo-windows-arm64": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-1.13.0.tgz", - "integrity": "sha512-L/ErxYoXeq8tmjU/AIGicC9VyBN1zdYw8JlM4yPmMI0pJdY8E4GaYK1IiIazqq7M72lmQhU/WW7fV9FqEktwrw==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-2.2.3.tgz", + "integrity": "sha512-fnNrYBCqn6zgKPKLHu4sOkihBI/+0oYFr075duRxqUZ+1aLWTAGfHZLgjVeLh3zR37CVzuerGIPWAEkNhkWEIw==", "cpu": [ "arm64" ], @@ -11279,6 +11277,10 @@ "punycode": "^2.1.0" } }, + "node_modules/user-app": { + "resolved": "apps/user-app", + "link": true + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -11345,10 +11347,6 @@ "defaults": "^1.0.3" } }, - "node_modules/web": { - "resolved": "apps/merchant-app", - "link": true - }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", diff --git a/package.json b/package.json index e888412..cb620e6 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@repo/eslint-config": "*", "@repo/typescript-config": "*", "prettier": "^3.2.5", - "turbo": "latest" + "turbo": "^2.2.3" }, "engines": { "node": ">=18" diff --git a/turbo.json b/turbo.json index 781f274..f778f34 100644 --- a/turbo.json +++ b/turbo.json @@ -1,13 +1,22 @@ { "$schema": "https://turbo.build/schema.json", - "globalDependencies": ["**/.env.*local"], - "pipeline": { + "globalDependencies": [ + "**/.env.*local" + ], + "tasks": { "build": { - "dependsOn": ["^build"], - "outputs": [".next/**", "!.next/cache/**"] + "dependsOn": [ + "^build" + ], + "outputs": [ + ".next/**", + "!.next/cache/**" + ] }, "lint": { - "dependsOn": ["^lint"] + "dependsOn": [ + "^lint" + ] }, "dev": { "cache": false,