diff --git a/package-lock.json b/package-lock.json index d12bb0e..4bff27f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,7 @@ "undici": "6.19.8" }, "engines": { - "node": ">=18.0.0" + "node": ">=20.11.0" }, "funding": { "type": "buymeacoffee", diff --git a/package.json b/package.json index 9b9d686..dddd464 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ ], "type": "module", "engines": { - "node": ">=18.0.0" + "node": ">=20.11.0" }, "scripts": { "lint:typescript": "tsc --noEmit", diff --git a/src/constants.ts b/src/constants.ts index 03ba3c8..f633088 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -2,6 +2,6 @@ import path from "node:path" export const NAME = "editorconfig-checker" export const VERSION = process.env.EC_VERSION ?? "latest" -export const CWD = process.cwd() +export const CWD = path.join(import.meta.dirname, "..") export const BIN_PATH = path.join(CWD, "bin") export const COMBINED_PATH = path.join(BIN_PATH, VERSION)