Skip to content

Commit

Permalink
Merge pull request #256 from jfx2006/issue_255
Browse files Browse the repository at this point in the history
Read package.json from this package, not current directory. Fixes #255.
  • Loading branch information
Standard8 authored Sep 26, 2024
2 parents 697716b + 307e2c3 commit f38af64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { readFileSync } = require("fs");
const path = require("path");

const data = readFileSync("./package.json");
const data = readFileSync(path.join(__dirname, "package.json"));
const packageJSON = JSON.parse(data);

const plugin = {
Expand Down

0 comments on commit f38af64

Please sign in to comment.