UNPKG

@nxext/stencil

Version:

Nx plugin for stenciljs

15 lines 891 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.calculateStencilSourceOptions = void 0; const devkit_1 = require("@nrwl/devkit"); const ast_utils_1 = require("../../../utils/ast-utils"); function calculateStencilSourceOptions(host, projectName) { const stencilProjectConfig = (0, devkit_1.readProjectConfiguration)(host, projectName); const { npmScope } = (0, devkit_1.getWorkspaceLayout)(host); const stencilConfigPath = `${stencilProjectConfig.root}/stencil.config.ts`; const stencilConfigSource = (0, ast_utils_1.readTsSourceFile)(host, stencilConfigPath); const packageName = `@${npmScope}/${projectName}`; return { stencilProjectConfig, stencilConfigPath, stencilConfigSource, packageName }; } exports.calculateStencilSourceOptions = calculateStencilSourceOptions; //# sourceMappingURL=calculate-stencil-source-options.js.map