UNPKG

@dev-thought/nx-deploy-it

Version:

[![npm version](https://badge.fury.io/js/%40dev-thought%2Fnx-deploy-it.svg)](https://www.npmjs.com/package/@dev-thought/nx-deploy-it) [![The MIT License](https://img.shields.io/badge/license-MIT-orange.svg?color=blue&style=flat-square)](http://opensource.

14 lines 495 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasImport = void 0; const ts = require("typescript"); function hasImport(statements, importModule) { return !!statements .filter(node => { return node.kind === ts.SyntaxKind.ImportDeclaration; }) .map((node) => node.moduleSpecifier.text) .find((importName) => importName.indexOf(importModule) > -1); } exports.hasImport = hasImport; //# sourceMappingURL=ats.utils.js.map