How to use the @kosko/config.getConfig function in @kosko/config

To help you get started, we’ve selected a few @kosko/config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tommy351 / kosko / packages / cli / src / commands / generate.ts View on Github external
function resolveConfig(
  base: Config,
  args: BaseGenerateArguments
): Required {
  const { components = [], require = [] } = args.env
    ? getConfig(base, args.env)
    : base;

  return {
    components:
      args.components && args.components.length ? args.components : components,
    require: [...require, ...(args.require || [])]
  };
}

@kosko/config

Load kosko configuration.

MIT
Latest version published 12 days ago

Package Health Score

75 / 100
Full package analysis