UNPKG

@conarti/eslint-plugin-feature-sliced

Version:
19 lines (18 loc) 711 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.extractFeatureSlicedParts = void 0; const extract_layer_1 = require("./extract-layer"); const extract_segment_1 = require("./extract-segment"); const extract_slice_1 = require("./extract-slice"); function extractFeatureSlicedParts(targetPath, cwd) { const layer = (0, extract_layer_1.extractLayer)(targetPath, cwd); const slice = (0, extract_slice_1.extractSlice)(targetPath); const [segment, segmentFiles] = (0, extract_segment_1.extractSegment)(targetPath); return { layer, slice, segment, segmentFiles, }; } exports.extractFeatureSlicedParts = extractFeatureSlicedParts;