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

Method readStencilConfig

lib/stencil-init.js:57–69  ·  view source on GitHub ↗

* @returns {object}

()

Source from the content-addressed store, hash-verified

55 * @returns {object}
56 */
57 async readStencilConfig() {
58 let parsedConfig;
59 try {
60 parsedConfig = await this._stencilConfigManager.read(true, true);
61 } catch (err) {
62 this._logger.error(
63 'Detected a broken stencil-cli config:\n',
64 err,
65 '\nThe file will be rewritten with your answers',
66 );
67 }
68 return parsedConfig || {};
69 }
70
71 /**
72 * @param {{port: (number), normalStoreUrl: (string), accessToken: (string), apiHost: (string)}} stencilConfig

Callers 2

runMethod · 0.95

Calls 1

readMethod · 0.80

Tested by

no test coverage detected