Problema de los alias de typescript

This commit is contained in:
2026-01-30 14:53:18 +01:00
parent b30c7e71e9
commit f52009092c
11 changed files with 351 additions and 25 deletions

View File

@@ -5,9 +5,9 @@
"main": "index.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "yarn tsc --project tsconfig.json",
"build": "yarn tsc --project tsconfig.json && cp package.json .env ../../dist/packages/sim-entrada-eventos/ && yarn tsc-alias",
"dev": "tsx watch index.ts",
"start": "node index.js"
"start": "node ../../dist/packages/sim-entrada-eventos/index.js"
},
"author": "",
"license": "ISC",
@@ -28,7 +28,11 @@
"@types/supertest": "*",
"prettier": "*",
"supertest": "*",
"tsc-alias": "^1.8.16",
"tsx": "*",
"vitest": "*"
},
"imports": {
"#config/*": "./config/*.js"
}
}

View File

@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/packages/sim-entrada-eventos",
"outDir": "../../dist",
"baseUrl": ".",
"paths": {
"#config/*": [
@@ -34,4 +34,4 @@
"files": [
"index.ts"
]
}
}