diff --git a/lib/build/definitions/application.js b/lib/build/definitions/application.js index 619793ea0..6b346ca9f 100644 --- a/lib/build/definitions/application.js +++ b/lib/build/definitions/application.js @@ -1,5 +1,5 @@ import {enhancePatternWithExcludes} from "./_utils.js"; -import {enhanceBundleWithDefaults} from "../../validation/validator.js"; +import {enhanceBundlesWithDefaults} from "../../validation/validator.js"; /** * Get tasks and their configuration for a given application project @@ -86,7 +86,7 @@ export default function({project, taskUtil, getTask}) { taskFunction: async ({workspace, dependencies, taskUtil, options}) => { const generateBundleTask = await getTask("generateBundle"); // Async resolve default values for bundle definitions and options - const bundlesDefaults = await enhanceBundleWithDefaults(bundles, taskUtil.getProject()); + const bundlesDefaults = await enhanceBundlesWithDefaults(bundles, taskUtil.getProject()); return bundlesDefaults.reduce(async function(sequence, bundle) { return sequence.then(function() { diff --git a/lib/build/definitions/library.js b/lib/build/definitions/library.js index 9389e260d..985db4e1d 100644 --- a/lib/build/definitions/library.js +++ b/lib/build/definitions/library.js @@ -1,5 +1,5 @@ import {enhancePatternWithExcludes} from "./_utils.js"; -import {enhanceBundleWithDefaults} from "../../validation/validator.js"; +import {enhanceBundlesWithDefaults} from "../../validation/validator.js"; /** * Get tasks and their configuration for a given application project @@ -121,7 +121,7 @@ export default function({project, taskUtil, getTask}) { taskFunction: async ({workspace, dependencies, taskUtil, options}) => { const generateBundleTask = await getTask("generateBundle"); // Async resolve default values for bundle definitions and options - const bundlesDefaults = await enhanceBundleWithDefaults(bundles, taskUtil.getProject()); + const bundlesDefaults = await enhanceBundlesWithDefaults(bundles, taskUtil.getProject()); return bundlesDefaults.reduce(function(sequence, bundle) { return sequence.then(function() { diff --git a/lib/validation/validator.js b/lib/validation/validator.js index 1ccbb3f8a..b4ab76354 100644 --- a/lib/validation/validator.js +++ b/lib/validation/validator.js @@ -167,7 +167,7 @@ export async function getDefaults(options) { * @param {module:@ui5/project/specifications/Project} project The project to get metadata from * @returns {Promise} The enhanced BundleDefinition & BundleOptions */ -export async function enhanceBundleWithDefaults(bundles, project) { +export async function enhanceBundlesWithDefaults(bundles, project) { const config = { specVersion: `${project.getSpecVersion()}`, type: `${project.getType()}`,