Skip to content

Commit c78ecb0

Browse files
committed
fix!: correct working directory
BREAKING CHANGE: Minimum supported Node.js >= 20.11.0 Ref: https://nodejs.org/api/esm.html#importmetadirname
1 parent 6fcf8eb commit c78ecb0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
],
2828
"type": "module",
2929
"engines": {
30-
"node": ">=18.0.0"
30+
"node": ">=20.11.0"
3131
},
3232
"scripts": {
3333
"lint:typescript": "tsc --noEmit",

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import path from "node:path"
22

33
export const NAME = "editorconfig-checker"
44
export const VERSION = process.env.EC_VERSION ?? "latest"
5-
export const CWD = process.cwd()
5+
export const CWD = path.join(import.meta.dirname, "..")
66
export const BIN_PATH = path.join(CWD, "bin")
77
export const COMBINED_PATH = path.join(BIN_PATH, VERSION)

0 commit comments

Comments
 (0)