Merge pull request #256 from jfx2006/issue_255
Read package.json from this package, not current directory. Fixes #255.
This commit is contained in:
Коммит
f38af64439
3
index.js
3
index.js
|
@ -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 = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче