Problema de los alias de typescript
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user