我想发布一个新版本的vscode扩展。我输入vsce package
,得到ERROR Invalid URL
。然后我尝试vsce publish minor
并得到
v1.1.0
ERROR Invalid URL
我的包。json文件:
"name": "google-dark",
"displayName": "Google Dark",
"description": "A dark, Google-colour inspired theme",
"version": "1.0.1",
"icon": "./themes/images/icon.png",
"publisher": "LWB",
"repository": {
"type": "git",
"url": "https://github.com/LeoWB/Google-Dark-VSCode-Theme"
},
"keywords": [
"theme",
"dark",
"google",
"colourful",
"bright",
"dark theme"
],
"engines": {
"vscode": "^1.77.0"
},
"categories": [
"Themes"
],
"contributes": {
"themes": [
{
"label": "Google Dark",
"uiTheme": "vs-dark",
"path": "./themes/Google Dark-color-theme.json"
}
]
}
}
给仓库的URL链接到一个实际的页面,所以我不知道为什么它给我这个错误。
这个错误是由于我在自述文件中使用了一个相对文件路径造成的。md文件。我通过使用GitHub repo链接到图像来解决这个问题。