mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix: get-components should ignore .DS_Store in macOS
This commit is contained in:
parent
12e1abc782
commit
3de884fbd9
@ -3,6 +3,6 @@ const path = require('path');
|
|||||||
|
|
||||||
module.exports = function() {
|
module.exports = function() {
|
||||||
const dirs = fs.readdirSync(path.resolve(__dirname, '../../packages'));
|
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)
|
return dirs.filter(dirName => excludes.indexOf(dirName) === -1)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user