🔧 build: fix document

This commit is contained in:
imsyy
2024-06-04 10:44:19 +08:00
parent 13f019a5aa
commit 093312ea8c
3 changed files with 69 additions and 67 deletions

1
.npmignore Normal file
View File

@@ -0,0 +1 @@
node_modules

View File

@@ -1,6 +1,6 @@
{
"name": "dailyhot_api",
"version": "2.0.0-rc.2",
"name": "dailyhot-api",
"version": "2.0.0-rc.3",
"description": "An Api on Today's Hot list",
"keywords": [
"API",
@@ -12,11 +12,12 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/DIYgod/RSSHub.git"
"url": "git+https://github.com/imsyy/DailyHotApi.git"
},
"license": "MIT",
"author": "imsyy",
"main": "src/index.ts",
"main": "dist/index.js",
"types": "dist/types.js",
"scripts": {
"format": "prettier --write .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix",

View File

@@ -4,7 +4,7 @@ import logger from "./utils/logger.js";
import app from "./app.js";
// 启动服务器
const server = serve({
const serveHotApi = serve({
fetch: app.fetch,
port: config.PORT,
});
@@ -12,4 +12,4 @@ const server = serve({
logger.info(`🔥 DailyHot API 成功在端口 ${config.PORT} 上运行`);
logger.info(`🔗 Local: 👉 http://localhost:${config.PORT}`);
export default server;
export default serveHotApi;