mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
build: fixed incorrect path for env.cjs and path resolved for entry points
This commit is contained in:
parent
b8b6e67559
commit
4047f50d5f
3 changed files with 11 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
const dotenv = require("dotenv");
|
||||
const { readFileSync } = require("fs");
|
||||
const pkg = require("./package.json");
|
||||
const pkg = require("../package.json");
|
||||
const parseEnvVariables = (filepath) => {
|
||||
const envVars = Object.entries(dotenv.parse(readFileSync(filepath))).reduce(
|
||||
(env, [key, value]) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue