create-unibest 3.0.1 → 3.0.4

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/bin/index.js CHANGED
File without changes
package/dist/index.js CHANGED
@@ -12,23 +12,23 @@ import { bold, green, red, yellow, cyan } from "kolorist";
12
12
  var logger = {
13
13
  /** 普通信息日志 */
14
14
  info: (message) => {
15
- console.log(`[${cyan("INFO")}] ${message}`);
15
+ console.log(`${cyan(bold(message))}`);
16
16
  },
17
17
  /** 成功日志 */
18
18
  success: (message) => {
19
- console.log(`[${green("SUCCESS")}] ${bold(message)}`);
19
+ console.log(`${green(bold(message))}`);
20
20
  },
21
21
  /** 错误日志 */
22
22
  error: (message) => {
23
- console.error(`[${red("ERROR")}] ${bold(message)}`);
23
+ console.error(`${red(bold(message))}`);
24
24
  },
25
25
  /** 警告日志 */
26
26
  warn: (message) => {
27
- console.log(`[${yellow("WARN")}] ${message}`);
27
+ console.log(`${yellow(bold(message))}`);
28
28
  },
29
29
  /** 提示日志 */
30
30
  tip: (message) => {
31
- console.log(`[${cyan("TIP")}] ${message}`);
31
+ console.log(`${cyan(bold(message))}`);
32
32
  }
33
33
  };
34
34
 
@@ -602,7 +602,7 @@ async function generateProject(options) {
602
602
  logger.info(` cd ${projectName}`);
603
603
  logger.info(" pnpm install");
604
604
  logger.info(" pnpm dev");
605
- logger.info(" \u8FD0\u884C\u5B8C\u4EE5\u4E0A\u547D\u4EE4\u540E\uFF0C\u5373\u53EF\u5728\u5BF9\u5E94\u5E73\u53F0\u4E0A\u8FD0\u884C\u9879\u76EE");
605
+ logger.info(" \u8FD0\u884C\u5B8C\u4EE5\u4E0A\u547D\u4EE4\u540E\uFF0C\u518D\u8FD0\u884C\u5176\u4ED6\u5E73\u53F0");
606
606
  logger.info(" \u5982\uFF1Apnpm dev:mp, pnpm dev:app \u7B49");
607
607
  } catch (error) {
608
608
  logger.error(`\u751F\u6210\u9879\u76EE\u5931\u8D25: ${error.message}`);
@@ -611,7 +611,7 @@ async function generateProject(options) {
611
611
  }
612
612
 
613
613
  // package.json
614
- var version = "3.0.1";
614
+ var version = "3.0.4";
615
615
 
616
616
  // src/commands/create.ts
617
617
  import { intro, log } from "@clack/prompts";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-unibest",
3
3
  "type": "module",
4
- "version": "3.0.1",
4
+ "version": "3.0.4",
5
5
  "description": "快速创建unibest项目的脚手架工具",
6
6
  "author": "",
7
7
  "license": "ISC",
@@ -15,12 +15,6 @@
15
15
  "bin",
16
16
  "dist"
17
17
  ],
18
- "scripts": {
19
- "dev": "NODE_ENV=development tsup --watch",
20
- "build": "NODE_ENV=production tsup",
21
- "prepare": "NODE_ENV=production npm run build",
22
- "start": "NODE_ENV=development node bin/index.js"
23
- },
24
18
  "dependencies": {
25
19
  "@clack/prompts": "^0.11.0",
26
20
  "dayjs": "^1.11.18",
@@ -35,7 +29,13 @@
35
29
  "@types/fs-extra": "^11.0.4",
36
30
  "@types/minimist": "^1.2.5",
37
31
  "@types/node": "^24.5.0",
32
+ "cross-env": "^7.0.3",
38
33
  "tsup": "^8.5.0",
39
34
  "typescript": "^5.9.0"
35
+ },
36
+ "scripts": {
37
+ "dev": "cross-env NODE_ENV=development tsup --watch",
38
+ "build": "cross-env NODE_ENV=production tsup",
39
+ "start": "cross-env NODE_ENV=development node bin/index.js"
40
40
  }
41
- }
41
+ }