starlight-package-managers 0.5.0 → 0.6.0
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/package.json +1 -1
- package/pkg.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "starlight-package-managers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Quickly display npm related commands for multiple package managers in your Starlight documentation site.",
|
|
6
6
|
"author": "HiDeoo <github@hideoo.dev> (https://hideoo.dev)",
|
package/pkg.ts
CHANGED
|
@@ -9,6 +9,7 @@ const commands: Commands = {
|
|
|
9
9
|
devOption: '-D',
|
|
10
10
|
exec: 'npx',
|
|
11
11
|
run: 'npm run',
|
|
12
|
+
remove: 'npm uninstall',
|
|
12
13
|
},
|
|
13
14
|
yarn: {
|
|
14
15
|
add: 'yarn add',
|
|
@@ -16,6 +17,7 @@ const commands: Commands = {
|
|
|
16
17
|
devOption: '-D',
|
|
17
18
|
exec: 'yarn',
|
|
18
19
|
run: 'yarn run',
|
|
20
|
+
remove: 'yarn remove',
|
|
19
21
|
},
|
|
20
22
|
pnpm: {
|
|
21
23
|
add: 'pnpm add',
|
|
@@ -23,18 +25,21 @@ const commands: Commands = {
|
|
|
23
25
|
devOption: '-D',
|
|
24
26
|
exec: 'pnpm',
|
|
25
27
|
run: 'pnpm run',
|
|
28
|
+
remove: 'pnpm remove',
|
|
26
29
|
},
|
|
27
30
|
bun: {
|
|
28
31
|
add: 'bun add',
|
|
29
32
|
devOption: '-d',
|
|
30
33
|
exec: 'bunx',
|
|
31
34
|
run: 'bun run',
|
|
35
|
+
remove: 'bun remove',
|
|
32
36
|
},
|
|
33
37
|
ni: {
|
|
34
38
|
add: 'ni',
|
|
35
39
|
devOption: '-D',
|
|
36
40
|
exec: 'nlx',
|
|
37
41
|
run: 'nr',
|
|
42
|
+
remove: 'nun',
|
|
38
43
|
},
|
|
39
44
|
}
|
|
40
45
|
|
|
@@ -93,7 +98,7 @@ export function getCommand(
|
|
|
93
98
|
return command
|
|
94
99
|
}
|
|
95
100
|
|
|
96
|
-
export type CommandType = 'add' | 'create' | 'exec' | 'run'
|
|
101
|
+
export type CommandType = 'add' | 'create' | 'exec' | 'run' | 'remove'
|
|
97
102
|
|
|
98
103
|
export interface CommandOptions {
|
|
99
104
|
args?: string
|