UNPKG

@nxext/stencil

Version:

Nx plugin for stenciljs

20 lines 937 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.calculateStencilSourceOptions = calculateStencilSourceOptions; const devkit_1 = require("@nx/devkit"); const get_npm_scope_1 = require("@nx/js/src/utils/package-json/get-npm-scope"); const common_1 = require("@nxext/common"); function calculateStencilSourceOptions(host, projectName) { const stencilProjectConfig = (0, devkit_1.readProjectConfiguration)(host, projectName); const npmScope = (0, get_npm_scope_1.getNpmScope)(host); const stencilConfigPath = `${stencilProjectConfig.root}/stencil.config.ts`; const stencilConfigSource = (0, common_1.readTsSourceFile)(host, stencilConfigPath); const packageName = `@${npmScope}/${projectName}`; return { stencilProjectConfig, stencilConfigPath, stencilConfigSource, packageName, }; } //# sourceMappingURL=calculate-stencil-source-options.js.map