MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / applyAnswers

Method applyAnswers

lib/stencil-init.js:158–166  ·  view source on GitHub ↗

* @param {object} stencilConfig * @param {object} answers * @param {object} cliOptions * @returns {object}

(stencilConfig, answers, cliOptions)

Source from the content-addressed store, hash-verified

156 * @returns {object}
157 */
158 applyAnswers(stencilConfig, answers, cliOptions) {
159 const config = this.updateApiHost(stencilConfig, cliOptions);
160 return {
161 customLayouts: DEFAULT_CUSTOM_LAYOUTS_CONFIG,
162 ...config,
163 ...cliOptions,
164 ...answers,
165 };
166 }
167
168 getPackageManager() {
169 const userAgent = process.env.npm_config_user_agent || '';

Callers 2

runMethod · 0.95

Calls 1

updateApiHostMethod · 0.95

Tested by

no test coverage detected