Skip to content

Commit 962b0b7

Browse files
committed
fix: remove duplicated code
1 parent 7ec60e3 commit 962b0b7

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

scripts/actions/gen.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,7 @@ export async function gen() {
5656
"index.cjs": "module.exports = {};\n",
5757
"index.mjs": "export {};\n",
5858
"schema.json": newSchema,
59-
"index.d.ts": await compile(
60-
{
61-
...newSchema,
62-
title: capitalize(camelize(type.name)),
63-
},
64-
"schema.json",
65-
{
66-
additionalProperties: type.patches?.additionalProperties,
67-
}
68-
),
59+
"index.d.ts": newIndexDef,
6960
"package.json": {
7061
name: pkgName,
7162
version: pkg?.version ?? "0.0.1",

0 commit comments

Comments
 (0)