UNPKG

ngx-deploy-npm

Version:

Publish your libraries to NPM with just one command

14 lines 644 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isProjectAPublishableLib = void 0; const tslib_1 = require("tslib"); const file_utils_1 = require("./file-utils"); const path = require("path"); const isProjectAPublishableLib = (project) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return (project.projectType === 'library' && (yield hasProjectJsonFile(project))); }); exports.isProjectAPublishableLib = isProjectAPublishableLib; function hasProjectJsonFile(project) { return (0, file_utils_1.fileExists)(path.join(project.root, 'package.json')); } //# sourceMappingURL=is-a-lib.js.map