Skip to content

Commit b87fd8d

Browse files
committed
feat: bump utils dependencies
1 parent efa5d54 commit b87fd8d

File tree

4 files changed

+38
-21
lines changed

4 files changed

+38
-21
lines changed

build.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,20 @@ export default defineBuildConfig({
77
],
88
declaration: 'node16',
99
clean: true,
10+
rollup: {
11+
inlineDependencies: [
12+
'@fast-csv/parse',
13+
'd3-hierarchy',
14+
'@antfu/utils',
15+
'normalize-url',
16+
'p-limit',
17+
'yocto-queue',
18+
'lodash.escaperegexp',
19+
'lodash.isnil',
20+
'lodash.isfunction',
21+
'lodash.isundefined',
22+
'lodash.uniq',
23+
'lodash.groupby',
24+
],
25+
},
1026
})

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,29 @@
4545
"release": "bumpp && pnpm publish"
4646
},
4747
"dependencies": {
48-
"@antfu/utils": "^9.1.0",
49-
"@fast-csv/parse": "^5.0.2",
5048
"ansis": "^3.17.0",
5149
"consola": "^3.4.0",
52-
"d3-hierarchy": "^3.1.2",
5350
"dotenv": "^16.4.7",
54-
"normalize-url": "^8.0.1",
5551
"ofetch": "^1.4.1",
56-
"p-limit": "^6.2.0",
5752
"sharp": "^0.33.5",
5853
"unconfig": "^7.3.0",
5954
"yargs": "^17.7.2"
6055
},
6156
"devDependencies": {
6257
"@antfu/eslint-config": "^4.8.1",
6358
"@antfu/ni": "^23.3.1",
59+
"@antfu/utils": "^9.1.0",
60+
"@fast-csv/parse": "^5.0.2",
6461
"@types/d3-hierarchy": "^3.1.7",
6562
"@types/node": "^22.13.10",
6663
"@types/yargs": "^17.0.33",
6764
"bumpp": "^10.0.3",
65+
"d3-hierarchy": "^3.1.2",
6866
"eslint": "^9.22.0",
67+
"p-limit": "^6.2.0",
6968
"esno": "^4.8.0",
7069
"jiti": "^2.4.2",
70+
"normalize-url": "^8.0.1",
7171
"typescript": "^5.8.2",
7272
"unbuild": "^3.5.0",
7373
"vite": "^6.2.1",

pnpm-lock.yaml

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/providers/liberapay.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { Provider, Sponsorship } from '../types'
2-
import { parseString } from '@fast-csv/parse'
32
import { $fetch } from 'ofetch'
43

54
export const LiberapayProvider: Provider = {
@@ -41,6 +40,8 @@ export async function fetchLiberapaySponsors(login?: string): Promise<Sponsorshi
4140
const csvUrl = `https://liberapay.com/${login}/patrons/public.csv`
4241
const csvResponse = await $fetch<string>(csvUrl)
4342
const rows: LiberapayRow[] = []
43+
44+
const { parseString } = await import('@fast-csv/parse')
4445
await new Promise((resolve) => {
4546
parseString(csvResponse, {
4647
headers: true,

0 commit comments

Comments
 (0)