Skip to content

Commit

Permalink
Merge pull request #708 from semantic-release/fix/import-assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
fgreinacher committed Apr 29, 2024
2 parents 4055d01 + 94cc869 commit ae0d44f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/definitions/errors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {inspect} from 'util';
import pkg from '../../package.json' assert {type: 'json'};
import { createRequire } from "node:module";
const require = createRequire(import.meta.url);

const pkg = require("../../package.json");
const [homepage] = pkg.homepage.split('#');
const linkify = (file) => `${homepage}/blob/master/${file}`;
const stringify = (object) => inspect(object, {breakLength: Number.POSITIVE_INFINITY, depth: 2, maxArrayLength: 5});
Expand Down

0 comments on commit ae0d44f

Please sign in to comment.