Skip to content

Commit

Permalink
fix!: correct working directory
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Minimum supported Node.js >= 20.11.0

Ref: https://nodejs.org/api/esm.html#importmetadirname
  • Loading branch information
theoludwig committed Sep 24, 2024
1 parent 6fcf8eb commit c78ecb0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
],
"type": "module",
"engines": {
"node": ">=18.0.0"
"node": ">=20.11.0"
},
"scripts": {
"lint:typescript": "tsc --noEmit",
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit c78ecb0

Please sign in to comment.