Skip to content

Commit 7fe66bb

Browse files
authored
fix: Correct use of fs, so we no longer emit a deprecation warning for fs.F_OK
Fix #240
1 parent 400e3c1 commit 7fe66bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lifecycles/changelog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function outputChangelog(args, newVersion) {
102102

103103
function createIfMissing(args) {
104104
try {
105-
fs.accessSync(args.infile, fs.F_OK);
105+
fs.accessSync(args.infile, fs.constants.F_OK);
106106
} catch (err) {
107107
if (err.code === 'ENOENT') {
108108
checkpoint(args, 'created %s', [args.infile]);

0 commit comments

Comments
 (0)