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