Skip to content

Commit

Permalink
Move cross-fetch to dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed May 14, 2020
1 parent 9f4f19b commit 80014ea
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
7 changes: 5 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"@types/node": "^14.0.1",
"@typescript-eslint/eslint-plugin": "^2.14.0",
"@typescript-eslint/parser": "^2.14.0",
"cross-fetch": "^3.0.4",
"eslint": "^7.0.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-prettier": "^3.1.2",
Expand All @@ -86,8 +87,5 @@
"rimraf": "^3.0.0",
"ts-jest": "^25.5.1",
"typescript": "^3.7.4"
},
"dependencies": {
"cross-fetch": "^3.0.4"
}
}
2 changes: 1 addition & 1 deletion src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Request } from "cross-fetch";
import "cross-fetch/polyfill";
import { finalHandler } from "./index";

describe("fetch final handler", () => {
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { Request, Response } from "cross-fetch";

export function finalHandler() {
return async function (req: Request): Promise<Response> {
const isHead = req.method.toLowerCase() === "head";
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"compilerOptions": {
"target": "ES2018",
"lib": ["ESNext"],
"lib": ["ESNext", "DOM"],
"outDir": "dist",
"rootDir": "src",
"module": "CommonJS",
"moduleResolution": "Node",
"esModuleInterop": true,
"strict": true,
"declaration": true,
"sourceMap": true,
Expand Down

0 comments on commit 80014ea

Please sign in to comment.