Skip to content

Commit

Permalink
fix: remove is-windows test fixture code from module
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jan 19, 2024
1 parent c47a91a commit 865d556
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions lib/is-server-package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const util = require('util')
const fs = require('fs')
const { stat } = fs.promises || { stat: util.promisify(fs.stat) }
const { resolve } = require('path')
const { stat } = require('node:fs/promises')
const { resolve } = require('node:path')

module.exports = async path => {
try {
const st = await stat(resolve(path, 'server.js'))
Expand Down
2 changes: 0 additions & 2 deletions lib/is-windows.js

This file was deleted.

0 comments on commit 865d556

Please sign in to comment.