12345678910111213141516171819202122232425262728293031323334353637 |
- 'use strict';
- Object.defineProperty(exports, '__esModule', {
- value: true
- });
- exports.default = isWatchmanInstalled;
- function _child_process() {
- const data = require('child_process');
- _child_process = function () {
- return data;
- };
- return data;
- }
- function _util() {
- const data = require('util');
- _util = function () {
- return data;
- };
- return data;
- }
- async function isWatchmanInstalled() {
- try {
- await (0, _util().promisify)(_child_process().execFile)('watchman', [
- '--version'
- ]);
- return true;
- } catch {
- return false;
- }
- }
|