From 916597d829676e8723de01c3d791fd60a69d2d2b Mon Sep 17 00:00:00 2001 From: ipcjs Date: Fri, 17 Jun 2022 10:54:04 +0800 Subject: [PATCH 1/2] chore: update deps --- .vscode/launch.json | 2 -- .vscode/tasks.json | 42 +++++++++++++++-------------- package-lock.json | 65 +++++++++++++++++++++++++++++++++++++++++++++ package.json | 12 ++++----- tsconfig.json | 8 +++--- 5 files changed, 96 insertions(+), 33 deletions(-) create mode 100644 package-lock.json diff --git a/.vscode/launch.json b/.vscode/launch.json index cd6b87b..e387776 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,6 @@ "request": "launch", "runtimeExecutable": "${execPath}", "args": ["--extensionDevelopmentPath=${workspaceRoot}" ], - "stopOnEntry": false, "sourceMaps": true, "outFiles": [ "${workspaceRoot}/out/src/**/*.js" ], "preLaunchTask": "npm" @@ -19,7 +18,6 @@ "request": "launch", "runtimeExecutable": "${execPath}", "args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ], - "stopOnEntry": false, "sourceMaps": true, "outFiles": [ "${workspaceRoot}/out/test/**/*.js" ], "preLaunchTask": "npm" diff --git a/.vscode/tasks.json b/.vscode/tasks.json index fb7f662..e32b040 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -8,23 +8,25 @@ // A task runner that calls a custom npm script that compiles the extension. { - "version": "0.1.0", - - // we want to run npm - "command": "npm", - - // the command is a shell script - "isShellCommand": true, - - // show the output window only if unrecognized errors occur. - "showOutput": "silent", - - // we run the custom script "compile" as defined in package.json - "args": ["run", "compile", "--loglevel", "silent"], - - // The tsc compiler is started in watching mode - "isWatching": true, - - // use the standard tsc in watch mode problem matcher to find compile problems in the output. - "problemMatcher": "$tsc-watch" -} \ No newline at end of file + "version": "2.0.0", + "problemMatcher": "$tsc-watch", + "tasks": [ + { + "label": "npm", + "type": "shell", + "command": "npm", + "args": [ + "run", + "compile", + // "--loglevel", + // "silent" + ], + "isBackground": true, + "problemMatcher": "$tsc-watch", + "group": { + "_id": "build", + "isDefault": false + } + } + ] +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..d776dfd --- /dev/null +++ b/package-lock.json @@ -0,0 +1,65 @@ +{ + "name": "html-tag-wrapper", + "version": "0.2.3", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "html-tag-wrapper", + "version": "0.2.3", + "devDependencies": { + "@types/node": "^16.11.7", + "@types/vscode": "^1.32.0", + "typescript": "^4.7.2" + }, + "engines": { + "vscode": "^1.32.0" + } + }, + "node_modules/@types/node": { + "version": "16.11.41", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.41.tgz", + "integrity": "sha512-mqoYK2TnVjdkGk8qXAVGc/x9nSaTpSrFaGFm43BUH3IdoBV0nta6hYaGmdOvIMlbHJbUEVen3gvwpwovAZKNdQ==", + "dev": true + }, + "node_modules/@types/vscode": { + "version": "1.68.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.68.0.tgz", + "integrity": "sha512-duBwEK5ta/eBBMJMQ7ECMEsMvlE3XJdRGh3xoS1uOO4jl2Z4LPBl5vx8WvBP10ERAgDRmIt/FaSD4RHyBGbChw==", + "dev": true + }, + "node_modules/typescript": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.3.tgz", + "integrity": "sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + } + }, + "dependencies": { + "@types/node": { + "version": "16.11.41", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.41.tgz", + "integrity": "sha512-mqoYK2TnVjdkGk8qXAVGc/x9nSaTpSrFaGFm43BUH3IdoBV0nta6hYaGmdOvIMlbHJbUEVen3gvwpwovAZKNdQ==", + "dev": true + }, + "@types/vscode": { + "version": "1.68.0", + "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.68.0.tgz", + "integrity": "sha512-duBwEK5ta/eBBMJMQ7ECMEsMvlE3XJdRGh3xoS1uOO4jl2Z4LPBl5vx8WvBP10ERAgDRmIt/FaSD4RHyBGbChw==", + "dev": true + }, + "typescript": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.3.tgz", + "integrity": "sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA==", + "dev": true + } + } +} diff --git a/package.json b/package.json index ee3752a..8cf1615 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "url": "https://github.com/hwen/tag-wrapper/issues" }, "engines": { - "vscode": "^1.10.0" + "vscode": "^1.32.0" }, "categories": [ "Other" @@ -33,14 +33,12 @@ }, "scripts": { "vscode:prepublish": "tsc -p ./", - "compile": "tsc -watch -p ./", - "postinstall": "node ./node_modules/vscode/bin/install" + "compile": "tsc -watch -p ./" }, "devDependencies": { - "typescript": "^2.0.3", - "vscode": "^1.0.0", - "@types/node": "^6.0.40", - "@types/mocha": "^2.2.32" + "@types/node": "^16.11.7", + "@types/vscode": "^1.32.0", + "typescript": "^4.7.2" }, "dependencies": { } diff --git a/tsconfig.json b/tsconfig.json index e32cdbc..e80a7e0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,15 @@ { "compilerOptions": { "module": "commonjs", - "target": "es6", + "target": "es2020", "outDir": "out", "lib": [ - "es6" + "es2020" ], "sourceMap": true, - "rootDir": "." + "rootDir": "src" }, "exclude": [ "node_modules" ] -} \ No newline at end of file +} From 65ecda6a39b08326f714dfc8ab77e99bbda69c5e Mon Sep 17 00:00:00 2001 From: ipcjs Date: Fri, 17 Jun 2022 10:55:05 +0800 Subject: [PATCH 2/2] chore: mistake... --- .vscode/tasks.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index e32b040..42b4f70 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -18,8 +18,8 @@ "args": [ "run", "compile", - // "--loglevel", - // "silent" + "--loglevel", + "silent" ], "isBackground": true, "problemMatcher": "$tsc-watch",