@dcloudio/uni-mp-jd 2.0.2-4080720251210002 → 2.0.2-5000420260318002
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/uni.config.js +10 -2
- package/package.json +2 -2
package/lib/uni.config.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
const path = require('path')
|
|
2
|
+
const { getSubpackageRoots } = require('@dcloudio/uni-cli-shared/lib/pages')
|
|
3
|
+
const { normalizePath } = require('@dcloudio/uni-cli-shared/lib/util')
|
|
4
|
+
|
|
5
|
+
const COMPONENTS_DIR_NAME = 'jdcomponents'
|
|
6
|
+
|
|
1
7
|
module.exports = {
|
|
2
8
|
options: {
|
|
3
9
|
cssVars: {
|
|
@@ -17,9 +23,11 @@ module.exports = {
|
|
|
17
23
|
project: 'project.config.json'
|
|
18
24
|
},
|
|
19
25
|
copyWebpackOptions (platformOptions, vueOptions) {
|
|
20
|
-
const copyOptions = [
|
|
26
|
+
const copyOptions = [COMPONENTS_DIR_NAME, 'custom-tab-bar', 'project.config.json']
|
|
27
|
+
const dirs = getSubpackageRoots().map((root) => normalizePath(path.join(root, COMPONENTS_DIR_NAME)))
|
|
28
|
+
copyOptions.push(...dirs)
|
|
21
29
|
global.uniModules.forEach(module => {
|
|
22
|
-
copyOptions.push('uni_modules/' + module + '/
|
|
30
|
+
copyOptions.push('uni_modules/' + module + '/' + COMPONENTS_DIR_NAME)
|
|
23
31
|
})
|
|
24
32
|
return copyOptions
|
|
25
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-mp-jd",
|
|
3
|
-
"version": "2.0.2-
|
|
3
|
+
"version": "2.0.2-5000420260318002",
|
|
4
4
|
"description": "uni-app mp-jd",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"name": "mp-jd",
|
|
18
18
|
"title": "京东小程序"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "5ee212292b880f06dde5d198e5ceb09f9d3769e1"
|
|
21
21
|
}
|