每次提交前, 需确保通过所有测试用例:
参考官方文档, 在VS Code调试窗口运行"Launch Tests", 即运行test
目录下所有测试用例, 并在"DEBUG CONSOLE"中显示测试结果.
vsce publish
运行 npm install
Executing prepublish script 'npm run vscode:prepublish'...
> [email protected] vscode:prepublish
> tsc -p ./
node_modules/@types/node/index.d.ts:20:1 - error TS1084: Invalid 'reference' directive syntax.
20 /// <reference lib="es2016" />
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
通过升级 TypeScript 解决:https://stackoverflow.com/a/65678958/1536803