@@ -6,6 +6,7 @@ import { coerce } from 'semver';
66import { CHANGELOG_URL , populate } from './templates.mjs' ;
77import { allGenerators } from '../../generators/index.mjs' ;
88import { parseChangelog , parseIndex } from '../../parsers/markdown.mjs' ;
9+ import { enforceArray } from '../array.mjs' ;
910import { leftHandAssign } from '../generators.mjs' ;
1011import { lazy } from '../misc.mjs' ;
1112import { importFromURL } from '../url.mjs' ;
@@ -89,7 +90,7 @@ const merge = (objs, maxDepth, currentDepth = 0) => {
8990 * Loads a configuration file from a URL or file path.
9091 *
9192 * @param {string } filePath - The URL or file path to the configuration file
92- * @returns {Promise<Object > } The imported configuration object, or an empty object if no path provided
93+ * @returns {Promise<Partial<import('./types').Configuration> > } The imported configuration object, or an empty object if no path provided
9394 */
9495export const loadConfigFile = filePath =>
9596 filePath ? importFromURL ( filePath ) : { } ;
@@ -154,6 +155,7 @@ export const createConfigFromCLIOptions = options => ({
154155 */
155156export const createRunConfiguration = async options => {
156157 const config = await loadConfigFile ( options . configFile ) ;
158+ config . target &&= enforceArray ( config . target ) ;
157159
158160 // Merge with defaults
159161 // We set maxDepth as 2, as that's the depth of
0 commit comments