@mpxjs/cli 3.3.1 → 3.3.2

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.
@@ -28,6 +28,30 @@ test('normal', async () => {
28
28
  expect(pkg.devDependencies).toHaveProperty('@mpxjs/vue-cli-plugin-mpx')
29
29
  })
30
30
 
31
+ test('normal-didi', async () => {
32
+ const cwd = path.resolve(__dirname, '../../test')
33
+ const name = 'test-normal-didi'
34
+ await create(
35
+ name,
36
+ {
37
+ force: true,
38
+ git: false,
39
+ cwd
40
+ },
41
+ {
42
+ srcMode: 'dd',
43
+ description: 'test',
44
+ appid: 'dd-test',
45
+ cross: true,
46
+ plugins: {},
47
+ useConfigFiles: true
48
+ }
49
+ )
50
+
51
+ const pkg = require(path.resolve(cwd, name, 'package.json'))
52
+ expect(pkg.devDependencies).toHaveProperty('@mpxjs/vue-cli-plugin-mpx')
53
+ })
54
+
31
55
  /**
32
56
  * 非跨平台项目不生成static/ali目录
33
57
  */
package/lib/prompts.js CHANGED
@@ -93,7 +93,7 @@ module.exports = [
93
93
  },
94
94
  {
95
95
  name: 'appid',
96
- when: ({ srcMode }) => srcMode === 'wx',
96
+ when: ({ srcMode }) => srcMode === 'wx' || srcMode === 'dd',
97
97
  required: true,
98
98
  message: '请输入小程序的Appid',
99
99
  default: 'touristappid'
package/package.json CHANGED
@@ -29,5 +29,5 @@
29
29
  "access": "public",
30
30
  "registry": "https://registry.npmjs.org"
31
31
  },
32
- "version": "3.3.1"
32
+ "version": "3.3.2"
33
33
  }