我在npm workspaces monorepo里面写了一个vs code扩展,当我尝试使用vsce package
打包它时,我得到这个错误:
This extension consists of <files_count> files, out of which <files_count> are JavaScript files. For performance reasons, you should bundle your extension: https://aka.ms/vscode-bundle-extension . You should also exclude unnecessary files by adding them to your .vscodeignore: https://aka.ms/vscode-vscodeignore
我已经使用。vscodeignore文件,似乎vsce package
命令试图在monorepo
内的项目文件夹外获取文件我的目标是得到只包含扩展代码
的.vsix文件我发现我必须忽略每个父级。运行vsce ls
以确保剩下的文件是你想要发布的:
# /workspaces/vscode-theme/.vscodeignore
../../**
../**