pjj 0.1.0 → 0.1.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/README.md CHANGED
@@ -21,7 +21,7 @@ _我构建后的 `package.json` 🀄️不包含 `scripts` 字段,所以仅考
21
21
  ## 安装
22
22
 
23
23
  ```bash
24
- npm install pjj --save-dev
24
+ npm install --save-dev pjj
25
25
  ```
26
26
 
27
27
  ## 使用
@@ -4,11 +4,11 @@ import { cn } from './cn.mjs';
4
4
  /** 创建一个命令 */
5
5
  const command = new Command('pjj');
6
6
  command
7
- .bind({
8
- 'message <-m> (添加自定义的命令消息)': [],
9
- 'black <-b> (显示为黑色(默认)文本)': [],
10
- 'script <-s> (触发的勾子,默认为 prepublishOnly)': [],
11
- })
7
+ .bind([
8
+ 'message <-m> (添加自定义的命令消息)',
9
+ 'black <-b> (显示为黑色(默认)文本)',
10
+ 'script <-s> (触发的勾子,默认为 `prepublishOnly`)',
11
+ ])
12
12
  .run().isEnd.end;
13
13
  /**
14
14
  * 命令参数映射
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "pjj",
3
3
  "type": "module",
4
- "version": "0.1.0",
5
- "module": "./mjs/index.mjs",
4
+ "version": "0.1.4",
6
5
  "author": {
7
6
  "name": "earthnut",
8
7
  "email": "earthnut.dev@outlook.com",
@@ -13,16 +12,9 @@
13
12
  "mjs",
14
13
  "bin"
15
14
  ],
16
- "exports": {
17
- ".": {
18
- "import": {
19
- "default": "./mjs/index.mjs",
20
- "types": "./types/index.d.ts"
21
- }
22
- }
23
- },
24
15
  "keywords": [
25
- "pjj"
16
+ "pjj",
17
+ "bvn"
26
18
  ],
27
19
  "license": "ISC",
28
20
  "homepage": "https://earthnut.dev/pjj",
@@ -39,11 +31,11 @@
39
31
  "registry": "https://registry.npmjs.org/"
40
32
  },
41
33
  "dependencies": {
42
- "a-command": "^0.0.8",
43
- "a-node-tools": "^0.1.0",
44
- "color-pen": "^0.1.0"
34
+ "a-command": ">=0.1.1 <1.0.0",
35
+ "a-node-tools": ">=0.1.2 <1.0.0",
36
+ "color-pen": ">=0.1.1 <1.0.0"
45
37
  },
46
38
  "bin": {
47
- "pjj": "bin/pjj.js"
39
+ "pjj": "bin/index.js"
48
40
  }
49
41
  }
File without changes