Skip to content

Commit 7ca6756

Browse files
authored
chore(update): remove execa (#140)
1 parent a61dd57 commit 7ca6756

16 files changed

+77
-201
lines changed

bun.lockb

-5.78 KB
Binary file not shown.

package.json

Lines changed: 70 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,72 @@
11
{
2-
"name": "google-font-metadata",
3-
"description": "A metadata generator for Google Fonts.",
4-
"version": "5.2.1",
5-
"author": "Ayuhito <[email protected]>",
6-
"main": "./dist/index.js",
7-
"module": "./dist/index.mjs",
8-
"types": "./dist/index.d.ts",
9-
"exports": {
10-
"types": "./dist/index.d.ts",
11-
"require": "./dist/index.js",
12-
"import": "./dist/index.mjs"
13-
},
14-
"bin": {
15-
"gfm": "./dist/cli.mjs"
16-
},
17-
"license": "MIT",
18-
"keywords": [
19-
"fontsource",
20-
"font",
21-
"font family",
22-
"google fonts",
23-
"metadata",
24-
"fonts api",
25-
"unicode range"
26-
],
27-
"dependencies": {
28-
"@octokit/core": "^6.1.2",
29-
"@types/stylis": "^4.2.7",
30-
"cac": "^6.7.14",
31-
"consola": "^3.3.3",
32-
"deepmerge": "^4.3.1",
33-
"dotenv": "^16.4.7",
34-
"execa": "^9.5.2",
35-
"json-stringify-pretty-compact": "^4.0.0",
36-
"linkedom": "^0.18.6",
37-
"p-queue": "^8.0.1",
38-
"pathe": "^1.1.2",
39-
"picocolors": "^1.1.1",
40-
"puppeteer": "^23.11.1",
41-
"stylis": "^4.3.4",
42-
"zod": "^3.24.1"
43-
},
44-
"devDependencies": {
45-
"@biomejs/biome": "1.9.4",
46-
"@types/node": "^22.10.2",
47-
"c8": "^10.1.3",
48-
"magic-string": "^0.30.17",
49-
"msw": "^2.7.0",
50-
"pkgroll": "^2.6.0",
51-
"typescript": "^5.7.2",
52-
"vitest": "^2.1.8"
53-
},
54-
"scripts": {
55-
"build": "pkgroll --target=node20",
56-
"dev": "pkgroll --target=node20 --watch",
57-
"cli": "bun run ./src/cli.ts",
58-
"test": "vitest",
59-
"test:generate-fixtures": "bun run ./tests/utils/generate-css-fixtures",
60-
"coverage": "vitest --coverage",
61-
"format": "biome format --fix",
62-
"lint": "biome lint --fix",
63-
"prepublish": "npm run format && npm run build"
64-
},
65-
"files": ["dist/*", "data/*"],
66-
"homepage": "https://github.com/fontsource/google-font-metadata",
67-
"repository": {
68-
"type": "git",
69-
"url": "git+https://github.com/fontsource/google-font-metadata"
70-
},
71-
"packageManager": "[email protected]",
72-
"trustedDependencies": [
73-
"@biomejs/biome"
74-
]
2+
"name": "google-font-metadata",
3+
"description": "A metadata generator for Google Fonts.",
4+
"version": "5.2.1",
5+
"author": "Ayuhito <[email protected]>",
6+
"main": "./dist/index.js",
7+
"module": "./dist/index.mjs",
8+
"types": "./dist/index.d.ts",
9+
"exports": {
10+
"types": "./dist/index.d.ts",
11+
"require": "./dist/index.js",
12+
"import": "./dist/index.mjs"
13+
},
14+
"bin": {
15+
"gfm": "./dist/cli.mjs"
16+
},
17+
"license": "MIT",
18+
"keywords": [
19+
"fontsource",
20+
"font",
21+
"font family",
22+
"google fonts",
23+
"metadata",
24+
"fonts api",
25+
"unicode range"
26+
],
27+
"dependencies": {
28+
"@octokit/core": "^6.1.2",
29+
"@types/stylis": "^4.2.7",
30+
"cac": "^6.7.14",
31+
"consola": "^3.3.3",
32+
"deepmerge": "^4.3.1",
33+
"dotenv": "^16.4.7",
34+
"json-stringify-pretty-compact": "^4.0.0",
35+
"linkedom": "^0.18.6",
36+
"p-queue": "^8.0.1",
37+
"pathe": "^1.1.2",
38+
"picocolors": "^1.1.1",
39+
"puppeteer": "^23.11.1",
40+
"stylis": "^4.3.4",
41+
"zod": "^3.24.1"
42+
},
43+
"devDependencies": {
44+
"@biomejs/biome": "1.9.4",
45+
"@types/node": "^22.10.2",
46+
"c8": "^10.1.3",
47+
"magic-string": "^0.30.17",
48+
"msw": "^2.7.0",
49+
"pkgroll": "^2.6.0",
50+
"typescript": "^5.7.2",
51+
"vitest": "^2.1.8"
52+
},
53+
"scripts": {
54+
"build": "pkgroll --target=node20",
55+
"dev": "pkgroll --target=node20 --watch",
56+
"cli": "bun run ./src/cli.ts",
57+
"test": "vitest",
58+
"test:generate-fixtures": "bun run ./tests/utils/generate-css-fixtures",
59+
"coverage": "vitest --coverage",
60+
"format": "biome format --fix",
61+
"lint": "biome lint --fix",
62+
"prepublish": "npm run format && npm run build"
63+
},
64+
"files": ["dist/*", "data/*"],
65+
"homepage": "https://github.com/fontsource/google-font-metadata",
66+
"repository": {
67+
"type": "git",
68+
"url": "git+https://github.com/fontsource/google-font-metadata"
69+
},
70+
"packageManager": "[email protected]",
71+
"trustedDependencies": ["@biomejs/biome"]
7572
}

src/api-parser-v1.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ const processQueue = async (font: APIResponse, force: boolean) => {
200200
// Queue control
201201
const queue = new PQueue({ concurrency: 18 });
202202

203-
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
204203
// @ts-ignore - rollup-plugin-dts fails to compile this typing
205204
queue.on('error', (error: Error) => {
206205
consola.error(error);

src/api-parser-v2.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ const processQueue = async (font: APIResponse, force: boolean) => {
258258
// Queue control
259259
const queue = new PQueue({ concurrency: 18 });
260260

261-
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
262261
// @ts-ignore - rollup-plugin-dts fails to compile this typing
263262
queue.on('error', (error: Error) => {
264263
consola.error(error);

src/axis-gen.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-await-in-loop */
21
import * as fs from 'node:fs/promises';
32
import { fileURLToPath } from 'node:url';
43

@@ -94,7 +93,6 @@ export const parseProto = (textproto: string): AxisDecode => {
9493
return acceptedTags.has(tag);
9594
});
9695

97-
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
9896
const data = {} as AxisDecode;
9997

10098
for (const line of lines) {

src/cli.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable unicorn/no-process-exit */
21
import 'dotenv/config';
32

43
import { cac } from 'cac';
@@ -12,12 +11,11 @@ import { parsev2 } from './api-parser-v2';
1211
import { generateAxis } from './axis-gen';
1312
import { parseIcons } from './icons-parser';
1413
import { parseLicenses } from './license';
15-
import { updateDb } from './update-db';
1614
import { validateCLI } from './validate';
1715
import { fetchVariable } from './variable-gen';
1816
import { parseVariable } from './variable-parser';
1917

20-
const cli = cac('google-font-metadata');
18+
const cli = cac('gfm');
2119

2220
cli
2321
.command('generate [key]', 'Fetch parsing metadata for all fonts')
@@ -154,18 +152,6 @@ cli
154152
}
155153
});
156154

157-
cli
158-
.command('update-db', 'Update metadata db by updating lockfile')
159-
.action(async () => {
160-
try {
161-
await updateDb();
162-
consola.success('Metadata updated!');
163-
} catch (error) {
164-
consola.error(error);
165-
process.exit(1);
166-
}
167-
});
168-
169155
cli.help();
170156
cli.version(version);
171157

src/icons-parser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ const processQueue = async (icon: APIIconResponse, force: boolean) => {
7676
// Queue control
7777
const queue = new PQueue({ concurrency: 18 });
7878

79-
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
8079
// @ts-ignore - rollup-plugin-dts fails to compile this typing
8180
queue.on('error', (error: Error) => {
8281
consola.error(error);

src/license.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import * as fs from 'node:fs';
2+
import { fileURLToPath } from 'node:url';
13
import { consola } from 'consola';
24
import stringify from 'json-stringify-pretty-compact';
35
import { parseHTML } from 'linkedom';
4-
import * as fs from 'node:fs';
5-
import { fileURLToPath } from 'node:url';
66
import { dirname, join } from 'pathe';
77
import puppeteer from 'puppeteer';
88

src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import stringify from 'json-stringify-pretty-compact';
22
import colors from 'picocolors';
3-
import { z, type ZodError } from 'zod';
3+
import { type ZodError, z } from 'zod';
44

55
import type { FontObject, FontObjectV2, FontObjectVariable } from './types';
66
import { isAxesKey } from './types';

src/update-db.ts

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)