Skip to content

Commit 5b85b5d

Browse files
committed
Omit ISO country codes list when copying topojson to dist folder
1 parent 671c005 commit 5b85b5d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tasks/preprocess.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,14 @@ function writeLibFiles(obj) {
7676
}
7777

7878
function copyTopojsonFiles() {
79-
fs.copy(constants.pathToTopojsonSrc, constants.pathToTopojsonDist, { clobber: true }, common.throwOnError);
79+
const FILES_TO_EXCLUDE = ['country_names_iso_codes.json'];
80+
fs.copy(
81+
constants.pathToTopojsonSrc,
82+
constants.pathToTopojsonDist,
83+
{
84+
clobber: true,
85+
filter: (filePath) => !FILES_TO_EXCLUDE.includes(path.basename(filePath))
86+
},
87+
common.throwOnError
88+
);
8089
}

0 commit comments

Comments
 (0)