create-unibest 3.1.1 → 3.1.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/README.md CHANGED
@@ -26,6 +26,7 @@ npm update -g create-unibest # 更新 create-unibest 包
26
26
 
27
27
  ```shell
28
28
  best <command> [options] # 基本命令格式
29
+ best my-project # 创建新的unibest项目
29
30
  best new my-project # 创建新的unibest项目
30
31
  best -v # 查看版本信息
31
32
  best -h # 查看帮助信息
@@ -35,6 +36,7 @@ best -h # 查看帮助信息
35
36
 
36
37
  ```shell
37
38
  pnpm create unibest <command> [options] # 基本命令格式
39
+ pnpm create unibest my-project # 创建新的unibest项目
38
40
  pnpm create unibest new my-project # 创建新的unibest项目
39
41
  pnpm create unibest -v # 查看版本信息
40
42
  pnpm create unibest -h # 查看帮助信息
package/dist/index.js CHANGED
@@ -37,7 +37,7 @@ import { existsSync } from "fs";
37
37
  import { yellow as yellow2 } from "kolorist";
38
38
  import { join } from "path";
39
39
  function validateProjectName(name) {
40
- const reg = /^[a-z0-9_-]+$/;
40
+ const reg = /^[a-zA-Z0-9_-]+$/;
41
41
  if (!reg.test(name)) {
42
42
  return false;
43
43
  }
@@ -612,7 +612,7 @@ async function generateProject(options) {
612
612
  }
613
613
 
614
614
  // package.json
615
- var version = "3.1.1";
615
+ var version = "3.1.2";
616
616
  var package_default = {
617
617
  name: "create-unibest",
618
618
  type: "module",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-unibest",
3
3
  "type": "module",
4
- "version": "3.1.1",
4
+ "version": "3.1.2",
5
5
  "packageManager": "pnpm@9.0.0",
6
6
  "description": "快速创建unibest项目的脚手架工具",
7
7
  "author": "",