Skip to content

Commit fb3f3fa

Browse files
authored
chore: Move to native fs.access, removes fs-access package. (#840)
closes #793
1 parent 2785023 commit fb3f3fa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/lifecycles/changelog.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const accessSync = require('fs-access').sync
21
const chalk = require('chalk')
32
const checkpoint = require('../checkpoint')
43
const conventionalChangelog = require('conventional-changelog')
@@ -56,7 +55,7 @@ function outputChangelog (args, newVersion) {
5655

5756
function createIfMissing (args) {
5857
try {
59-
accessSync(args.infile, fs.F_OK)
58+
fs.accessSync(args.infile, fs.F_OK)
6059
} catch (err) {
6160
if (err.code === 'ENOENT') {
6261
checkpoint(args, 'created %s', [args.infile])

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"dotgitignore": "^2.1.0",
4848
"figures": "^3.1.0",
4949
"find-up": "^5.0.0",
50-
"fs-access": "^1.0.1",
5150
"git-semver-tags": "^4.0.0",
5251
"semver": "^7.1.1",
5352
"stringify-package": "^1.0.1",

0 commit comments

Comments
 (0)