Skip to content

Commit

Permalink
fix: remove node-fetch (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoishin authored Dec 26, 2024
1 parent c63a47d commit 50a6323
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 75 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"rules": {
"capitalized-comments": 0,
"no-void": 0,
"no-undef": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-implicit-any-catch": 0,
Expand Down
70 changes: 0 additions & 70 deletions package-lock.json

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

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"inquirer": "^7.3.3",
"json-schema-defaults": "0.4.0",
"json-schema-to-typescript": "11.0.3",
"node-fetch": "^2.0.0",
"npm-package-arg": "6.1.0",
"rimraf": "2.6.3",
"semver": "5.7.0",
Expand All @@ -51,7 +50,6 @@
"@types/hosted-git-info": "2.7.0",
"@types/inquirer": "^7.3.1",
"@types/node": "18",
"@types/node-fetch": "^2.6.2",
"@types/npm-package-arg": "6.1.0",
"@types/rimraf": "2.0.2",
"@types/semver": "5.5.0",
Expand Down
1 change: 0 additions & 1 deletion src/commands/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import semver from "semver";
import fs from "fs";
import fetchTags from "../lib/fetch-tags";
import { Command } from "commander";
import fetch from "node-fetch";
import tar from "tar";
import stream from "stream/promises";

Expand Down
3 changes: 1 addition & 2 deletions src/lib/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import fs from "fs";
import path from "path";
import fetch from "node-fetch";
import semver from "semver";

export default {
Expand Down Expand Up @@ -96,7 +95,7 @@ export default {
);
}

return res.json();
return res.json() as Promise<NPMRelease>;
},
};

Expand Down

0 comments on commit 50a6323

Please sign in to comment.