Skip to content

Commit

Permalink
chore: Move to native fs.access, removes fs-access package. (conventi…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbottigliero authored Oct 19, 2021
1 parent 2785023 commit fb3f3fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions lib/lifecycles/changelog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const accessSync = require('fs-access').sync
const chalk = require('chalk')
const checkpoint = require('../checkpoint')
const conventionalChangelog = require('conventional-changelog')
Expand Down Expand Up @@ -56,7 +55,7 @@ function outputChangelog (args, newVersion) {

function createIfMissing (args) {
try {
accessSync(args.infile, fs.F_OK)
fs.accessSync(args.infile, fs.F_OK)
} catch (err) {
if (err.code === 'ENOENT') {
checkpoint(args, 'created %s', [args.infile])
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"dotgitignore": "^2.1.0",
"figures": "^3.1.0",
"find-up": "^5.0.0",
"fs-access": "^1.0.1",
"git-semver-tags": "^4.0.0",
"semver": "^7.1.1",
"stringify-package": "^1.0.1",
Expand Down

0 comments on commit fb3f3fa

Please sign in to comment.