@htyf-mp/cli 0.3.0 → 0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htyf-mp/cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "红糖云服app小程序模板-cli",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,8 +30,8 @@
30
30
  "license": "MIT",
31
31
  "repository": {
32
32
  "type": "git",
33
- "url": "https://github.com/htyf-mp-community/htyf-mp.git",
34
- "directory": "apps-cli"
33
+ "url": "https://github.com/htyf-mp-community/htyf-cli.git",
34
+ "directory": "htyf-cli"
35
35
  },
36
36
  "engines": {
37
37
  "node": ">=18.0.0",
package/src/config.mjs CHANGED
@@ -9,7 +9,7 @@ export class ProjectConfig {
9
9
  constructor() {
10
10
  this.validators = {
11
11
  appName: /^([a-z]+)(-[a-z0-9]+)*$/,
12
- displayName: /^[\u4e00-\u9fa5a-zA-Z0-9]{2,4}$/
12
+ displayName: /^[\u4e00-\u9fa5a-zA-Z0-9]{2,10}$/
13
13
  };
14
14
 
15
15
  this.templates = {
package/src/constants.mjs CHANGED
@@ -21,8 +21,8 @@ export const CONSTANTS = {
21
21
  MAX_RETRY_COUNT: 3,
22
22
  DEFAULT_TIMEOUT: 30000,
23
23
  TEMPLATE_REPOS: {
24
- GITHUB: 'https://github.com/htyf-mp-community/htyf-mp.git',
25
- CODING: 'https://e.coding.net/dagouzhi/hongtangyun_mobile/htyf-mp.git'
24
+ GITHUB: 'https://github.com/htyf-mp-community/htyf-cli.git',
25
+ CODING: 'https://e.coding.net/dagouzhi/hongtangyun_mobile/htyf-cli.git'
26
26
  },
27
27
  TEMPLATE_TYPES: {
28
28
  APP_TEMPLATE: 'app-template',
@@ -122,7 +122,7 @@ export class ProjectInitializer {
122
122
  default: '小程序',
123
123
  validate: (input) => {
124
124
  if (!this.config.validateDisplayName(input)) {
125
- return '只能中文、字母和数字, 不能包含特殊字符, 限2-4个字符';
125
+ return '只能中文、字母和数字, 不能包含特殊字符, 限6个字以内';
126
126
  }
127
127
  return true;
128
128
  }