Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
192 lines (192 loc) · 5.93 KB
/
Copy pathpackage.json
File metadata and controls
192 lines (192 loc) · 5.93 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
{
"name": "@kkdev92/vscode-ext-kit",
"version": "7.1.0",
"description": "A type-safe application framework for VS Code extension development",
"author": {
"name": "kkdev92",
"url": "https://kkdev92.dev/"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/kkdev92/vscode-ext-kit.git"
},
"bugs": {
"url": "https://github.com/kkdev92/vscode-ext-kit/issues"
},
"homepage": "https://kkdev92.dev/",
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"vscode-ext-kit": "bin/vscode-ext-kit.mjs"
},
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./testing": {
"types": "./dist/testing/index.d.ts",
"import": "./dist/testing/index.js"
},
"./testing/vitest": {
"types": "./dist/testing/mock/vitest.d.ts",
"import": "./dist/testing/mock/vitest.js"
},
"./testing/vitest-config": {
"types": "./dist/testing/mock/vitest-config.d.ts",
"import": "./dist/testing/mock/vitest-config.js"
},
"./webview-client": {
"types": "./dist/capabilities/webview-client/index.d.ts",
"import": "./dist/capabilities/webview-client/index.js"
},
"./timing": {
"types": "./dist/capabilities/std/timing.d.ts",
"import": "./dist/capabilities/std/timing.js"
},
"./retry": {
"types": "./dist/capabilities/std/retry.d.ts",
"import": "./dist/capabilities/std/retry.js"
},
"./format": {
"types": "./dist/capabilities/l10n/format.d.ts",
"import": "./dist/capabilities/l10n/format.js"
},
"./package.json": "./package.json"
},
"files": [
"bin",
"dist",
"src",
"README.md",
"CHANGELOG.md",
"LICENSE"
],
"peerDependencies": {
"vitest": ">=4"
},
"peerDependenciesMeta": {
"vitest": {
"optional": true
}
},
"engines": {
"vscode": "^1.138.0",
"node": ">=22.12.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^26.6.3",
"@types/vscode": "~1.138.0",
"@vitest/coverage-v8": "^5.0.2",
"@vscode/test-electron": "^3.1.0",
"@vscode/test-web": "^0.0.81",
"esbuild": "^0.28.2",
"eslint": "^10.11.0",
"eslint-config-prettier": "^10.1.8",
"husky": "^9.1.7",
"knip": "^6.38.0",
"lint-staged": "^17.5.1",
"prettier": "^3.9.9",
"rimraf": "^6.1.3",
"typedoc": "^0.28.20",
"typescript": "~6.0.3",
"typescript-eslint": "^8.70.1",
"vitest": "^5.0.2"
},
"scripts": {
"hooks": "husky",
"clean": "rimraf dist node_modules/.tsbuildinfo",
"build": "tsc -b tsconfig.build.json",
"prepack": "npm run clean && npm run build",
"typecheck": "tsc -b tsconfig.build.json && tsc -p tsconfig.json && tsc -p tsconfig.samples.json && tsc -p fixtures/extension-host/tsconfig.json && tsc -p fixtures/web-extension/tsconfig.json",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint src tests fixtures --max-warnings 0",
"lint:fix": "eslint src tests fixtures --fix",
"format": "prettier --write \"{src,tests,fixtures,docs}/**/*.ts\" \"{bin,scripts,fixtures,tests}/**/*.{mjs,cjs}\"",
"format:check": "prettier --check \"{src,tests,fixtures,docs}/**/*.ts\" \"{bin,scripts,fixtures,tests}/**/*.{mjs,cjs}\"",
"knip": "knip",
"docs:api": "typedoc",
"verify:package": "node scripts/verify-package.mjs",
"check:vscode-api": "node scripts/check-vscode-api.mjs",
"fixture:build": "node fixtures/extension-host/build.mjs",
"fixture:build:web": "node fixtures/web-extension/build.mjs",
"test:eh": "npm run build && npm run fixture:build && node fixtures/extension-host/run-test.mjs",
"test:web": "npm run build && npm run fixture:build:web && node fixtures/web-extension/run-test.mjs",
"quality": "npm run format:check && npm run typecheck && npm run lint && npm run test:coverage && npm run knip && npm run docs:api"
},
"keywords": [
"vscode",
"vscode-extension",
"extension",
"framework",
"dependency-injection",
"lifecycle",
"commands",
"configuration",
"testing",
"typescript"
],
"lint-staged": {
"{src,tests,fixtures}/**/*.ts": [
"prettier --write",
"eslint --fix"
],
"docs/**/*.ts": [
"prettier --write"
],
"{bin,scripts}/**/*.{mjs,cjs}": [
"prettier --write"
]
},
"prettier": {
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 100,
"endOfLine": "lf"
},
"knip": {
"project": [
"src/**/*.ts",
"bin/**/*.{mjs,cjs}",
"fixtures/**/*.ts",
"fixtures/**/*.mjs",
"scripts/**/*.mjs"
],
"entry": [
"src/index.ts",
"bin/vscode-stub-hooks.mjs",
"bin/vscode-stub.cjs",
"src/testing/index.ts",
"src/testing/mock/vitest.ts",
"src/testing/mock/vitest-config.ts",
"src/capabilities/webview-client/index.ts",
"src/capabilities/std/timing.ts",
"src/capabilities/std/retry.ts",
"src/capabilities/l10n/format.ts",
"fixtures/*/build.mjs",
"fixtures/*/run-test.mjs",
"fixtures/*/src/extension.ts",
"fixtures/*/src/test/index.ts"
],
"ignoreDependencies": [
"lint-staged"
]
},
"//allowScripts": "One install script runs: @playwright/browser-chromium downloads the browser @vscode/test-web drives, and its approval is pinned to the version the lockfile installs. esbuild's is denied: its platform binary arrives as an optional dependency, and the script only fetches one when that dependency is missing. tests/allow-scripts.test.ts fails when the lockfile moves past a pin or brings in an install script that is neither approved nor denied.",
"allowScripts": {
"esbuild": false,
"@playwright/browser-chromium@1.63.0": true
}
}