@dittowords/cli 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/config.js
CHANGED
|
@@ -110,7 +110,7 @@ function dedupeProjectName(projectNames, projectName) {
|
|
|
110
110
|
function parseSourceInformation() {
|
|
111
111
|
const { projects, components, variants, format } = readData();
|
|
112
112
|
|
|
113
|
-
const projectNames =
|
|
113
|
+
const projectNames = new Set();
|
|
114
114
|
const validProjects = [];
|
|
115
115
|
|
|
116
116
|
let componentLibraryInProjects = false;
|
|
@@ -29,7 +29,7 @@ function getSelectedProjects(configFile = PROJECT_CONFIG_FILE) {
|
|
|
29
29
|
return [];
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
return
|
|
32
|
+
return contentJson.projects.filter(({ name, id }) => name && id);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
module.exports = getSelectedProjects;
|