{
	"name": "Node程序开发",
	"id": "node-development",
	"displayName": "Node程序开发",
	"version": "1.0.0-2022101416",
	"__from": "HBuilderX",
	"__private": true,
	"engines": {
		"HBuilderX": "^3.4.10"
	},
	"categories": ["Other"],
	"license": "Copyright@ DCloud Co.,Ltd",
	"activationEvents": [
		"onLaunch:development.run.node.proxy",
		"onLaunch:development.debug.node.proxy", 
		"onLaunch:create.launch.proxy", 
		"onLaunch:node.proxy", 
		"onLaunch:config.node.path.proxy"
	],
	"main": "./extension.js",
	"contributes": {
		"expressions": {
			"isNodeDebug": "plugin.isInstalled <- 'hbuilderx-node-debug'"
		},
		"launchers": [{
			"type": "development.run.node.proxy",
			"launcherId": "development.run.node",
			"label": "${menuIndex}使用node运行当前文件",
			"terminateLabel": "停止node运行",
			"mode": "run",
			"when": "!expression.isNodeDebug && workspaceFolder.type == 'Web' && (langId == 'javascript' || langId == 'javascript_es6' || langId == 'typescript') && activeEditor.file.exists && editorTextFocus",
			"priority": 100
		}, {
			"type": "development.debug.node.proxy",
			"launcherId": "development.debug.node",
			"label": "${menuIndex}使用node调试当前文件",
			"terminateLabel": "停止node调试",
			"mode": "debug",
			"when": "!expression.isNodeDebug && workspaceFolder.type == 'Web' && (langId == 'javascript' || langId == 'javascript_es6' || langId == 'typescript') && activeEditor.file.exists && editorTextFocus",
			"priority": 99
		}, {
			"type": "create.launch.proxy",
			"launcherId": "create.launch",
			"label": "${menuIndex}自定义node运行(&U)...",
			"when": "!expression.isNodeDebug && (workspaceFolder.type == 'Web' && activeEditor.file.exists && editorTextFocus )  || (workspaceFolder.type == 'Extension' && activeEditor.file.exists && editorTextFocus)",
			"priority": 98
		}, {
			"type": "config.node.path.proxy",
			"launcherId": "config.node.path",
			"label": "${menuIndex}node路径配置(&S)",
			"when": "!expression.isNodeDebug && workspaceFolder.type == 'Web' && (langId == 'javascript' || langId == 'javascript_es6' || langId == 'typescript') && activeEditor.file.exists && editorTextFocus",
			"priority": 97
		}, {
			"type": "node.proxy",
			"launcherId": "node",
			"label": "自定义node调试",
			"terminateLabel": "停止自定义node调试",
			"mode": "debug",
			"when": "!expression.isNodeDebug && (workspaceFolder.type == 'Web' && activeEditor.file.exists && editorTextFocus )  || (workspaceFolder.type == 'Extension' && activeEditor.file.exists && editorTextFocus)",
			"priority": 1,
			"initialConfigurations": [{
				"name": "自定义调试文件",
				"type": "node",
				"request": "attach",
				"mode": "debug",
				"program": "${workspaceFolder}/dist/app.js",
				"sourceMap": false,
				"outFiles": ["${workspaceFolder}/dist/**/*.js"],
				"skipFiles": ["<node_internals>/**/*.js"],
				"sourceMapPathOverrides": {}
			}]
		}]
	},
	"scripts": {
		"dev": "node run/pre.js",
		"build": "npm run webpack:build",
		"webpack:dev": "webpack -c webpack.dev.config.js",
		"webpack:build": "webpack -c webpack.prod.config.js"
	},
	"devDependencies": {
		"@types/node": "^17.0.26",
		"copy-webpack-plugin": "^10.2.4",
		"ts-loader": "^9.2.8",
		"vscode-nls-dev": "^4.0.0",
		"webpack": "^5.72.0",
		"webpack-cli": "^4.9.2",
		"webpack-merge": "^5.8.0"
	},
	"description": "支持运行和调试Node程序",
	"dependencies": {
		"esprima": "^4.0.1",
		"needle": "^3.1.0"
	}
}
