Skip to content

Commit ff35e87

Browse files
authored
Merge pull request #60 from Byndyusoft/remove_pkg_dir
removed pkg-dir
2 parents 6480988 + 198d2e1 commit ff35e87

File tree

3 files changed

+3
-34
lines changed

3 files changed

+3
-34
lines changed

header-apache-2.0.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
const fs = require('fs');
22
const path = require('path');
33

4-
const pkgDir = require('pkg-dir');
5-
6-
const pjson = JSON.parse(fs.readFileSync(path.join(pkgDir.sync(), 'package.json'), 'utf8'));
4+
const pjson = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'package.json'), 'utf8'));
75

86
const year = new Date().getUTCFullYear();
97
const copyright = pjson.copyright || pjson.author;

package-lock.json

+1-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"eslint-plugin-simple-import-sort": "^12.1.0",
6060
"eslint-plugin-sonarjs": "^1.0.3",
6161
"eslint-plugin-testing-library": "^6.2.2",
62-
"eslint-plugin-unicorn": "^54.0.0",
63-
"pkg-dir": "^8.0.0"
62+
"eslint-plugin-unicorn": "^54.0.0"
6463
}
6564
}

0 commit comments

Comments
 (0)