Skip to content

Commit 36319d4

Browse files
committed
chore: Fixed generate script
1 parent 3fc85bd commit 36319d4

3 files changed

Lines changed: 431 additions & 3 deletions

File tree

@generate.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ for (const file of await readdir("extension/schemas")) {
5050
const name = basename(file, extname(file))
5151

5252
await $({ shell: true })`
53-
dp schema convert
53+
dpkit schema convert
5454
extension/schemas/${file}
5555
--to-path extension/content/docs/specification/data/${name}.md
5656
--to-format html
@@ -87,7 +87,7 @@ for (const file of await readdir("extension/schemas")) {
8787
typescriptIndex.push(`export * from "./${name}.ts"`)
8888

8989
await $({ shell: true })`
90-
dp schema convert
90+
dpkit schema convert
9191
extension/schemas/${file}
9292
--to-format jsonschema
9393
| json2ts
@@ -138,7 +138,7 @@ for (const file of await readdir("extension/schemas")) {
138138
pythonIndex.push(`from .${name} import *`)
139139

140140
await $({ shell: true })`
141-
dp schema convert
141+
dpkit schema convert
142142
extension/schemas/${file}
143143
--to-format jsonschema
144144
--silent

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"@semantic-release/exec": "7.1.0",
4040
"@types/node": "24.5.2",
4141
"conventional-changelog-conventionalcommits": "9.1.0",
42+
"dpkit": "2.0.0",
4243
"execa": "9.6.0",
4344
"husky": "9.1.7",
4445
"json-schema-doc-ts": "2.0.0",

0 commit comments

Comments
 (0)