diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9f6d67b..afda3fc8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: node: [14.x, 16.x, 18.x, 19.x] - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-13, windows-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/lib/fs/index.js b/lib/fs/index.js index 3c3ec511..2dae8184 100644 --- a/lib/fs/index.js +++ b/lib/fs/index.js @@ -11,6 +11,7 @@ const api = [ 'chown', 'close', 'copyFile', + 'cp', 'fchmod', 'fchown', 'fdatasync', @@ -18,8 +19,10 @@ const api = [ 'fsync', 'ftruncate', 'futimes', + 'glob', 'lchmod', 'lchown', + 'lutimes', 'link', 'lstat', 'mkdir', @@ -34,6 +37,7 @@ const api = [ 'rm', 'rmdir', 'stat', + 'statfs', 'symlink', 'truncate', 'unlink', @@ -42,6 +46,8 @@ const api = [ ].filter(key => { // Some commands are not available on some systems. Ex: // fs.cp was added in Node.js v16.7.0 + // fs.statfs was added in Node v19.6.0, v18.15.0 + // fs.glob was added in Node.js v22.0.0 // fs.lchown is not available on at least some Linux return typeof fs[key] === 'function' })