@0x-jerry/x 2.4.2 → 2.4.3
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/dist/xn.js +1 -1
- package/package.json +10 -11
- package/readme.md +19 -19
package/dist/xn.js
CHANGED
|
@@ -98,7 +98,7 @@ async function installAction(_, opt) {
|
|
|
98
98
|
}
|
|
99
99
|
await runNpm("add", ...parameters);
|
|
100
100
|
if (opt.types) {
|
|
101
|
-
const typesPackages = parameters.filter((n) => n.startsWith("-")).map((pkg) => getTypePackageName(pkg));
|
|
101
|
+
const typesPackages = parameters.filter((n) => !n.startsWith("-")).map((pkg) => getTypePackageName(pkg));
|
|
102
102
|
await runNpm("add", ...typesPackages, "-D");
|
|
103
103
|
}
|
|
104
104
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0x-jerry/x",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/0x-jerry/x.git"
|
|
@@ -20,16 +20,6 @@
|
|
|
20
20
|
"xn": "dist/xn.js",
|
|
21
21
|
"x": "dist/x.js"
|
|
22
22
|
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "tsup",
|
|
25
|
-
"dev:xr": "tsx src/xr.ts",
|
|
26
|
-
"dev:xn": "tsx src/xn.ts",
|
|
27
|
-
"dev:x": "tsx src/x.ts",
|
|
28
|
-
"test": "vitest",
|
|
29
|
-
"ci:test": "vitest run",
|
|
30
|
-
"prepublishOnly": "npm run build",
|
|
31
|
-
"release": "x-release"
|
|
32
|
-
},
|
|
33
23
|
"tsup": {
|
|
34
24
|
"entry": [
|
|
35
25
|
"src/xr.ts",
|
|
@@ -66,5 +56,14 @@
|
|
|
66
56
|
"tsx": "^4.10.4",
|
|
67
57
|
"typescript": "^5.4.5",
|
|
68
58
|
"vitest": "^1.6.0"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "tsup",
|
|
62
|
+
"dev:xr": "tsx src/xr.ts",
|
|
63
|
+
"dev:xn": "tsx src/xn.ts",
|
|
64
|
+
"dev:x": "tsx src/x.ts",
|
|
65
|
+
"test": "vitest",
|
|
66
|
+
"ci:test": "vitest run",
|
|
67
|
+
"release": "x-release"
|
|
69
68
|
}
|
|
70
69
|
}
|
package/readme.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# X
|
|
2
|
-
|
|
3
|
-
Some useful command for myself.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm i -g @0x-jerry/x
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Command Completions
|
|
12
|
-
|
|
13
|
-
Add this code to `~/.zshrc`
|
|
14
|
-
|
|
15
|
-
```zsh
|
|
16
|
-
source <(x completions)
|
|
17
|
-
source <(xr completions)
|
|
18
|
-
source <(xn completions)
|
|
19
|
-
```
|
|
1
|
+
# X
|
|
2
|
+
|
|
3
|
+
Some useful command for myself.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm i -g @0x-jerry/x
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Command Completions
|
|
12
|
+
|
|
13
|
+
Add this code to `~/.zshrc`
|
|
14
|
+
|
|
15
|
+
```zsh
|
|
16
|
+
source <(x completions)
|
|
17
|
+
source <(xr completions)
|
|
18
|
+
source <(xn completions)
|
|
19
|
+
```
|