我想用yarn pub […name]来发布插件,但是不知道为什么,每次都显示上面那样 我之前是用的下面这个的 npm publish --workspace koishi-plugin-插件名 --access public --registry https://registry.npmjs.org
插件的package.json是这样的
{
"name": "koishi-plugin-aifdian",
"description": "查询爱发电的赞助列表等等.....",
"version": "1.0.1",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"files": [
"lib",
"dist"
],
"license": "MIT",
"keywords": [
"chatbot",
"koishi",
"plugin"
],
"peerDependencies": {
"koishi": "^4.16.8"
}
}