feat: test publish to local Verdaccio

This commit is contained in:
熊潇 2024-08-16 16:02:45 +08:00
parent 5d7ddb9421
commit d7be1e2051
2 changed files with 6 additions and 4 deletions

2
test-npm-publish/.npmrc Normal file
View File

@ -0,0 +1,2 @@
# @abearxiong:registry=https://registry.npmjs.org/
@abearxiong:registry=https://npm.xiongxiao.me

View File

@ -1,6 +1,6 @@
{
"name": "@abear/test-publish",
"version": "1.0.0",
"name": "@abearxiong/test-publish",
"version": "1.0.1",
"description": "",
"private": false,
"main": "dist/index.js",
@ -8,7 +8,7 @@
"scripts": {
"build": "tsc",
"prepublish": "npm run build",
"spublish": "npm publish --registry https://registry.npmjs.org/"
"publish:me": "npm publish --registry https://npm.xiongxiao.me"
},
"files": [
"dist"
@ -23,4 +23,4 @@
"publishConfig": {
"access": "public"
}
}
}