Files
pnpm/test/support/isExecutable.ts
zkochan 1c00eb025e refactor: use is-windows package
For detecting Windows OS, use the is-windows package.
2017-01-09 18:08:15 +02:00

10 lines
275 B
TypeScript

import isexe = require('isexe')
import fs = require('mz/fs')
import {Test} from 'tape'
import semver = require('semver')
import {Stats} from 'fs'
export default async function isExecutable (t: Test, filePath: string) {
t.ok(isexe(filePath), filePath + ' is executable')
}