Skip to content

Commit

Permalink
Merge pull request #213 from forcedotcom/mdonnalley/sf-friendly
Browse files Browse the repository at this point in the history
feat: apply exlude-scripts to wireit
  • Loading branch information
mdonnalley authored Sep 1, 2023
2 parents 5167e5a + e941359 commit 92f2265
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/sf-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ const resolveConfig = (path) => {
excludeScripts = [
...excludeScripts,
...Object.keys(config.scripts).filter((scriptName) => !config['only-scripts'].includes(scriptName)),
...Object.keys(config.wireit).filter((scriptName) => !config['only-scripts'].includes(scriptName)),
];
}

// Remove excluded items
excludeScripts.forEach((scriptName) => {
delete config.scripts[scriptName];
delete config.wireit[scriptName];
});

resolvedConfigs[path] = config;
Expand Down

0 comments on commit 92f2265

Please sign in to comment.