Skip to content

Commit

Permalink
Add absolute path imports on api project
Browse files Browse the repository at this point in the history
  • Loading branch information
martinc1991 committed May 31, 2024
1 parent 94883a8 commit 26d46ea
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 41 deletions.
200 changes: 190 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"type": "module",
"main": "dist/app.js",
"scripts": {
"build": "rimraf dist && tsc",
"dev": "nodemon src/app.ts",
"build": "rimraf dist && tspc",
"dev": "tsx watch src/app.ts",
"start": "node dist/app.js"
},
"keywords": [],
Expand All @@ -17,8 +17,10 @@
"@types/morgan": "1.9.9",
"nodemon": "3.1.0",
"rimraf": "5.0.5",
"ts-node": "10.9.2",
"typescript": "5.4.4"
"ts-patch": "^3.1.2",
"tsx": "^4.11.0",
"typescript": "5.4.4",
"typescript-transform-paths": "^3.4.7"
},
"dependencies": {
"cors": "2.8.5",
Expand Down
8 changes: 4 additions & 4 deletions packages/api/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import express from "express";
import cors from "cors";
import express from "express";
import helmet from "helmet";
import morgan from "morgan";

import serverless from "serverless-http";

import routes from "./routes/index.js";
import middlewares from "./middlewares.js";
import envParsed from "./envParsed.js";
import envParsed from "@/envParsed.js";
import middlewares from "@/middlewares/index.js";
import routes from "@/routes/index.js";

const app = express();

Expand Down
Loading

0 comments on commit 26d46ea

Please sign in to comment.