3838 " onLanguage:masm"
3939 ],
4040 "main" : " ./dist/extension.js" ,
41+ "browser" : " ./dist/web/extension.js" ,
4142 "contributes" : {
4243 "languages" : [
4344 {
279280 "scripts" : {
280281 "clean" : " rimraf dist/ web/dist" ,
281282 "postinstall" : " node dev/downloadBundle.js" ,
282- "compile " : " webpack --mode production " ,
283+ "watch-tsc " : " tsc -watch -p ./ " ,
283284 "watch" : " webpack --mode development --watch" ,
284- "watch-test" : " tsc -watch -p ./src" ,
285+ "compile" : " webpack --mode production" ,
286+ "pretest" : " tsc -p ./" ,
287+ "test" : " node ./dist/test/runTest.js" ,
288+ "pretest-web" : " yarn run compile" ,
289+ "test-web" : " vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --extensionTestsPath=dist/web/test/suite/index.js" ,
290+ "run-in-browser" : " vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ." ,
285291 "lint" : " eslint src --ext ts" ,
286292 "lint-fix" : " eslint src --ext ts --fix" ,
287- "pretest" : " tsc -p ./src" ,
288- "test" : " node ./dist/test/runTest.js" ,
289293 "vscode:prepublish" : " yarn clean && yarn compile" ,
290- "deploy" : " vsce publish --yarn --baseContentUrl https://github.com/dosasm/masm-tasm/blob/main/ --baseImagesUrl https://github.com/dosasm/masm-tasm/raw/main/ " ,
294+ "deploy" : " vsce publish --yarn" ,
291295 "package" : " vsce package"
292296 },
293297 "devDependencies" : {
294298 "@types/glob" : " ^7.1.3" ,
295299 "@types/js-yaml" : " ^4.0.0" ,
296300 "@types/mocha" : " ^9.0.0" ,
297- "@types/node" : " ^16.6.1" ,
298301 "@types/vscode" : " ^1.49.0" ,
302+ "@types/webpack-env" : " ^1.16.2" ,
299303 "@typescript-eslint/eslint-plugin" : " ^4.29.1" ,
300304 "@typescript-eslint/parser" : " ^4.29.1" ,
305+ "@vscode/test-web" : " ^0.0.13" ,
306+ "assert" : " ^2.0.0" ,
301307 "del" : " ^6.0.0" ,
302308 "download" : " ^8.0.0" ,
303309 "emulators" : " ^0.67.0" ,
306312 "js-yaml" : " ^4.0.0" ,
307313 "jszip" : " ^3.7.1" ,
308314 "mocha" : " ^9.0.3" ,
315+ "node-fetch" : " ^3.0.0" ,
316+ "path-browserify" : " ^1.0.1" ,
317+ "process" : " ^0.11.10" ,
309318 "rimraf" : " ^3.0.2" ,
310319 "ts-loader" : " ^9.2.5" ,
311320 "typescript" : " ^4.3.5" ,
323332 "email" : " xsro@foxmail.com"
324333 },
325334 "license" : " MIT"
326- }
335+ }
0 commit comments