diff --git a/api/tsconfig.json b/api/tsconfig.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/api/tsconfig.json @@ -0,0 +1 @@ +{} diff --git a/api/vscode-unpkg/index.ts b/api/vscode-unpkg/index.ts index 4bee2a184..213b69efc 100644 --- a/api/vscode-unpkg/index.ts +++ b/api/vscode-unpkg/index.ts @@ -7,7 +7,7 @@ import got from 'got'; import * as url from 'url'; import type { VercelRequest, VercelResponse } from '@vercel/node'; -module.exports = async (req: VercelRequest, res: VercelResponse) => { +export default async (req: VercelRequest, res: VercelResponse) => { const pathname = url.parse(req.url || '').pathname || ''; const matches = pathname.match(/^\/api\/vscode-unpkg\/([^/]+)\/(.*)/);