Skip to content

Commit f62d703

Browse files
fix(ui5-illustrated-message): fix imports filter (#12271)
1 parent 2265cb0 commit f62d703

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/tools/components-package/nps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const cypressEnvVariables = (options, predefinedVars) => {
1313
let variables = [];
1414
const { cypress_code_coverage, cypress_acc_tests } = options.internal ?? {};
1515

16-
// Handle environment variables like TEST_SUITE
16+
// Handle environment variables like TEST_SUITE
1717
if (predefinedVars) {
1818
variables = [...predefinedVars];
1919
}
@@ -36,7 +36,7 @@ const getScripts = (options) => {
3636
const createIllustrationsJSImportsScript = illustrations.join(" && ");
3737

3838
// The script creates the "src/generated/js-imports/Illustration.js" file that registers loaders (dynamic JS imports) for each illustration
39-
const createIllustrationsLoadersScript = illustrationsData.map(illustrations => `node ${LIB}/generate-js-imports/illustrations.js ${illustrations.destinationPath} ${illustrations.dynamicImports.outputFile} ${illustrations.set} ${illustrations.collection} ${illustrations.dynamicImports.location} ${illustrations.dynamicImports.filterOut.join(" ")}`).join(" && ");
39+
const createIllustrationsLoadersScript = illustrationsData.map(illustrations => `node ${LIB}/generate-js-imports/illustrations.js ${illustrations.destinationPath} ${illustrations.dynamicImports.outputFile} ${illustrations.set} ${illustrations.collection} ${illustrations.dynamicImports.location} ${illustrations.dynamicImports.filterOut.join(",")}`).join(" && ");
4040

4141
const tsOption = !options.legacy || options.jsx;
4242
const tsCommandOld = tsOption ? "tsc" : "";

packages/tools/lib/generate-js-imports/illustrations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const config = {
7777
set: process.argv[4],
7878
collection: process.argv[5],
7979
location: process.argv[6],
80-
filterOut: process.argv.slice[7],
80+
filterOut: process.argv[7].slice().split(","),
8181
};
8282

8383
// Run the generation process

0 commit comments

Comments
 (0)