create-npkg 0.0.10 → 0.0.11
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 +3 -3
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
### 交互式模式
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npm create npkg
|
|
29
|
+
npm create npkg@latest
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
### 快速模式(使用默认配置)
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
npm create npkg my-package --yes
|
|
35
|
+
npm create npkg@latest my-package -- --yes
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### 带选项的创建
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
npm create npkg my-package --yes --no-git --no-install
|
|
41
|
+
npm create npkg@latest my-package -- --yes --no-git --no-install
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
### 使用 npx
|
package/package.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-npkg",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Create a new TypeScript npm package with best practices",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"create-npkg": "index.js"
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"main": "./dist/src/index.js",
|
|
10
|
+
"types": "./dist/src/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/src/index.js",
|
|
14
|
+
"types": "./dist/src/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
10
17
|
"files": [
|
|
11
18
|
"index.js",
|
|
12
19
|
"dist",
|