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

Function validateOptions

lib/stencil-push.utils.js:22–28  ·  view source on GitHub ↗
(options = {}, fields = [])

Source from the content-addressed store, hash-verified

20 total: 100,
21});
22function validateOptions(options = {}, fields = []) {
23 for (const field of fields) {
24 if (!_.has(options, field)) {
25 throw new Error(`${field} is required!`);
26 }
27 }
28}
29utils.readStencilConfigFile = async (options) => {
30 try {
31 const config = await stencilConfigManager.read();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected