-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
185 lines (185 loc) · 5.3 KB
/
package.json
File metadata and controls
185 lines (185 loc) · 5.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
{
"publisher": "npmx-dev",
"name": "vscode-npmx",
"displayName": "npmx",
"type": "module",
"version": "0.4.0",
"packageManager": "pnpm@10.30.1",
"description": "A better browser for the npm registry",
"author": {
"name": "Vida Xie",
"email": "vida_2020@163.com",
"url": "https://github.com/9romise"
},
"license": "MIT",
"homepage": "https://docs.npmx.dev/guide/vscode-extension",
"repository": {
"type": "git",
"url": "git+https://github.com/npmx-dev/vscode-npmx.git"
},
"bugs": {
"url": "https://github.com/npmx-dev/vscode-npmx/issues"
},
"keywords": [
"npmx"
],
"categories": [
"Other"
],
"main": "./dist/index.mjs",
"icon": "res/logo.png",
"files": [
"LICENSE.md",
"dist/*",
"res/*"
],
"engines": {
"vscode": "^1.101.0"
},
"activationEvents": [
"workspaceContains:package.json",
"workspaceContains:pnpm-workspace.yaml"
],
"contributes": {
"configuration": {
"title": "npmx",
"properties": {
"npmx.hover.enabled": {
"type": "boolean",
"default": true,
"description": "Enable hover information for packages"
},
"npmx.completion.version": {
"type": "string",
"enum": [
"all",
"provenance-only",
"off"
],
"enumDescriptions": [
"Show all versions",
"Show only versions with provenance",
"Disable version completion"
],
"default": "provenance-only",
"description": "Version completion behavior"
},
"npmx.completion.excludePrerelease": {
"type": "boolean",
"default": true,
"description": "Exclude prerelease versions (alpha, beta, rc, canary, etc.) from completion suggestions"
},
"npmx.diagnostics.upgrade": {
"type": "boolean",
"default": true,
"description": "Show hints when a newer version of a package is available"
},
"npmx.diagnostics.deprecation": {
"type": "boolean",
"default": true,
"description": "Show warnings for deprecated packages"
},
"npmx.diagnostics.replacement": {
"type": "boolean",
"default": true,
"description": "Show suggestions for package replacements"
},
"npmx.diagnostics.vulnerability": {
"type": "boolean",
"default": true,
"description": "Show warnings for packages with known vulnerabilities"
},
"npmx.diagnostics.distTag": {
"type": "boolean",
"default": true,
"description": "Show warnings when a dependency uses a dist tag"
},
"npmx.versionLens.enabled": {
"type": "boolean",
"default": false,
"description": "Show version lens (CodeLens) for package dependencies"
}
}
},
"commands": [
{
"command": "npmx.openInBrowser",
"title": "Open npmx.dev in external browser",
"category": "npmx"
},
{
"command": "npmx.openFileInNpmx",
"title": "Open file on npmx.dev",
"category": "npmx"
}
],
"menus": {
"editor/context": [
{
"command": "npmx.openFileInNpmx",
"when": "resourceScheme == file && resourcePath =~ /[\\/]node_modules[\\/]/"
}
],
"editor/title": [
{
"command": "npmx.openFileInNpmx",
"when": "resourceScheme == file && resourcePath =~ /[\\/]node_modules[\\/]/"
}
],
"explorer/context": [
{
"command": "npmx.openFileInNpmx",
"when": "resourceScheme == file && resourcePath =~ /[\\/]node_modules[\\/]/ && !explorerResourceIsFolder"
}
],
"commandPalette": [
{
"command": "npmx.openFileInNpmx",
"when": "resourceScheme == file && resourcePath =~ /[\\/]node_modules[\\/]/"
}
]
}
},
"scripts": {
"dev": "tsdown --watch",
"build": "tsdown",
"postinstall": "npm run update",
"update": "vscode-ext-gen --scope npmx",
"check": "npm run lint:fix && npm run typecheck",
"test": "vitest",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck": "tsc --noEmit",
"vscode:prepublish": "npm run build",
"publish": "npx @vscode/vsce publish --no-dependencies",
"package": "npx @vscode/vsce package --no-dependencies",
"release": "npx bumpp"
},
"nano-staged": {
"*": "eslint --fix"
},
"devDependencies": {
"@types/node": "catalog:dev",
"@types/semver": "catalog:dev",
"@types/vscode": "1.101.0",
"@vida0905/eslint-config": "catalog:dev",
"eslint": "catalog:dev",
"fast-npm-meta": "catalog:inline",
"husky": "catalog:dev",
"jest-mock-vscode": "catalog:test",
"jsonc-parser": "catalog:inline",
"module-replacements": "catalog:inline",
"msw": "catalog:test",
"nano-staged": "catalog:dev",
"ofetch": "catalog:inline",
"perfect-debounce": "catalog:inline",
"reactive-vscode": "catalog:inline",
"semver": "catalog:inline",
"tsdown": "catalog:dev",
"typescript": "catalog:dev",
"vite-tsconfig-paths": "catalog:test",
"vitest": "catalog:test",
"vscode-ext-gen": "catalog:dev",
"yaml": "catalog:inline"
}
}