From 3de884fbd99c11a83e7ea3c8f537bdd7e323d354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Thu, 28 Sep 2017 10:42:25 +0800 Subject: [PATCH] fix: get-components should ignore .DS_Store in macOS --- build/bin/get-components.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/bin/get-components.js b/build/bin/get-components.js index 9cc7a71fe..08b3092d7 100644 --- a/build/bin/get-components.js +++ b/build/bin/get-components.js @@ -3,6 +3,6 @@ const path = require('path'); module.exports = function() { const dirs = fs.readdirSync(path.resolve(__dirname, '../../packages')); - const excludes = ['index.js', 'vant-css', 'mixins', 'utils']; + const excludes = ['index.js', 'vant-css', 'mixins', 'utils', '.DS_Store']; return dirs.filter(dirName => excludes.indexOf(dirName) === -1) }