@nx/expo
Version:
11 lines (10 loc) • 380 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasExpoPlugin = hasExpoPlugin;
const devkit_1 = require("@nx/devkit");
function hasExpoPlugin(tree) {
const nxJson = (0, devkit_1.readNxJson)(tree);
return !!nxJson.plugins?.some((p) => typeof p === 'string'
? p === '@nx/expo/plugin'
: p.plugin === '@nx/expo/plugin');
}