mirror of
https://github.com/pnpm/pnpm.git
synced 2026-01-29 01:02:14 -05:00
10 lines
275 B
TypeScript
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')
|
|
}
|