@@ -187,6 +187,7 @@ async function generateCssVariablesLess({workspace, combo, namespace}) {
187187 }
188188}
189189
190+ /* eslint "jsdoc/check-param-names": ["error", {"disableExtraPropertyReporting":true}] */
190191/**
191192 * Generates resources required for integration with the SAP Theme Designer.
192193 *
@@ -198,11 +199,16 @@ async function generateCssVariablesLess({workspace, combo, namespace}) {
198199 * @param {object } parameters.options Options
199200 * @param {string } parameters.options.projectName Project name
200201 * @param {string } parameters.options.version Project version
201- * @param {string } [parameters.options.namespace] If the project is of type <code>library</code>, provide its namespace.
202+ * @param {string } [parameters.options.projectNamespace] If the project is of type <code>library</code>,
203+ * provide its namespace.
202204 * Omit for type <code>theme-library</code>
203205 * @returns {Promise<undefined> } Promise resolving with <code>undefined</code> once data has been written
204206 */
205- module . exports = async function ( { workspace, dependencies, options : { projectName, version, namespace} } ) {
207+ module . exports = async function ( { workspace, dependencies, options} ) {
208+ const { projectName, version} = options ;
209+ // Backward compatibility: "namespace" option got renamed to "projectNamespace"
210+ const namespace = options . projectNamespace || options . namespace ;
211+
206212 // Skip sap.ui.documentation since it is not intended to be available in SAP Theme Designer to create custom themes
207213 if ( namespace === "sap/ui/documentation" ) {
208214 return ;
0 commit comments