Skip to content

Commit e100d3c

Browse files
committed
use createRequire("../../package.json).homepage instead of hardcoding HOMEPAGE
1 parent 14e1a74 commit e100d3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/definitions/errors.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import { inspect } from "node:util";
2+
import { createRequire } from "node:module";
3+
const require = createRequire(import.meta.url);
24

35
import { isString } from "lodash-es";
46

5-
const HOMEPAGE = "https://github.com/semantic-release/github";
7+
const pkg = require("../../package.json");
8+
const HOMEPAGE = pkg.homepage;
69

710
const stringify = (object) =>
811
isString(object)

0 commit comments

Comments
 (0)