Make explorer env loading workspace-safe
This commit is contained in:
@@ -4,10 +4,6 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
"exports": {
|
||||
".": "./dist/index.js",
|
||||
"./load-env": "./dist/load-env.js"
|
||||
},
|
||||
"types": "./dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import dotenv from "dotenv";
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const repoRoot = path.resolve(__dirname, "../../../");
|
||||
|
||||
// Workspace commands run from apps/*, so load the root-level .env explicitly.
|
||||
dotenv.config({ path: path.join(repoRoot, ".env") });
|
||||
Reference in New Issue
Block a user