Skip to content

Commit

Permalink
Merge pull request #27 from JoshuaKGoldberg/get-npm-user-packages-sta…
Browse files Browse the repository at this point in the history
…ndalone

fix: use standalone getNpmUserPackages
  • Loading branch information
JoshuaKGoldberg authored Jun 19, 2023
2 parents f19314a + d8ba78e commit 9cbc1bb
Show file tree
Hide file tree
Showing 9 changed files with 133 additions and 166 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ npx tidelift-me-up
- `--since` _(default: 2 years ago)_: A date that packages need to have been updated since to be considered
- This will be provided as a string to the `Date` constructor
- `--username` _(default: result of `npm whoami`)_: The npm username to search for packages maintained by
- The search is done by [`npm-user-packages`](https://github.com/kevva/npm-user-packages), which fetches from [npm.io](https://npm.io)
- The search is done by a network call to [npms.io](https://npms.io)
```shell
npx tidelift-me-up --ownership author --ownership publisher --reporter json --since 2020 --username your-username
Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"lcov",
"markdownlintignore",
"npmignore",
"npms",
"npmpackagejsonlintrc",
"outro",
"packagejson",
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@
},
"dependencies": {
"chalk": "^5.2.0",
"npm-user-packages": "^3.0.0",
"npm-whoami": "^1.1.4"
},
"devDependencies": {
"@types/eslint": "^8.37.0",
"@types/node": "^20.3.1",
"@types/npm-user-packages": "^3.0.1",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"@vitest/coverage-istanbul": "^0.31.0",
Expand Down Expand Up @@ -83,7 +81,7 @@
"vitest": "^0.32.0",
"yaml-eslint-parser": "^1.2.2"
},
"packageManager": "[email protected].0",
"packageManager": "[email protected].2",
"engines": {
"node": ">=18"
},
Expand Down
153 changes: 4 additions & 149 deletions pnpm-lock.yaml

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

3 changes: 1 addition & 2 deletions src/createUserPackagesFilter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { PackageData } from "npm-user-packages";

import { PackageData } from "./getNpmUserPackages.js";
import { PackageOwnership } from "./types.js";

export interface FilterSettings {
Expand Down
Loading

0 comments on commit 9cbc1bb

Please sign in to comment.