-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
216 lines (216 loc) · 6.7 KB
/
package.json
File metadata and controls
216 lines (216 loc) · 6.7 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{
"publisher": "npmx-dev",
"name": "vscode-npmx",
"displayName": "npmx",
"type": "module",
"version": "0.7.0",
"description": "Enhance your npm package workflow in VS Code",
"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",
"directory": "extensions/vscode"
},
"bugs": {
"url": "https://github.com/npmx-dev/vscode-npmx/issues"
},
"keywords": [
"npmx"
],
"categories": [
"Other"
],
"main": "./dist/index.cjs",
"browser": "./dist/index.cjs",
"extensionKind": [
"workspace"
],
"icon": "./dist/res/logo.png",
"files": [
"LICENSE.md",
"dist/**/*"
],
"engines": {
"vscode": "^1.101.0"
},
"activationEvents": [
"workspaceContains:package.json"
],
"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.diagnostics.engineMismatch": {
"type": "boolean",
"default": true,
"description": "Show warnings when dependency engines mismatch with the current package"
},
"npmx.packageLinks": {
"type": "string",
"enum": [
"off",
"latest",
"declared",
"resolved"
],
"enumDescriptions": [
"Disable clickable links",
"Link to package page (latest version)",
"Use raw version from package.json (preserves ^1.0.0, latest, etc.)",
"Resolve to actual matching version via API (^18.0.0 → 18.2.0)"
],
"default": "declared",
"description": "Enable clickable links for package names"
},
"npmx.ignore.upgrade": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Ignore list for upgrade diagnostics (\"name\" or \"name@version\"). See [Ignore Diagnostics](https://github.com/npmx-dev/vscode-npmx#ignore-diagnostics)"
},
"npmx.ignore.deprecation": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Ignore list for deprecation diagnostics (\"name\" or \"name@version\"). See [Ignore Diagnostics](https://github.com/npmx-dev/vscode-npmx#ignore-diagnostics)"
},
"npmx.ignore.replacement": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Ignore list for replacement diagnostics (\"name\" only). See [Ignore Diagnostics](https://github.com/npmx-dev/vscode-npmx#ignore-diagnostics)"
},
"npmx.ignore.vulnerability": {
"scope": "resource",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Ignore list for vulnerability diagnostics (\"name\" or \"name@version\"). See [Ignore Diagnostics](https://github.com/npmx-dev/vscode-npmx#ignore-diagnostics)"
}
}
},
"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",
"update": "vscode-ext-gen --scope npmx --output ../../packages/shared/src/meta.ts",
"vscode:prepublish": "npm run build",
"package": "npx @vscode/vsce package --no-dependencies",
"prepare": "npm run update"
},
"devDependencies": {
"@types/vscode": "1.101.0",
"@volar/vscode": "catalog:lsp",
"npmx-language-core": "workspace:*",
"npmx-language-server": "workspace:*",
"npmx-shared": "workspace:*",
"reactive-vscode": "catalog:inline",
"vscode-ext-gen": "catalog:dev",
"vscode-find-up": "catalog:inline"
}
}