UNPKG

@nxworker/workspace

Version:

Nx plugin providing generators for managing workspace files, including the move-file generator for safely moving files between projects while updating all imports

22 lines (21 loc) 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "shouldExportFile", { enumerable: true, get: function() { return shouldExportFile; } }); function shouldExportFile(ctx, options) { const { isSameProject, isExported, hasImportsInTarget, hasImportsInSource } = ctx; if (options.skipExport) { return false; } if (isSameProject) { return isExported; } return isExported || hasImportsInTarget || hasImportsInSource; } //# sourceMappingURL=should-export-file.js.map