-
Notifications
You must be signed in to change notification settings - Fork 16
/
package.json
249 lines (249 loc) · 10.5 KB
/
package.json
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
{
"name": "minecraft-debugger",
"displayName": "Minecraft Bedrock Edition Debugger",
"description": "Debug your JavaScript code running in Minecraft Bedrock Edition.",
"version": "0.0.0-semantically-released",
"publisher": "mojang-studios",
"author": {
"name": "Mojang Studios"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Mojang/minecraft-debugger.git"
},
"icon": "bedrock-icon.png",
"engines": {
"node": "^20.0.0",
"vscode": "^1.93.0"
},
"categories": [
"Debuggers"
],
"keywords": [
"minecraft",
"javascript",
"bedrock",
"gametest",
"add-on"
],
"private": true,
"activationEvents": [
"onDebug",
"onCommand:extension.minecraft-js.getPort"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "minecraft-debugger-home-view",
"title": "Minecraft Debugger",
"icon": "icons/creeper_icon.svg"
}
]
},
"views": {
"minecraft-debugger-home-view": [
{
"type": "webview",
"id": "minecraft-debugger-home-panel",
"name": "Actions"
}
]
},
"commands": [
{
"command": "minecraft-debugger.liveDiagnostics",
"title": "Minecraft Diagnostics: Show Live Stats"
},
{
"command": "minecraft-debugger.replayDiagnostics",
"title": "Minecraft Diagnostics: Open Stats Replay"
},
{
"command": "minecraft-debugger.minecraftReload",
"title": "Minecraft Reload"
}
],
"keybindings": [
{
"command": "minecraft-debugger.minecraftReload",
"key": "ctrl+shift+r",
"when": "inDebugMode && editorLangId == typescript || inDebugMode && editorLangId == javascript"
}
],
"breakpoints": [
{
"language": "javascript"
}
],
"debuggers": [
{
"type": "minecraft-js",
"label": "Minecraft Debugger",
"runtime": "node",
"languages": [
"javascript"
],
"configurationAttributes": {
"attach": {
"properties": {
"mode": {
"type": "string",
"description": "The debugger connection mode. Use 'listen' to have VSCode wait for Minecraft to connect. Use 'connect' to have VSCode attach to a Minecraft instance that is listening for a debugger.",
"enum": [
"connect",
"listen"
],
"default": "connect"
},
"localRoot": {
"type": "string",
"description": "The local root of the Minecraft Add-On scripts folder.",
"default": "${workspaceFolder}/scripts/"
},
"sourceMapRoot": {
"type": "string",
"description": "The location of the source maps."
},
"generatedSourceRoot": {
"type": "string",
"description": "The location of the generated source files (js). Not required if same as source maps."
},
"inlineSourceMap": {
"type": "boolean",
"description": "Whether or not source maps are embedded in the generated source files. Overrides sourceMapRoot and generatedSourceRoot when true.",
"default": false
},
"host": {
"type": "string",
"description": "The host address the extension will connect to.",
"default": "localhost"
},
"port": {
"type": "number",
"description": "The port Minecraft is listening on."
},
"inputPort": {
"type": "string",
"description": "Prompts for a port at launch."
},
"moduleMapping": {
"type": "object",
"description": "Module mapping for imports. Each key is an import name that will be mapped to the provided value. Used if modules are external (i.e. included as part of minecraft). Defaults to an empty object."
},
"sourceMapBias": {
"type": "string",
"description": "The bias to use when mapping from generated code to source code. Can be either 'leastUpperBound' or 'greatestLowerBound'. Defaults to 'leastUpperBound'."
},
"targetModuleUuid": {
"type": "string",
"description": "The script module uuid from the manifest.json of the Minecraft Add-On being debugged. Necessary if there are multiple Add-Ons active."
},
"passcode": {
"type": "string",
"description": "If set, user will not be prompted for passcode if Minecraft is expecting one."
}
}
}
},
"initialConfigurations": [
{
"type": "minecraft-js",
"request": "attach",
"name": "Attach to Minecraft",
"mode": "connect",
"localRoot": "${workspaceFolder}/scripts",
"host": "localhost",
"port": 19144
}
],
"configurationSnippets": [
{
"label": "Minecraft Debugger: Attach",
"description": "A new configuration for attaching JavaScript debugger to Minecraft.",
"body": {
"type": "minecraft-js",
"request": "attach",
"name": "Attach to Minecraft",
"mode": "connect",
"localRoot": "^\"\\${workspaceFolder}/scripts\"",
"host": "localhost",
"port": 19144
}
}
],
"variables": {
"PromptForPort": "extension.minecraft-js.getPort"
}
}
],
"configuration": {
"properties": {
"minecraft-debugger.reloadOnSourceChanges.enabled": {
"type": "boolean",
"default": false,
"description": "Reload Minecraft on source changes. Watch localRoot or sourceMapRoot."
},
"minecraft-debugger.reloadOnSourceChanges.delay": {
"type": "number",
"default": 100,
"description": "Delay in milliseconds between detecting source changes and reloading Minecraft."
},
"minecraft-debugger.reloadOnSourceChanges.globPattern": {
"type": "string",
"default": "",
"description": "Override the default locations and monitor any workspace files that match the glob pattern."
},
"minecraft-debugger.showDiagnosticViewOnConnect": {
"type": "boolean",
"default": false,
"description": "Open the diagnostics view on connection to Minecraft."
}
}
}
},
"scripts": {
"install:all": "npm install && cd webview-ui && npm install",
"ci:all": "npm ci && cd webview-ui && npm ci",
"start:webview": "cd webview-ui && npm run start && cd ..",
"build:webview": "cd webview-ui && npm run build && cd ..",
"build:all": "npm run build:webview && npm run compile",
"vscode:prepublish": "npm run package:all",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext .ts",
"test": "vitest",
"release": "npx semantic-release",
"release:dry-run": "npx semantic-release --dry-run",
"compile": "npm run check-types && node esbuild.mjs",
"check-types": "tsc --noEmit",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.mjs --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package:all": "npm run build:webview && npm run check-types && node esbuild.mjs --production"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/node": "^22.8.6",
"@types/react": "^18.3.12",
"@types/vscode": "^1.93.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"@vscode/debugadapter": "^1.67.0",
"@vscode/debugprotocol": "1.68.0",
"@vscode/vsce": "^3.2.1",
"@vscode/webview-ui-toolkit": "^1.4.0",
"esbuild": "^0.24.0",
"esbuild-plugin-copy": "^2.1.1",
"eslint": "^7.19.0",
"semantic-release": "^24.1.1",
"semantic-release-vsce": "github:JakeShirley/semantic-release-vsce",
"source-map": "^0.7.4",
"stream-parser": "^0.3.1",
"ts-loader": "^9.5.1",
"typescript": "^5.5.4",
"vitest": "^2.1.3"
}
}