mirror of
https://github.com/imsyy/DailyHotApi.git
synced 2026-01-12 13:14:55 +08:00
🔧 build: fix document
This commit is contained in:
1
.npmignore
Normal file
1
.npmignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
node_modules
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dailyhot_api",
|
"name": "dailyhot-api",
|
||||||
"version": "2.0.0-rc.2",
|
"version": "2.0.0-rc.3",
|
||||||
"description": "An Api on Today's Hot list",
|
"description": "An Api on Today's Hot list",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"API",
|
"API",
|
||||||
@@ -12,11 +12,12 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/DIYgod/RSSHub.git"
|
"url": "git+https://github.com/imsyy/DailyHotApi.git"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "imsyy",
|
"author": "imsyy",
|
||||||
"main": "src/index.ts",
|
"main": "dist/index.js",
|
||||||
|
"types": "dist/types.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix",
|
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import logger from "./utils/logger.js";
|
|||||||
import app from "./app.js";
|
import app from "./app.js";
|
||||||
|
|
||||||
// 启动服务器
|
// 启动服务器
|
||||||
const server = serve({
|
const serveHotApi = serve({
|
||||||
fetch: app.fetch,
|
fetch: app.fetch,
|
||||||
port: config.PORT,
|
port: config.PORT,
|
||||||
});
|
});
|
||||||
@@ -12,4 +12,4 @@ const server = serve({
|
|||||||
logger.info(`🔥 DailyHot API 成功在端口 ${config.PORT} 上运行`);
|
logger.info(`🔥 DailyHot API 成功在端口 ${config.PORT} 上运行`);
|
||||||
logger.info(`🔗 Local: 👉 http://localhost:${config.PORT}`);
|
logger.info(`🔗 Local: 👉 http://localhost:${config.PORT}`);
|
||||||
|
|
||||||
export default server;
|
export default serveHotApi;
|
||||||
|
|||||||
Reference in New Issue
Block a user