Problema de rutas + env

This commit is contained in:
2026-01-30 15:10:49 +01:00
parent 1be982e422
commit fedc71791e
4 changed files with 8 additions and 12 deletions

View File

@@ -1,5 +1,7 @@
import { loadEnvFile } from "node:process";
loadEnvFile("../../.env")
import path from "node:path";
loadEnvFile(path.join(__dirname, "../../../../.env"))
export const env = {
ENVIRONMENT: process.env.ENVIORMENT,

View File

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