Skip to content

Commit

Permalink
🔧 chore: 升级基础设施
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jul 29, 2023
1 parent 3ca4903 commit e1909e6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
lockfile=false
resolution-mode=highest
public-hoist-pattern[]=*@umijs/lint*
public-hoist-pattern[]=*changelog*
public-hoist-pattern[]=*commitlint*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*postcss*
public-hoist-pattern[]=*prettier*
public-hoist-pattern[]=*remark*
public-hoist-pattern[]=*semantic-release*
public-hoist-pattern[]=*stylelint*
2 changes: 1 addition & 1 deletion api/parse.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Readability } from '@mozilla/readability';
import { JSDOM } from 'jsdom';
import type { VercelRequest, VercelResponse } from '@vercel/node';
import { JSDOM } from 'jsdom';
import { NodeHtmlMarkdown } from 'node-html-markdown';

export default async function handler(req: VercelRequest, res: VercelResponse) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lobehub-html-parser",
"version": "1.0.1",
"private": true,
"description": "基于 Vercel 的免费 Serverless api 模板",
"description": "HTML 转 markdown 服务",
"repository": "https://github.com/arvinxx/vercel-serverless-api-template.git",
"scripts": {
"ci": "npm run lint && npm run type-check",
Expand Down
8 changes: 8 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
environment: 'jsdom',
globals: true,
},
});

0 comments on commit e1909e6

Please sign in to comment.