|
1 | 1 | const path = require('path'); |
2 | | -const { PACKAGES_ROOT } = require('../release/config'); |
| 2 | +const { PACKAGES_ROOT, toGlobPattern } = require('../release/config'); |
3 | 3 |
|
4 | 4 | const VUE3_CLI_ROOT = path.resolve(__dirname, '../..'); |
5 | 5 | const APP_ROOT = path.resolve(__dirname, '../../../app'); |
@@ -37,11 +37,11 @@ const config = { |
37 | 37 | sourceDir: path.resolve(PACKAGES_ROOT, 'uniapp-components'), |
38 | 38 | chatSourceDir: path.resolve(PACKAGES_ROOT, 'uniapp-pro-components/chat'), |
39 | 39 |
|
40 | | - sourceGlob: path.resolve(PACKAGES_ROOT, 'uniapp-components/**/*'), |
41 | | - chatSourceGlob: path.resolve(PACKAGES_ROOT, 'uniapp-pro-components/chat/**/*'), |
42 | | - baseAndChatSourceGlob: path.resolve(PACKAGES_ROOT, '{uniapp-components,uniapp-pro-components}/**/*'), |
| 40 | + sourceGlob: toGlobPattern(path.resolve(PACKAGES_ROOT, 'uniapp-components/**/*')), |
| 41 | + chatSourceGlob: toGlobPattern(path.resolve(PACKAGES_ROOT, 'uniapp-pro-components/chat/**/*')), |
| 42 | + baseAndChatSourceGlob: toGlobPattern(path.resolve(PACKAGES_ROOT, '{uniapp-components,uniapp-pro-components}/**/*')), |
43 | 43 |
|
44 | | - demoPagesGlob: path.resolve(VUE3_CLI_ROOT, 'src/{pages,components,mixins,style}/**/*'), |
| 44 | + demoPagesGlob: toGlobPattern(path.resolve(VUE3_CLI_ROOT, 'src/{pages,components,mixins,style}/**/*')), |
45 | 45 | }; |
46 | 46 |
|
47 | 47 |
|
|
0 commit comments